 |
BARE2D
|
|
Go to the documentation of this file.
58 virtual void link(std::initializer_list<std::string> attributes);
The renderer class holds some shader program, manages some VBO, some render batch(es),...
virtual void render()
Actually renders the contents to the screen!
virtual void link(std::initializer_list< std::string > attributes)
ShaderProgram * getShader()
virtual void preRender()
Does stuff inside of the render function, within the shader's use.
virtual void begin()
Clears the necessary vectors, etc. to prepare for draw() calls, etc.
virtual void destroy()
Frees all necessary memory.
The ShaderProgram is a GLSL program which combines two shaders - the vertex shader and the fragment s...
A wrapper class for OpenGL's VAO, as well as its associated VBO and attributes.
virtual void initUniforms()
Initializes all uniforms, such as colour attachments, depth attachments, etc.
std::vector< RenderBatch > m_batches
virtual void init()
Initializes all necessary bits of the renderer.
virtual void end()
Creates the renderbatches, does necessary stuff before render() call.
virtual void createRenderBatches()=0
Constructs all of the render batches from data given by, say, draw() calls.