fixed many memory leaks

added working shadows, using basic shadow mapping
This commit is contained in:
erwin coumans
2013-06-30 23:19:14 -07:00
parent f2cc840c31
commit 6d6ef5d3dc
28 changed files with 581 additions and 226 deletions

View File

@@ -52,6 +52,8 @@ class GLInstancingRenderer
int m_screenWidth;
int m_screenHeight;
void renderSceneInternal(int renderMode=B3_DEFAULT_RENDERMODE);
public:
GLInstancingRenderer(int m_maxObjectCapacity, int maxShapeCapacityInBytes = 56*1024*1024);
@@ -59,8 +61,9 @@ public:
void init();
void renderScene();
void InitShaders();
void renderScene(int renderMode=B3_DEFAULT_RENDERMODE);
void CleanupShaders();
void updateShape(int shapeIndex, const float* vertices);
@@ -117,6 +120,8 @@ public:
{
return m_maxNumObjectCapacity;
}
void enableShadowMap();
};
#endif //GL_INSTANCING_RENDERER_H