diff options
author | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
commit | dd7595a3475407a7fa96a97393bae8c5220e8762 (patch) | |
tree | e341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/evas/src/modules/engines/direct3d/evas_direct3d_object_rect.h | |
parent | Add the skeleton. (diff) | |
download | SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2 SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz |
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to 'libraries/evas/src/modules/engines/direct3d/evas_direct3d_object_rect.h')
-rw-r--r-- | libraries/evas/src/modules/engines/direct3d/evas_direct3d_object_rect.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/libraries/evas/src/modules/engines/direct3d/evas_direct3d_object_rect.h b/libraries/evas/src/modules/engines/direct3d/evas_direct3d_object_rect.h new file mode 100644 index 0000000..f7ef084 --- /dev/null +++ b/libraries/evas/src/modules/engines/direct3d/evas_direct3d_object_rect.h | |||
@@ -0,0 +1,37 @@ | |||
1 | #ifndef __EVAS_DIRECT3D_OBJECT_RECT_H__ | ||
2 | #define __EVAS_DIRECT3D_OBJECT_RECT_H__ | ||
3 | |||
4 | #include "evas_engine.h" | ||
5 | |||
6 | #include "ref.h" | ||
7 | #include "array.h" | ||
8 | |||
9 | #include "evas_direct3d_object.h" | ||
10 | |||
11 | class D3DObjectRect : public D3DObject | ||
12 | { | ||
13 | public: | ||
14 | D3DObjectRect(); | ||
15 | |||
16 | static void BeginCache(); | ||
17 | virtual void Draw(D3DDevice *d3d); | ||
18 | static void EndCache(D3DDevice *d3d); | ||
19 | |||
20 | void Setup(FLOAT x, FLOAT y, FLOAT w, FLOAT h, DWORD color); | ||
21 | |||
22 | private: | ||
23 | FLOAT _x, _y, _w, _h; | ||
24 | DWORD _color; | ||
25 | |||
26 | private: | ||
27 | struct Vertex | ||
28 | { | ||
29 | FLOAT x, y; | ||
30 | DWORD color; | ||
31 | }; | ||
32 | |||
33 | static TArray<Vertex> _cache; | ||
34 | static bool _cache_enabled; | ||
35 | }; | ||
36 | |||
37 | #endif // __EVAS_DIRECT3D_OBJECT_RECT_H__ | ||