1
0
Fork 0
Commit graph

5 commits

Author SHA1 Message Date
4df668e68f
Minor formating fixes. 2019-12-29 22:26:05 +01:00
e10daeaaa6
Move everything from global namespace to "sp" namespace
When writing the X11 (linux) implementation there was a problem with X11 defining a "Display" type and we also have a Display class in the engine.

So to fix that problem and minimize the risk for running into other name conflicts. We move everything from global namespace.
2019-09-30 19:10:17 +02:00
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
8675018522 Graphics: Change Vertex color to 4 components. 2016-02-02 00:09:29 +01:00
edfc5298e1 Initial commit 2016-01-10 09:26:43 +01:00