Testing UI without assets.

This commit is contained in:
2023-03-20 21:12:03 -07:00
parent c15fc4ef8a
commit 0f75f79498
7 changed files with 154 additions and 3 deletions

View File

@ -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() {

View File

@ -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.