CrossFramework Library
|
00001 00006 #if defined(XG3D_INCLUDED_RENDERER_GL_HPP) 00007 #else 00008 #define XG3D_INCLUDED_RENDERER_GL_HPP 00009 00010 //------------------------------------------------------------ 00011 #include <XBase/Bool.hpp> 00012 #include <XBase/Matrix34.hpp> 00013 #include <XBase/Matrix44.hpp> 00014 #include <XG3D/ResMat.hpp> 00015 #include <XG3D/SDKHeader.hpp> 00016 00017 //------------------------------------------------------------ 00018 namespace XBase { 00019 class Display; 00020 } 00021 00022 //------------------------------------------------------------ 00023 namespace XG3D { 00024 // Rendererの拡張。 00025 class Renderer_EXT 00026 { 00027 public: 00028 enum { UNIFORM_COUNT = 5 }; 00029 GLuint demoShaderProgram; 00030 GLint demoUniformLocations[ UNIFORM_COUNT ]; 00031 ::XBase::Bool32 colorUpdate; 00032 ::XBase::Bool32 depthUpdate; 00033 ::XG3D::ResMat currentMaterial; 00034 ::XBase::Matrix44 mtxProj; 00035 ::XBase::Matrix34 mtxView; 00036 ::XBase::Matrix34 mtxWorld; 00037 00038 //============================================================ 00039 Renderer_EXT(); 00040 00041 //============================================================ 00042 void setup( ::XBase::Display& ); 00043 void updateMtxProj(); 00044 void updateMtxView(); 00045 void updateMtxWorld(); 00046 }; 00047 } 00048 //------------------------------------------------------------ 00049 #endif 00050 // EOF