annotate 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
rev   line source
17
ae46cee19e76 - add geometric renderer, can currently only draw liens.
spq@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
1 %module fife
ae46cee19e76 - add geometric renderer, can currently only draw liens.
spq@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
2 %{
ae46cee19e76 - add geometric renderer, can currently only draw liens.
spq@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
3 #include "view/renderers/geometricrenderer.h"
ae46cee19e76 - add geometric renderer, can currently only draw liens.
spq@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
4 %}
ae46cee19e76 - add geometric renderer, can currently only draw liens.
spq@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
5
ae46cee19e76 - add geometric renderer, can currently only draw liens.
spq@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
6 namespace FIFE {
ae46cee19e76 - add geometric renderer, can currently only draw liens.
spq@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
7 class RenderBackend;
ae46cee19e76 - add geometric renderer, can currently only draw liens.
spq@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
8
ae46cee19e76 - add geometric renderer, can currently only draw liens.
spq@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
9 class GeometricRenderer: public RendererBase {
ae46cee19e76 - add geometric renderer, can currently only draw liens.
spq@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
10 public:
ae46cee19e76 - add geometric renderer, can currently only draw liens.
spq@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
11 virtual ~GeometricRenderer();
ae46cee19e76 - add geometric renderer, can currently only draw liens.
spq@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
12 std::string getName();
ae46cee19e76 - add geometric renderer, can currently only draw liens.
spq@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
13 void addLine(Point p1, Point p2, int r, int g, int b);
ae46cee19e76 - add geometric renderer, can currently only draw liens.
spq@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
14 void removeAllLines();
ae46cee19e76 - add geometric renderer, can currently only draw liens.
spq@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
15 static GeometricRenderer* getInstance(IRendererContainer* cnt);
ae46cee19e76 - add geometric renderer, can currently only draw liens.
spq@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
16 private:
ae46cee19e76 - add geometric renderer, can currently only draw liens.
spq@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
17 GeometricRenderer(RenderBackend* renderbackend, int position);
ae46cee19e76 - add geometric renderer, can currently only draw liens.
spq@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
18 };
ae46cee19e76 - add geometric renderer, can currently only draw liens.
spq@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
19 }