1
0
Fork 0
spectre/source/Graphics
Henrik Hautakoski 84ffd0189e Renderer2D: reverse the relationship between Renderer2D and Renderable.
Pass Renderer2D to Renderable and have each subclass of Renderable decide what the Renderer should do (like drawText(), drawRect() etc).

This makes the Renderable more flexible. right now, each renderable has a texture, vertices and indices. but what if some renderables does not use textures? or more than one? What if some renderables are just a group of other renderables? (Scene Graph's).

If we instead just make Renderables implement render(Renderer2D& r) interface. we can make each renderable pass the data it holds to the renderer without a hard defined interface.
2016-06-18 13:26:08 +02:00
..
Font source/Graphics/Font/FreeTypeDriver.cpp: Take outlineSize into account when setting advance. 2016-04-17 22:48:45 +02:00
GL Initial commit 2016-01-10 09:26:43 +01:00
BatchRenderer2D.cpp Renderer2D: reverse the relationship between Renderer2D and Renderable. 2016-06-18 13:26:08 +02:00
DefaultRenderer2D.cpp Initial commit 2016-01-10 09:26:43 +01:00
Font.cpp Font: moving text size from font to Text object. 2016-05-05 11:04:54 +02:00
Image.cpp Initial commit 2016-01-10 09:26:43 +01:00
ImageLoader.cpp Initial commit 2016-01-10 09:26:43 +01:00
ImageLoader.h Initial commit 2016-01-10 09:26:43 +01:00
Renderable2D.cpp Initial commit 2016-01-10 09:26:43 +01:00
Renderer2D.cpp Initial commit 2016-01-10 09:26:43 +01:00
RenderState.cpp Initial commit 2016-01-10 09:26:43 +01:00
Shader.cpp Initial commit 2016-01-10 09:26:43 +01:00
ShaderProgram.cpp Initial commit 2016-01-10 09:26:43 +01:00
Sprite.cpp Renderer2D: reverse the relationship between Renderer2D and Renderable. 2016-06-18 13:26:08 +02:00
Text.cpp Renderer2D: reverse the relationship between Renderer2D and Renderable. 2016-06-18 13:26:08 +02:00
Texture.cpp source/Graphics/Texture.cpp: cleaning up pixel store/format code abit. 2016-03-08 19:02:07 +01:00
Transformable.cpp Initial commit 2016-01-10 09:26:43 +01:00
Vertex2D.cpp Graphics: Change Vertex color to 4 components. 2016-02-02 00:09:29 +01:00