1
0
Fork 0
No description
Find a file
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
assets Adding more fonts. 2016-03-08 19:08:26 +01:00
examples Font: moving text size from font to Text object. 2016-05-05 11:04:54 +02:00
include/Spectre Renderer2D: reverse the relationship between Renderer2D and Renderable. 2016-06-18 13:26:08 +02:00
source Renderer2D: reverse the relationship between Renderer2D and Renderable. 2016-06-18 13:26:08 +02:00
vendor Initial commit 2016-01-10 09:26:43 +01:00
vsproj Adding example code and project files. 2016-03-01 09:52:29 +01:00
.gitattributes Initial commit 2016-01-10 09:26:43 +01:00
.gitignore Initial commit 2016-01-10 09:26:43 +01:00
README.md Initial commit 2016-01-10 09:26:43 +01:00

Spectre 2D Engine

A simple 2D Game engine from scratch!