Testing UI without assets.
This commit is contained in:
		| @@ -18,15 +18,15 @@ RenderManager::RenderManager(DawnGame *game) : | ||||
|  | ||||
| void RenderManager::init() { | ||||
|   this->renderPipeline.init(); | ||||
|    | ||||
|   this->simpleShader.compile(); | ||||
|   this->uiShaderProgram.compile(); | ||||
|  | ||||
|   // Prepare the initial values | ||||
|   glEnable(GL_TEXTURE_2D); | ||||
|   glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); | ||||
|   glDepthMask(GL_TRUE); | ||||
|   glDepthFunc(GL_LESS); | ||||
|  | ||||
|   this->defaultFont.init(); | ||||
| } | ||||
|  | ||||
| RenderTarget * RenderManager::getBackBuffer() { | ||||
|   | ||||
| @@ -9,6 +9,7 @@ | ||||
| #include "display/shader/SimpleTexturedShader.hpp" | ||||
| #include "display/shader/UIShaderProgram.hpp" | ||||
| #include "display/RenderPipeline.hpp" | ||||
| #include "display/font/ExampleFont.hpp" | ||||
|  | ||||
| namespace Dawn { | ||||
|   class RenderManager : public IRenderManager { | ||||
| @@ -19,6 +20,7 @@ namespace Dawn { | ||||
|       BackBufferRenderTarget backBuffer; | ||||
|       SimpleTexturedShader simpleShader; | ||||
|       UIShaderProgram uiShaderProgram; | ||||
|       ExampleFont defaultFont; | ||||
|  | ||||
|       /** | ||||
|        * Construct a new RenderManager for a game instance. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user