code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
#pragma once #include <zGraphicsConfig.hpp> #include <Utility\HasFlag.hpp> #include <Math\Vector3.hpp> #include "Mesh.hpp" namespace zzz { class ZGRAPHICS_CLASS HalfEdgeMesh { public: struct HalfEdge; struct Vertex; struct Face; //////////////////////////////////////////////////////////////////////...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Mesh/HalfEdgeMesh.hpp
C++
gpl3
1,829
#pragma once #include <zGraphicsConfig.hpp> #include <Math/Array.hpp> #include <Utility/Tools.hpp> #include <Utility/STLVector.hpp> #include <Utility/HasFlag.hpp> #include <Utility/StaticTools.hpp> #include "../../Graphics/GeometryHelper.hpp" #include "../ResourceManager.hpp" #include "../Texture/Texture2D.hpp...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Mesh/Mesh.hpp
C++
gpl3
20,463
#pragma once #include <zGraphicsConfig.hpp> #include "../SimpleMesh.hpp" #include "../Mesh.hpp" namespace zzz{ class ZGRAPHICS_CLASS WrlIO { public: static bool Load(const string &filename, TriMesh &mesh,bool load_mat=true); static bool Save(const string &filename, TriMesh &mesh,bool save_mat=true); ...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Mesh/MeshIO/WrlIO.hpp
C++
gpl3
489
#include "WrlIO.hpp" #include <common.hpp> #include "../Material.hpp" #include <Utility/StringPrintf.hpp> #include <Utility/FileTools.hpp> #include <Utility/BraceFile.hpp> #undef RGB namespace zzz{ bool WrlIO::Load(const string &filename, TriMesh &mesh,bool load_mat) { BraceFile bf; if (!bf.LoadFile(...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Mesh/MeshIO/WrlIO.cpp
C++
gpl3
9,249
#pragma once #include <Utility/IOObject.hpp> #include "../Mesh.hpp" #include "../Material.hpp" namespace zzz { template<zuint PN> class IOObject<Mesh<PN> > { public: static const zint32 RF_POS = 1; static const zint32 RF_NOR = 2; static const zint32 RF_TEX = 3; static const zint32 RF_COLOR = 4; s...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Mesh/MeshIO/IOObjectMesh.hpp
C++
gpl3
3,002
#include "Ply2IO.hpp" #include <common.hpp> namespace zzz{ bool Ply2IO::Load(const string &filename, TriMesh &mesh, bool load_mat) { ifstream fi(filename); if (!fi.good()) return false; int posn,facen; fi>>posn>>facen; if (fi.fail()) return false; mesh.Clear(); Vector3f p; for (int i=0; i<...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Mesh/MeshIO/Ply2IO.cpp
C++
gpl3
1,336
#include "DaeIO.hpp" #include <Xml/RapidXML.hpp> #include <Utility/FileTools.hpp> #include "../Material.hpp" #include "../../ResourceManager.hpp" #include "../../../Context/Context.hpp" #include "../../../Graphics/GeometryHelper.hpp" namespace zzz{ bool DaeIO::load_mat_=true; bool DaeIO::save_mat_=true; str...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Mesh/MeshIO/DaeIO.cpp
C++
gpl3
20,693
#pragma once #include <zGraphicsConfig.hpp> #include "../SimpleMesh.hpp" #include "../Mesh.hpp" namespace zzz{ class ZGRAPHICS_CLASS Ply2IO { public: static bool Load(const string &filename, TriMesh &mesh,bool load_mat=true); static bool Save(const string &filename, TriMesh &mesh,bool save_mat=true); s...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Mesh/MeshIO/Ply2IO.hpp
C++
gpl3
486
#pragma once #include <zGraphicsConfig.hpp> #include "../SimpleMesh.hpp" #include "../Mesh.hpp" namespace zzz{ class ZGRAPHICS_CLASS ObjIO { public: static bool Load(const string &filename, TriMesh &mesh, bool load_mat=true); static bool Save(const string &filename, TriMesh &mesh, bool save_mat=true); ...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Mesh/MeshIO/ObjIO.hpp
C++
gpl3
624
#pragma once #include <zGraphicsConfig.hpp> #include "../SimpleMesh.hpp" #include "../Mesh.hpp" namespace zzz{ class ZGRAPHICS_CLASS XIO { public: static bool Load(const string &filename, TriMesh &mesh, bool load_mat=true); static bool Save(const string &filename, TriMesh &mesh, bool save_mat=true); st...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Mesh/MeshIO/XIO.hpp
C++
gpl3
487
#include "ObjIO.hpp" #include <Utility/FileTools.hpp> #include "../Material.hpp" #include "../../ResourceManager.hpp" #include "../../../Context/Context.hpp" #include "../../../Graphics/GeometryHelper.hpp" #undef RGB namespace zzz{ void StringTo3Int(const char *str, int &f1, int &f2, int &f3) { int len=s...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Mesh/MeshIO/ObjIO.cpp
C++
gpl3
12,791
#pragma once #include "../Mesh.hpp" #include <Utility/FileTools.hpp> #include "ObjIO.hpp" #include "DaeIO.hpp" #include "WrlIO.hpp" #include "Ply2IO.hpp" #include "XIO.hpp" #include <Utility/Timer.hpp> #include "IOObjectMesh.hpp" #include <Utility/IOFile.hpp> namespace zzz{ class MeshIO { public: sta...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Mesh/MeshIO/MeshIO.hpp
C++
gpl3
2,216
#include "XIO.hpp" #include <common.hpp> #include "../Material.hpp" #include <Utility/FileTools.hpp> #include <Utility/BraceFile.hpp> namespace zzz{ void EatUntil(istringstream &iss, char c) { char tmpchar; do { iss>>tmpchar; if (iss.fail()) return; }while (tmpchar!=c); } bool XIO::...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Mesh/MeshIO/XIO.cpp
C++
gpl3
12,702
#pragma once #include <zGraphicsConfig.hpp> #include "../Mesh.hpp" #include <Xml/RapidXMLNode.hpp> namespace zzz{ class ZGRAPHICS_CLASS DaeIO { public: static bool Load(const string &filename, TriMesh &mesh, bool load_mat=true); static bool Save(const string &filename, TriMesh &mesh, bool save_mat=true); ...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Mesh/MeshIO/DaeIO.hpp
C++
gpl3
1,747
#include "HalfEdgeMesh.hpp" namespace zzz { zzz::HalfEdgeMesh::~HalfEdgeMesh() { Clear(); } void HalfEdgeMesh::Clear() { for (zuint i=0; i<half_edges_.size(); i++) delete half_edges_[i]; half_edges_.clear(); for (zuint i=0; i<boundary_half_edges_.size(); i++) delete boundary_half_edges_[...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Mesh/HalfEdgeMesh.cpp
C++
gpl3
2,934
#pragma once #include <zGraphicsConfig.hpp> #include "Mesh.hpp" namespace zzz{ class ZGRAPHICS_CLASS PolygonMesh { public: struct PolygonMeshGroup { string name_; string matname_; //original data vector<vector<int> > facep_,facen_,facet_; }; PolygonMesh(); ~PolygonMesh(); ...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Mesh/PolygonMesh.hpp
C++
gpl3
1,049
#ifdef ZZZ_OPENMESH #include "OTriMesh.hpp" #include "../../Utility/Tools.hpp" namespace zzz{ OTriMesh::OTriMesh() { mat_emi_[0]=0; mat_emi_[1]=0; mat_emi_[2]=0; mat_emi_[3]=1; mat_amb_[0]=1; mat_amb_[1]=1; mat_amb_[2]=1; mat_amb_[3]=1; mat_dif_[0]=1; mat_dif_[1]=1; mat_dif_[2]=1; mat_dif_[3]=1; mat_...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Mesh/OTriMesh.cpp
C++
gpl3
2,091
#pragma once #include <zGraphicsConfig.hpp> #pragma warning(disable:4267) #pragma warning(disable:4244) #include "../../Graphics/Graphics.hpp" #include "Mesh.hpp" #include "../../Math/Coordinate.hpp" #define _USE_MATH_DEFINES #include <OpenMesh/Core/io/MeshIO.hh> #include <OpenMesh/Core/Mesh/Types/TriMesh_Arra...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Mesh/OTriMesh.hpp
C++
gpl3
1,119
#pragma once #include <zGraphicsConfig.hpp> #include "../../Graphics/Color.hpp" #include "../Texture/Texture2D.hpp" #include "../Texture/Texture2DIOObject.hpp" #include <Utility/HasFlag.hpp> //OPENGL material model namespace zzz{ const zuint MAT_DIF=0x0001; const zuint MAT_AMB=0x0002; const zuint MAT_SPE=0x...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Mesh/Material.hpp
C++
gpl3
4,761
#include "PolygonMesh.hpp" namespace zzz{ PolygonMesh::PolygonMesh():loaded_(false){} PolygonMesh::~PolygonMesh(){Clear();} bool PolygonMesh::Clear() { nor_.clear(); pos_.clear(); tex_.clear(); for (zuint i=0; i<groups_.size(); i++) delete groups_[i]; groups_.clear(); loaded_=false; ret...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Mesh/PolygonMesh.cpp
C++
gpl3
2,736
#pragma once #include <zGraphicsConfig.hpp> #include <Utility/AnyHolder.hpp> // This is basically AnyHolder. // Only that it will delete the object when needed. // So remove is overloaded. namespace zzz{ class Texture2D; class Shader; class Material; class ZGRAPHICS_CLASS ResourceManager : public AnyHol...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/ResourceManager.hpp
C++
gpl3
783
#include "Shader.hpp" #include "../../Renderer/ArcBallRenderer.hpp" #include <Utility/FileTools.hpp> #include <Utility/StringTools.hpp> #include <Utility/Log.hpp> namespace zzz{ //same reason as in texture, cannot initialize in constructor Shader::Shader() :vert(NULL),vert_hold(false), frag(NULL),frag_hold(f...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Shader/Shader.cpp
C++
gpl3
18,179
#pragma once #include <zGraphicsConfig.hpp> #include "Shader.hpp" #include "../Script/ShaderScript.hpp" namespace zzz{ ZGRAPHICS_FUNC void MakeShaders(); } #define ZCOLORSHADER ZRM->Get<Shader*>("ColorShader") #define ZDIFFUSESHADER ZRM->Get<Shader*>("DiffuseShader") #define ZLIGHTSHADER ZRM->Get<Shader*>(...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Shader/ShaderSpecify.hpp
C++
gpl3
623
#pragma once #include <zGraphicsConfig.hpp> #include "../../Renderer/Renderer.hpp" #include <common.hpp> #include <Utility/Tools.hpp> /* ATTENTION: use begin() FIRST then setUniform otherwise INVALID_OPERATION occurs */ namespace zzz{ class ZGRAPHICS_CLASS GLShaderObject : public Uncopyable { friend class Shader; ...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Shader/Shader.hpp
C++
gpl3
5,444
#include "ShaderSpecify.hpp" namespace zzz{ ////////////////////////////////////////////////////////////////////////// //COLORSHADER const char ColorShaderVert[]="\ varying vec4 color; \ void main(void)\ {\ gl_Position=ftransform(); \ color=gl_Color; \ }\ "; const char ColorShaderFrag[]="\ varying ve...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Shader/ShaderSpecify.cpp
C++
gpl3
4,647
#include "TextureScript.hpp" #include <Utility/Tools.hpp> #include <Utility/FileTools.hpp> #include <Utility/StringTools.hpp> namespace zzz{ int TextureInt(const string &str) { string str1; if (str[0]=='g' && str[1]=='l' && str[2]=='_') str1.assign(str.begin()+3,str.end()); else str1=str; //intern...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Script/TextureScript.cpp
C++
gpl3
6,049
#pragma once #include <zGraphicsConfig.hpp> #include "../Shader/Shader.hpp" #include "Script.hpp" namespace zzz { //template<> //static bool Script<Shader>::LoadFromMemory(istringstream &iss, Shader &shader, const string &path); class ZGRAPHICS_CLASS ShaderScriptHelper { public: static bool LoadShaderFile(const cha...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Script/ShaderScript.hpp
C++
gpl3
849
#pragma once #include "Script.hpp" #include "../Light/Light.hpp" namespace zzz{ static bool Script<Light>::LoadFromMemory(istringstream &mem, Light &l, const string &path); typedef Script<Light> LightScript; }
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Script/LightScript.hpp
C++
gpl3
211
#pragma once #include "Script.hpp" #include "../Texture/TextureSpecify.hpp" namespace zzz{ static bool Script<Texture2D>::LoadFromMemory(istringstream &mem, Texture2D &t, const string &path); typedef Script<Texture2D> Texture2DScript; static bool Script<TextureCube>::LoadFromMemory(istringstream &mem, TextureC...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Script/TextureScript.hpp
C++
gpl3
400
#include "ObjectScript.hpp" #include <Utility/Tools.hpp> namespace zzz{ bool Script<ObjMesh>::LoadFromMemory(istringstream &iss, TriMesh &o, const string &path) { float trans[3],rot[4],scaleto; string tmp,filename; bool normalize=true,createvbo=true,calnormal=false,translate=false,rotate=false,scale=false; wh...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Script/ObjectScript.cpp
C++
gpl3
3,062
#include "LightScript.hpp" #include <Utility/StringTools.hpp> namespace zzz{ bool Script<Light>::LoadFromMemory( istringstream &iss, Light &l, const string &path ) { string tmp; while(true) { iss>>tmp; if (iss.fail()) break; ToLow(tmp); if (tmp=="p" || tmp=="pos" || tmp=="position" || tmp=="pst")...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Script/LightScript.cpp
C++
gpl3
1,452
#pragma once #include "Script.hpp" #include "../Mesh/Mesh.hpp" namespace zzz{ static bool Script<TriMesh>::LoadFromMemory(istringstream &iss, TriMesh &o, const string &path); typedef Script<TriMesh> ObjectScript; }
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Script/ObjectScript.hpp
C++
gpl3
217
/******************************************************************** created: 2007/06/11 created: 11:6:2007 16:36 filename: d:\WZX\zzz\Render\Render\WZX\Render\Script\Script.hpp file path: d:\WZX\zzz\Render\Render\WZX\Render\Script file base: Script file ext: hpp author: WZX pur...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Script/Script.hpp
C++
gpl3
2,814
#include "ShaderScript.hpp" #include <Utility/StringTools.hpp> #include <Utility/FileTools.hpp> #include <Utility/Log.hpp> namespace zzz{ bool Script<Shader>::LoadFromMemory(istringstream &iss, Shader &shader, const string &path) { string FragmentShaderFilename="",VertexShaderFilename=""; string buf; while(true...
zzz-engine
zzzEngine/zGraphics/zGraphics/Resource/Script/ShaderScript.cpp
C++
gpl3
6,286
#pragma once #include <zGraphicsConfig.hpp> #include "../Graphics/Graphics.hpp" namespace zzz{ ////////////////////////////////////////////////////////////////////////// //There may be something wrong when using unsigned byte type or something like that //since because of the memory align, sizeof(struct) may not be e...
zzz-engine
zzzEngine/zGraphics/zGraphics/VBO/VBODescript.hpp
C++
gpl3
1,723
#pragma once #include <zGraphicsConfig.hpp> #include "VBO.hpp" namespace zzz{ class ZGRAPHICS_CLASS PBOHelper { public: static bool FBOToVBO(int x,int y,int width,int height,GLenum from, VBO &to); static bool FBOToVBO(int x,int y,int width,int height,GLenum format,GLenum from, VBO &to); static bool FBOT...
zzz-engine
zzzEngine/zGraphics/zGraphics/VBO/PBOHelper.hpp
C++
gpl3
414
#include <common.hpp> #include "VBODescript.hpp" namespace zzz { VBODescript VBODescript::Vertex4f(GL_VERTEX_ARRAY,4,GL_FLOAT); VBODescript VBODescript::Vertex3f(GL_VERTEX_ARRAY,3,GL_FLOAT); VBODescript VBODescript::Vertex2f(GL_VERTEX_ARRAY,2,GL_FLOAT); VBODescript VBODescript::Vertex4d(GL_VERTEX_ARRAY,4,GL_DO...
zzz-engine
zzzEngine/zGraphics/zGraphics/VBO/VBODescript.cpp
C++
gpl3
2,588
#include "VBO.hpp" #include <Graphics\OpenGLTools.hpp> namespace zzz{ VBO::VBO() { VBO_=0; nelements_=0; binded=false; } VBO::~VBO() { if (binded) Unbind(); if (VBO_!=0) glDeleteBuffers(1,&VBO_); } bool VBO::Create(const void *data,int numOfElement,VBODescript &vbodesc,GLenum usage/*=GL_STATIC_DRA...
zzz-engine
zzzEngine/zGraphics/zGraphics/VBO/VBO.cpp
C++
gpl3
4,438
#include "PBOHelper.hpp" namespace zzz{ bool zzz::PBOHelper::FBOToVBO(int x,int y,int width, int height,GLenum from, VBO &to) { glReadBuffer(from); glBindBuffer(GL_PIXEL_PACK_BUFFER_EXT, to.VBO_); GLenum format=0,type; if (to.vbodesc_[0].Size==1) format=GL_RED; else if (to.vbodesc_[0].Size==2) retur...
zzz-engine
zzzEngine/zGraphics/zGraphics/VBO/PBOHelper.cpp
C++
gpl3
1,288
#pragma once #include <zGraphicsConfig.hpp> #include <common.hpp> #include "VBODescript.hpp" #include <Utility/Uncopyable.hpp> namespace zzz{ class ZGRAPHICS_CLASS VBO : public Uncopyable { public: VBO(); ~VBO(); bool CreateEmpty(int numOfElement,VBODescript &vbodesc,GLenum usage); bool CreateEmpty(int numOfE...
zzz-engine
zzzEngine/zGraphics/zGraphics/VBO/VBO.hpp
C++
gpl3
955
#pragma once #include <zGraphicsConfig.hpp> #include <common.hpp> #include "VBODescript.hpp" #include <Utility/Uncopyable.hpp> namespace zzz{ class ZGRAPHICS_CLASS ElementVBO : public Uncopyable { public: ElementVBO(); ~ElementVBO(); bool Create(void *data,int numOfElement,VBODescript &vbodesc,GLenum usage=GL_S...
zzz-engine
zzzEngine/zGraphics/zGraphics/VBO/ElementVBO.hpp
C++
gpl3
409
#include "ElementVBO.hpp" namespace zzz{ ElementVBO::ElementVBO() { VBO_=0; binded=false; } ElementVBO::~ElementVBO() { if (binded) Unbind(); if (VBO_!=0) glDeleteBuffers(1,&VBO_); } bool ElementVBO::Create(void *data,int numOfElement,VBODescript &vbodesc,GLenum usage/*=GL_STATIC_DRAW*/) { if (VBO_...
zzz-engine
zzzEngine/zGraphics/zGraphics/VBO/ElementVBO.cpp
C++
gpl3
864
#pragma once #include <zs.hpp> #include "zOpenGLParser.hpp" #include "zKeyMapParser.hpp" #include "../Renderer/ArcBallRenderer.hpp" namespace zzz{ class zRenderScript : public zScript { public: zRenderScript(); void Init(ArcBallRenderer *renderer); void OnChar( unsigned int nChar, unsigned int nRep...
zzz-engine
zzzEngine/zGraphics/zGraphics/zRenderScript/zRenderScript.hpp
C++
gpl3
573
#include <common.hpp> #include "zOpenGLParser.hpp" #include "../Resource/Shader/ShaderSpecify.hpp" namespace zzz{ bool zzz::zOpenGLParser::Parse( const string &cmd1, int &id ) { string cmd=ToLow_copy(cmd1); if (cmd=="glenable") id=GLENABLE; else if (cmd=="gldisable") id=GLDISABLE; else if (cmd=="glcl...
zzz-engine
zzzEngine/zGraphics/zGraphics/zRenderScript/zOpenGLParser.cpp
C++
gpl3
14,193
#pragma once #include <zs.hpp> #include "../Resource/Texture/Texture2D.hpp" namespace zzz{ typedef zObject<Texture2D> zObjectTexture2D; }
zzz-engine
zzzEngine/zGraphics/zGraphics/zRenderScript/zObjectTexture2D.hpp
C++
gpl3
145
#pragma once #include <zs.hpp> #include "../Resource/Texture/TextureCube.hpp" namespace zzz{ typedef zObject<TextureCube> zObjectTextureCube; }
zzz-engine
zzzEngine/zGraphics/zGraphics/zRenderScript/zObjectTextureCube.hpp
C++
gpl3
150
#pragma once namespace zzz{ class zObjectTextureHelper { public: static int TextureInt( const string &str ) { string str1; if (str[0]=='g' && str[1]=='l' && str[2]=='_') str1.assign(str.begin()+3,str.end()); else str1=str; //internal if (str1=="alpha") return GL_ALPHA; if (str1=="alpha4") r...
zzz-engine
zzzEngine/zGraphics/zGraphics/zRenderScript/zObjectTextureHelper.hpp
C++
gpl3
3,821
#include "zObjectTexture2D.hpp" #include "zObjectTextureHelper.hpp" namespace zzz{ bool zObjectTexture2D::LoadFromMemory(istringstream &iss, const string &path) { Texture2D *t=(Texture2D*)m_obj; string tmp; int tmpi; while(true) { iss>>tmp; if (iss.fail()) break; ToLow(tmp); if ...
zzz-engine
zzzEngine/zGraphics/zGraphics/zRenderScript/zObjectTexture2D.cpp
C++
gpl3
1,793
#pragma once #include <zs.hpp> #include "../Resource/Shader/Shader.hpp" namespace zzz{ class ShaderLoader { public: static bool LoadShaderFile(const char* vertexFile, const char* fragmentFile,Shader *shader); static bool LoadShaderMemory(const char* vertexMem,const char* fragmentMem,Shader *shader); };...
zzz-engine
zzzEngine/zGraphics/zGraphics/zRenderScript/zObjectShader.hpp
C++
gpl3
365
#include "zKeyMapParser.hpp" #include "zRenderScript.hpp" namespace zzz{ bool zKeyMapParser::Parse( const string &cmd, int &id ) { string cmd1=ToLow_copy(cmd); if (cmd1=="keymap") { id=0; return true; } return false; } bool zKeyMapParser::Do( int id, const vector<zParam*> &params, z...
zzz-engine
zzzEngine/zGraphics/zGraphics/zRenderScript/zKeyMapParser.cpp
C++
gpl3
702
#include "zObjectShader.hpp" #include "zRenderScript.hpp" namespace zzz{ bool ShaderLoader::LoadShaderFile( const char* vertexFile, const char* fragmentFile, Shader *o) { bool ret=o->LoadVertexFile(vertexFile) && o->LoadFragmentFile(fragmentFile) && o->Link(); return ret; } bool ShaderLoader::LoadShad...
zzz-engine
zzzEngine/zGraphics/zGraphics/zRenderScript/zObjectShader.cpp
C++
gpl3
6,346
#pragma once //#include <zs.hpp> namespace zzz{ class zRenderScript; class zKeyMapParser : public zExtParser { public: bool Parse(const string &cmd, int &id); bool Do(int id, const vector<zParam*> &params, zParam *ret); void SetZRS(zRenderScript *zrs); private: zRenderScript *m_zrs; }; }
zzz-engine
zzzEngine/zGraphics/zGraphics/zRenderScript/zKeyMapParser.hpp
C++
gpl3
311
#include "zRenderScript.hpp" #include "zObjectTexture2D.hpp" #include "zObjectTextureCube.hpp" #include "zObjectShader.hpp" #include "zObjectLight.hpp" //#include "zObjectMesh.hpp" #include "zObjectFBO.hpp" namespace zzz{ zRenderScript::zRenderScript() { } void zRenderScript::setConst() { } void z...
zzz-engine
zzzEngine/zGraphics/zGraphics/zRenderScript/zRenderScript.cpp
C++
gpl3
1,272
#pragma once #include <zs.hpp> #include "../Renderer/ArcBallRenderer.hpp" namespace zzz{ class zOpenGLParser : public zExtParser { public: enum {GLENABLE,GLDISABLE,GLCLEAR,GLMATRIXMODE,GLPUSHMATRIX,GLPOPMATRIX,GLLOADIDENTITY,GLVIEWPORT, GLTRANSLATE,GLROTATE,GLPOLYGONMODE,GLDEPTHFUNC,GLCHECKERROR,GLCLEAR...
zzz-engine
zzzEngine/zGraphics/zGraphics/zRenderScript/zOpenGLParser.hpp
C++
gpl3
740
#pragma once #include <zs.hpp> #include "../Resource/Mesh/ObjMesh.hpp" namespace zzz{ typedef zObject<ObjMesh> zObjectMesh; }
zzz-engine
zzzEngine/zGraphics/zGraphics/zRenderScript/zObjectMesh.hpp
C++
gpl3
132
#pragma once #include <zs.hpp> #include "../FBO/FBO.hpp" namespace zzz{ typedef zObject<FBO> zObjectFBO; }
zzz-engine
zzzEngine/zGraphics/zGraphics/zRenderScript/zObjectFBO.hpp
C++
gpl3
115
#include "zObjectMesh.hpp" namespace zzz{ bool zObjectMesh::LoadFromMemory(istringstream &iss, const string &path) { ObjMesh *o=(ObjMesh*)m_obj; float trans[3],rot[4],scaleto; string tmp,filename; bool normalize=true,createvbo=true,calnormal=false,translate=false,rotate=false,scale=false; while(true...
zzz-engine
zzzEngine/zGraphics/zGraphics/zRenderScript/zObjectMesh.cpp
C++
gpl3
4,180
#include "zObjectLight.hpp" #include "../Resource/Shader/ShaderSpecify.hpp" namespace zzz{ bool zObjectLight::LoadFromMemory(istringstream &iss, const string &path) { Light *l=(Light*)m_obj; string tmp; while(true) { iss>>tmp; if (iss.fail()) break; ToLow(tmp); if (tmp=="p" || tmp=...
zzz-engine
zzzEngine/zGraphics/zGraphics/zRenderScript/zObjectLight.cpp
C++
gpl3
2,409
#include "zObjectFBO.hpp" #include "zObjectTexture2D.hpp" namespace zzz{ bool zObjectFBO::LoadFromMemory(istringstream &iss, const string &path) { return true; } bool zObjectFBO::Do(const string &cmd1, const vector<zParam*> &param, zParam *ret) { FBO *obj=(FBO*)m_obj; string cmd=ToLow_copy(cmd1); ...
zzz-engine
zzzEngine/zGraphics/zGraphics/zRenderScript/zObjectFBO.cpp
C++
gpl3
938
#pragma once #include <zs.hpp> #include "../Resource/Light/Light.hpp" namespace zzz{ typedef zObject<Light> zObjectLight; }
zzz-engine
zzzEngine/zGraphics/zGraphics/zRenderScript/zObjectLight.hpp
C++
gpl3
130
#include "zObjectTextureCube.hpp" #include "zObjectTextureHelper.hpp" #include "../Resource/Shader/ShaderSpecify.hpp" namespace zzz{ bool zObjectTextureCube::LoadFromMemory(istringstream &iss, const string &path) { TextureCube *t=(TextureCube*)m_obj; string tmp; int tmpi; while(true) { iss>>t...
zzz-engine
zzzEngine/zGraphics/zGraphics/zRenderScript/zObjectTextureCube.cpp
C++
gpl3
2,892
#pragma once #include <zGraphicsConfig.hpp> #include "../Graphics/ArcBall.hpp" #include "GraphicsGUI.hpp" namespace zzz { class ZGRAPHICS_CLASS ArcBallGUI : public ArcBall, public GraphicsGUI<Renderer> { public: bool OnMouseMove(unsigned int nFlags,int x,int y); bool OnLButtonDown(unsigned int nFlags,int...
zzz-engine
zzzEngine/zGraphics/zGraphics/GraphicsGUI/ArcBallGUI.hpp
C++
gpl3
475
#include "CameraGUI.hpp" #include "../Renderer/Renderer.hpp" namespace zzz { CameraGUI::CameraGUI() { SetPosition(0, 0, 2); } bool CameraGUI::OnMouseWheel(unsigned int nFlags, int zDelta, int x,int y) { int nstep=zDelta; if (nstep<0) { nstep=-nstep; if (orthoMode_) { for (int i=0; i<n...
zzz-engine
zzzEngine/zGraphics/zGraphics/GraphicsGUI/CameraGUI.cpp
C++
gpl3
1,900
#pragma once #include <zGraphicsConfig.hpp> #include <zGraphicsConfig.hpp> #include "GraphicsGUI.hpp" #ifdef ZZZ_LIB_ANTTWEAKBAR #include <AntTweakBar.h> namespace zzz{ class Renderer; class ZGRAPHICS_CLASS AntTweakBarGUI : public GraphicsGUI<Renderer> { public: AntTweakBarGUI(); virtual bool Termin...
zzz-engine
zzzEngine/zGraphics/zGraphics/GraphicsGUI/AntTweakBarGUI.hpp
C++
gpl3
1,600
#include "AntTweakBarGUI.hpp" #include "../Renderer/Renderer.hpp" #ifdef ZZZ_LIB_ANTTWEAKBAR namespace zzz{ bool AntTweakBarGUI::Terminate() { return TwTerminate()!=0; } bool AntTweakBarGUI::OnMouseMove(unsigned int nFlags,int x,int y) { bool ret=(TwMouseMotion(x,y)!=0); if (ret) renderer_->Redraw();...
zzz-engine
zzzEngine/zGraphics/zGraphics/GraphicsGUI/AntTweakBarGUI.cpp
C++
gpl3
3,908
#include "ArcBallGUI.hpp" #include "../Renderer/Renderer.hpp" namespace zzz { bool ArcBallGUI::OnMouseMove(unsigned int nFlags,int x,int y) { if (CheckBit(nFlags, ZZZFLAG_LMOUSE)) { Rotate(x,y); return true; } return false; } bool ArcBallGUI::OnLButtonDown(unsigned int nFlags,int x,int y) ...
zzz-engine
zzzEngine/zGraphics/zGraphics/GraphicsGUI/ArcBallGUI.cpp
C++
gpl3
545
#pragma once #include <zGraphicsConfig.hpp> #include "CameraGUI.hpp" #include <Utility\Timer.hpp> namespace zzz { class ZGRAPHICS_CLASS MovingCameraGUI : public CameraGUI { public: MovingCameraGUI(); bool OnLButtonDown(unsigned int nFlags,int x,int y); bool OnMouseMove(unsigned int nFlags,int x,int y)...
zzz-engine
zzzEngine/zGraphics/zGraphics/GraphicsGUI/MovingCameraGUI.hpp
C++
gpl3
765
#pragma once namespace zzz{ template<typename T> class GraphicsGUI { public: //true: succeed, false: failed bool Init(T *renderer) { renderer_=renderer; return InitData(); } virtual bool Terminate(){return true;} virtual bool InitData(){return true;} //true: handled by GUI, fal...
zzz-engine
zzzEngine/zGraphics/zGraphics/GraphicsGUI/GraphicsGUI.hpp
C++
gpl3
1,408
#include "MovingCameraGUI.hpp" #include "../Renderer/Renderer.hpp" namespace zzz { MovingCameraGUI::MovingCameraGUI() :moving_speed_(1), accelerate_time_(2.0) {} bool MovingCameraGUI::OnLButtonDown(unsigned int nFlags,int x,int y) { renderer_->GetContext()->OwnMouse(true); last_x_ = x; last_y_ = y; ...
zzz-engine
zzzEngine/zGraphics/zGraphics/GraphicsGUI/MovingCameraGUI.cpp
C++
gpl3
2,540
#pragma once #include <zGraphicsConfig.hpp> #include "../Graphics/Camera.hpp" #include "GraphicsGUI.hpp" namespace zzz { class ZGRAPHICS_CLASS CameraGUI : public Camera, public GraphicsGUI<Renderer> { public: CameraGUI(); bool OnMButtonDown(unsigned int nFlags,int x,int y); bool OnRButtonDown(unsigned...
zzz-engine
zzzEngine/zGraphics/zGraphics/GraphicsGUI/CameraGUI.hpp
C++
gpl3
624
#pragma once #include <Math/Vector4.hpp> #include <Math/Vector3.hpp> #include <Math/Vector2.hpp> #include <Math/Matrix4x4.hpp> #include <Math/Matrix3x3.hpp> #include <Math/Matrix2x2.hpp> #include <Graphics/Rotation.hpp> namespace zzz{ // Get a D-dimensinal rotation matrix Mat, so that: // Mat * from = to. ...
zzz-engine
zzzEngine/zGraphics/zGraphics/GraphicsAlgo/RotationMatrix.hpp
C++
gpl3
2,313
// Original from Marching Cubes Example Program // by Cory Bloyd (corysama@yahoo.com) // For a description of the algorithm go to // http://astronomy.swin.edu.au/pbourke/modelling/polygonise/ #pragma once #include <zGraphicsConfig.hpp> #include <Math/Array.hpp> #include <Math/Vector3.hpp> #include "../Graphics...
zzz-engine
zzzEngine/zGraphics/zGraphics/GraphicsAlgo/MarchingCubes.hpp
C++
gpl3
1,821
#include "Delaunay.hpp" #include "../Graphics/AABB.hpp" #include <Utility\TextProgressBar.hpp> namespace zzz { typedef DelaunayVertexSet::iterator vIterator; typedef DelaunayVertexSet::const_iterator cvIterator; typedef DelaunayTriangleSet::iterator tIterator; typedef DelaunayTriangleSet::const_iterator ctIt...
zzz-engine
zzzEngine/zGraphics/zGraphics/GraphicsAlgo/Delaunay.cpp
C++
gpl3
10,466
#pragma once #include "../Resource/Mesh/SimpleMesh.hpp" #include "../Graphics/GeometryHelper.hpp" namespace zzz{ template<int LEVEL> class TrackOnSphere { public: TrackOnSphere() { for (int i=0; i<LEVEL; i++) GeometryHelper::CreateSphere(sphere_[i],i); } int Track(const Vector3f &dir,...
zzz-engine
zzzEngine/zGraphics/zGraphics/GraphicsAlgo/TrackOnSphere.hpp
C++
gpl3
1,842
#include "MarchingCubes.hpp" #include <Utility/Tools.hpp> namespace zzz{ //Sampler1 finds the distance of (fX, fY, fZ) from three moving points float Sampler1(const Vector3f &p, const vector<Vector3f> &points) { double fResult = 0.0; for (zuint i=0; i<points.size(); i++) fResult+=1.0f/(p-points[i]).LenSqr(); ...
zzz-engine
zzzEngine/zGraphics/zGraphics/GraphicsAlgo/MarchingCubes.cpp
C++
gpl3
28,735
#pragma once #include <zGraphicsConfig.hpp> #include <common.hpp> #include <Math/Vector3.hpp> #include <Math/Vector2.hpp> namespace zzz { typedef pair<Vector2f,int> DelaunayVertex; typedef vector<DelaunayVertex> DelaunayVertexSet; /////////////////// // DelaunayTriangle class ZGRAPHICS_CLASS DelaunayTri...
zzz-engine
zzzEngine/zGraphics/zGraphics/GraphicsAlgo/Delaunay.hpp
C++
gpl3
2,666
#pragma once #include "zGraphicsConfig.hpp" #include "Graphics/Graphics.hpp" #include "Context/GLUTContext.hpp" #include "Context/Qt4Context.hpp" #include "Context/SFMLContext.hpp" #include "Context/SingleViewContext.hpp" #include "Renderer/ArcBallRenderer.hpp" #include "Renderer/CameraRenderer.hpp" #i...
zzz-engine
zzzEngine/zGraphics/zGraphics/zGraphics.hpp
C++
gpl3
2,880
#pragma once #include "../zGraphicsConfig.hpp" #ifdef ZZZ_LIB_OPENGL // Glew need to be included before gl. #define GLEW_STATIC #include <glew.h> // OpenGL #ifdef ZZZ_OS_WIN #include <Windows.h> #endif #include <GL/gl.h> #include <GL/glu.h> #endif // ZZZ_LIB_OPENGL
zzz-engine
zzzEngine/zGraphics/zGraphics/Graphics/Graphics.hpp
C++
gpl3
292
#include "CubeMap.hpp" namespace zzz{ map<zuint,CubemapPosList*> Cubemapbase::PosListMap; const CubemapPosList& Cubemapbase::GetPosList(zuint n) { map<zuint,CubemapPosList*>::iterator muci=PosListMap.find(n); if (muci==PosListMap.end()) { CubemapPosList *newposlist=new CubemapPosList; newposl...
zzz-engine
zzzEngine/zGraphics/zGraphics/Graphics/CubeMap.cpp
C++
gpl3
3,551
#pragma once #include <zGraphicsConfig.hpp> #include <Math/Vector3.hpp> #include "Graphics.hpp" #include <Image/Image.hpp> #include "AABB.hpp" #include "Color.hpp" namespace zzz{ class ZGRAPHICS_CLASS GraphicsHelper { public: inline void DrawLine(const Vector3d &p1, const Vector3d &p2) const { glB...
zzz-engine
zzzEngine/zGraphics/zGraphics/Graphics/GraphicsHelper.hpp
C++
gpl3
1,899
#pragma once #include <zGraphicsConfig.hpp> #include "Color.hpp" namespace zzz { class ZGRAPHICS_CLASS ColorDefine { public: static const Colorf aliceBlue; static const Colorf antiqueWhite; static const Colorf antiqueWhite1; static const Colorf antiqueWhite2; static const Colorf antiqueWhite3; ...
zzz-engine
zzzEngine/zGraphics/zGraphics/Graphics/ColorDefine.hpp
C++
gpl3
22,212
#pragma once #include "HaarCoeffCubemap.hpp" namespace zzz{ template < int CUBEFACEN,class T1=float,typename T2=unsigned short > class HaarCoeffCubemap4TripleFull; struct _s { short l; //:8; //256 short i; //:12; //4096 short j; //:12; //4096 }; enum _m{M01,M10,M11}; //////////////////////////////...
zzz-engine
zzzEngine/zGraphics/zGraphics/Graphics/Haar/HaarCoeffCubemap4Triple.hpp
C++
gpl3
28,699
#pragma once #include "HaarCoeff1D.hpp" namespace zzz{ template <typename T1, typename T2> struct HaarCoeff2D; template <typename T1, typename T2> struct HaarCoeff2DScale; template <typename T1,typename T2> class HaarCoeff2D { typedef T1 Index_Type; typedef T2 Value_Type; struct _coeffrow{ ...
zzz-engine
zzzEngine/zGraphics/zGraphics/Graphics/Haar/HaarCoeff2D.hpp
C++
gpl3
5,292
#pragma once namespace zzz{ template <typename T1, typename T2, size_t N> struct HaarCoeff { typedef T1 Index_Type; typedef T2 Value_Type; struct _coeff{ Index_Type index; Value_Type value; }Coeff[N]; }; }
zzz-engine
zzzEngine/zGraphics/zGraphics/Graphics/Haar/HaarCoeff.hpp
C++
gpl3
235
#pragma once //#include "../../common.hpp" #include "../CubeMap.hpp" namespace zzz{ //no scale, no index compression template <class T1, typename T2, int CUBEFACEN> struct HaarCoeffCubemap { typedef T1 VALUE_TYPE; typedef T2 INDEX_TYPE; struct _coeff { T2 index; T1 value; }*Coeff; pub...
zzz-engine
zzzEngine/zGraphics/zGraphics/Graphics/Haar/HaarCoeffCubemap.hpp
C++
gpl3
928
#pragma once namespace zzz{ template <typename T1, typename T2> struct HaarCoeff1D; template <typename T1, typename T2> struct HaarCoeff1DScale; template <typename T1, typename T2> struct HaarCoeff1D { typedef T1 Index_Type; typedef T2 Value_Type; struct _coeff{ Index_Type index; Value_Ty...
zzz-engine
zzzEngine/zGraphics/zGraphics/Graphics/Haar/HaarCoeff1D.hpp
C++
gpl3
4,606
#pragma once #include "Coordinate.hpp" #include "../Resource/Texture/TextureCube.hpp" #include "../Resource/Texture/Texture2D.hpp" #include "SH/SHCoeff.hpp" //#include "SH/SHCoeff4f_SSE.hpp" #include <Math/Array.hpp> namespace zzz{ template <typename T>class Cubemap; struct CubemapPos { Carte...
zzz-engine
zzzEngine/zGraphics/zGraphics/Graphics/CubeMap.hpp
C++
gpl3
16,076
#pragma warning(disable:4309) const int fontwidth=8,fontheight=12; const char fontmap[]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0...
zzz-engine
zzzEngine/zGraphics/zGraphics/Graphics/BMPFontData.hpp
C++
gpl3
64,051
#include "ColorDefine.hpp" namespace zzz{ const Colorf ColorDefine::aliceBlue (0.94118,0.97255,1.00000); /// \htmlonly <table><tr><td width="300" bgcolor="#F0F8FF">&nbsp; </td></tr></table> \endhtmlonly const Colorf ColorDefine::antiqueWhite (0.98039,0.92157,0.84314); /// \htmlonly <table><tr><t...
zzz-engine
zzzEngine/zGraphics/zGraphics/Graphics/ColorDefine.cpp
C++
gpl3
148,069
#pragma once #include <zGraphicsConfig.hpp> #include <Math/Math.hpp> #include <Math/Vector3.hpp> namespace zzz{ /* Cartesian3DCoord <-> SphericalCoord \ ^ _\| | CubeCoord -> CubeCoordNormalized everyone use default copy constructor and operator =, all explicit and provide a operator() to Vector3,...
zzz-engine
zzzEngine/zGraphics/zGraphics/Graphics/Coordinate.hpp
C++
gpl3
18,932
#pragma once #include <Math/Vector3.hpp> #include <Math/Vector4.hpp> #include <Graphics/Graphics.hpp> #include <Image/ImageHelper.hpp> namespace zzz { #undef RGB // stupid vc template<typename T> class Color : public Vector<4,T> { public: Color(){} Color(const Color<T> &other):Vector<4,T>(other){} ...
zzz-engine
zzzEngine/zGraphics/zGraphics/Graphics/Color.hpp
C++
gpl3
4,693
#pragma once #include <Math/Random.hpp> #include <Math/Vector3.hpp> #include <Math/Math.hpp> #include <Math/HashFunction.hpp> namespace zzz{ template <typename T> class NoisePerlin { public: NoisePerlin():seed_(TimeSeed()),type_(NOISE_PERLIN),octaves_(1),lambda_(1),omega_(0.5){} NoisePerlin(const zuint se...
zzz-engine
zzzEngine/zGraphics/zGraphics/Graphics/NoisePerlin.hpp
C++
gpl3
9,825
#include "NoisePerlin.hpp" namespace zzz{ template<> const Vector<3,float> NoisePerlin<float> ::vector_[16] = { Vector<3,float>(1, 1, 0), Vector<3,float>(-1, 1, 0), Vector<3,float>(1,-1, 0), Vector<3,float>(-1,-1, 0), Vector<3,float>(1, 0, 1), Vector<3,float>(-1, 0, 1), Vector<3,float>(1, 0...
zzz-engine
zzzEngine/zGraphics/zGraphics/Graphics/NoisePerlin.cpp
C++
gpl3
14,130
#include "HeightMap.hpp" #include "Graphics.hpp" #include <Math/Random.hpp> namespace zzz{ HeightMap::HeightMap() { Left_ = -(MAP_SIZE / 2); Right_ = MAP_SIZE / 2; Front_ = MAP_SIZE / 2; Back_ = -(MAP_SIZE / 2); Generate(); } HeightMap::~HeightMap() { } float HeightMap::GetHeight(int x,...
zzz-engine
zzzEngine/zGraphics/zGraphics/Graphics/HeightMap.cpp
C++
gpl3
2,407
#include "ArcBall.hpp" namespace zzz{ ArcBall::ArcBall() { rot.Identical(); anchor_rot.Identical(); comb.Identical(); trans.Identical(); inv_rotate=false; combine=false; mode2d=false; } void ArcBall::SetWindowSize(double w, double h) { win_w = w; win_h = h; } void ArcBall::...
zzz-engine
zzzEngine/zGraphics/zGraphics/Graphics/ArcBall.cpp
C++
gpl3
2,992
#pragma once #include "../Haar/HaarCoeffCubemap4Triple.hpp" #include "../SH/SHCoeff.hpp" #include <Math/Vector3.hpp> namespace zzz{ template <int HAARN, int SHN, typename T1=float, typename T2=unsigned short > class HaarSHTransformMatrix { public: typedef T1 VALUE_TYPE; typedef T2 INDEX_TYPE; stati...
zzz-engine
zzzEngine/zGraphics/zGraphics/Graphics/TransformMatrix/HaarSHTransformMatrix.hpp
C++
gpl3
13,236
#include "BMPFont.hpp" #include <common.hpp> #include <Math/Vector4.hpp> #include <Math/Array.hpp> #include "Graphics.hpp" #include "BMPFontData.hpp" #include "OpenGLTools.hpp" namespace zzz{ Array<2,zuchar> data; void BMPFont::Draw(const string &msg) { int msglen=msg.size(); zuchar *charidx=new zuchar[...
zzz-engine
zzzEngine/zGraphics/zGraphics/Graphics/BMPFont.cpp
C++
gpl3
1,278
#pragma once #include "OpenGLTools.hpp" #include <Math/Vector3.hpp> namespace zzz{ template <typename T> class Translation : public Vector<3,T> { using Vector<3,T>::v; public: Translation():Vector<3,T>(0){} Translation(const Translation<T> &other):Vector<3,T>(other.v){} Translation(const T x, con...
zzz-engine
zzzEngine/zGraphics/zGraphics/Graphics/Translation.hpp
C++
gpl3
1,076
#pragma once #include <Math/Matrix3x3.hpp> #include "Quaternion.hpp" #include "Transformation.hpp" namespace zzz{ template <typename T> class Rotation : public Matrix<3,3,T> { public: Rotation():Matrix<3,3,T>(1,0,0,0,1,0,0,0,1){} Rotation(const Rotation<T> &other):Matrix<3,3,T>(other){} explicit Ro...
zzz-engine
zzzEngine/zGraphics/zGraphics/Graphics/Rotation.hpp
C++
gpl3
2,590
#include "RayTransform.hpp" #include <Math/Math.hpp> namespace zzz{ float Ft_in(float costheta1,float eta) { if (costheta1>1.0) costheta1=1.0; float sintheta1=sqrt(1.0-costheta1*costheta1); float sintheta2=(sintheta1 * eta); if (sintheta2>1.0) return 0; float costheta2=sqrt(1.0-sintheta2*sintheta2)...
zzz-engine
zzzEngine/zGraphics/zGraphics/Graphics/RayTransform.cpp
C++
gpl3
2,392