blob: f7ef084ab283a7f4d30a9fb1f0f8114b80001e35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#ifndef __EVAS_DIRECT3D_OBJECT_RECT_H__
#define __EVAS_DIRECT3D_OBJECT_RECT_H__
#include "evas_engine.h"
#include "ref.h"
#include "array.h"
#include "evas_direct3d_object.h"
class D3DObjectRect : public D3DObject
{
public:
D3DObjectRect();
static void BeginCache();
virtual void Draw(D3DDevice *d3d);
static void EndCache(D3DDevice *d3d);
void Setup(FLOAT x, FLOAT y, FLOAT w, FLOAT h, DWORD color);
private:
FLOAT _x, _y, _w, _h;
DWORD _color;
private:
struct Vertex
{
FLOAT x, y;
DWORD color;
};
static TArray<Vertex> _cache;
static bool _cache_enabled;
};
#endif // __EVAS_DIRECT3D_OBJECT_RECT_H__
|