Mercurial > fife-parpg
diff engine/core/view/renderers/geometricrenderer.i @ 17:ae46cee19e76
- add geometric renderer, can currently only draw liens.
- thanks to l4rs for some help
author | spq@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 07 Jul 2008 00:27:59 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/engine/core/view/renderers/geometricrenderer.i Mon Jul 07 00:27:59 2008 +0000 @@ -0,0 +1,19 @@ +%module fife +%{ +#include "view/renderers/geometricrenderer.h" +%} + +namespace FIFE { + class RenderBackend; + + class GeometricRenderer: public RendererBase { + public: + virtual ~GeometricRenderer(); + std::string getName(); + void addLine(Point p1, Point p2, int r, int g, int b); + void removeAllLines(); + static GeometricRenderer* getInstance(IRendererContainer* cnt); + private: + GeometricRenderer(RenderBackend* renderbackend, int position); + }; +}