Home | History | Annotate | Download | only in AndroidPathRenderer

Lines Matching defs:Vertex

15  * Simple structure to describe a vertex with a position and a texture.
17 struct Vertex {
20 static inline void set(Vertex* vertex, float x, float y) {
21 vertex[0].position[0] = x;
22 vertex[0].position[1] = y;
24 }; // struct Vertex
27 * Simple structure to describe a vertex with a position and a texture.
33 static inline void set(TextureVertex* vertex, float x, float y, float u, float v) {
34 vertex[0].position[0] = x;
35 vertex[0].position[1] = y;
36 vertex[0].texture[0] = u;
37 vertex[0].texture[1] = v;
40 static inline void setUV(TextureVertex* vertex, float u, float v) {
41 vertex[0].texture[0] = u;
42 vertex[0].texture[1] = v;
47 * Simple structure to describe a vertex with a position and an alpha value.
49 struct AlphaVertex : Vertex {
52 static inline void set(AlphaVertex* vertex, float x, float y, float alpha) {
53 Vertex::set(vertex, x, y);
54 vertex[0].alpha = alpha;
57 static inline void setColor(AlphaVertex* vertex, float alpha) {
58 vertex[0].alpha = alpha;
63 * Simple structure to describe a vertex with a position and an alpha value.
65 /*struct AAVertex : Vertex {
69 static inline void set(AAVertex* vertex, float x, float y, float width, float length) {
70 Vertex::set(vertex, x, y);
71 vertex[0].width = width;
72 vertex[0].length = length;
75 static inline void setColor(AAVertex* vertex, float width, float length) {
76 vertex[0].width = width;
77 vertex[0].length = length;