Răsfoiți Sursa

Refactoring

Panagiotis Christopoulos Charitos 14 ani în urmă
părinte
comite
be397b51ad

Fișier diff suprimat deoarece este prea mare
+ 0 - 1
build/debug/Makefile


+ 0 - 0
src/Renderer/BufferObjects/BufferObject.cpp → src/GfxApi/BufferObjects/BufferObject.cpp


+ 0 - 0
src/Renderer/BufferObjects/BufferObject.h → src/GfxApi/BufferObjects/BufferObject.h


+ 0 - 0
src/Renderer/BufferObjects/Fbo.cpp → src/GfxApi/BufferObjects/Fbo.cpp


+ 0 - 0
src/Renderer/BufferObjects/Fbo.h → src/GfxApi/BufferObjects/Fbo.h


+ 0 - 0
src/Renderer/BufferObjects/Vao.cpp → src/GfxApi/BufferObjects/Vao.cpp


+ 0 - 0
src/Renderer/BufferObjects/Vao.h → src/GfxApi/BufferObjects/Vao.h


+ 0 - 0
src/Renderer/BufferObjects/Vbo.h → src/GfxApi/BufferObjects/Vbo.h


+ 1 - 0
src/Renderer/GlStateMachine.cpp → src/GfxApi/GlStateMachine.cpp

@@ -9,6 +9,7 @@ GLenum GlStateMachine::flagEnums[] =
 {
 	GL_DEPTH_TEST,
 	GL_BLEND,
+	GL_STENCIL_TEST,
 	0
 };
 

+ 0 - 1
src/Renderer/GlStateMachine.h → src/GfxApi/GlStateMachine.h

@@ -4,7 +4,6 @@
 #include <GL/glew.h>
 #include <boost/unordered_map.hpp>
 #include "Assert.h"
-#include "Singleton.h"
 
 
 /// Access the GL state machine.

+ 2 - 2
src/Renderer/Is.cpp

@@ -320,7 +320,7 @@ void Is::run()
 	// light passes
 	GlStateMachineSingleton::getInstance().enable(GL_BLEND, true);
 	glBlendFunc(GL_ONE, GL_ONE);
-	glEnable(GL_STENCIL_TEST);
+	GlStateMachineSingleton::getInstance().enable(GL_STENCIL_TEST);
 
 	// for all lights
 	BOOST_FOREACH(const PointLight* light, r.getCamera().getVisiblePointLights())
@@ -334,7 +334,7 @@ void Is::run()
 	}
 	
 
-	glDisable(GL_STENCIL_TEST);
+	GlStateMachineSingleton::getInstance().disable(GL_STENCIL_TEST);
 
 	// FBO
 	//fbo.unbind();

Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff