Home | History | Annotate | Download | only in hwui

Lines Matching refs:vertex

24  * Simple structure to describe a vertex with a position and a texture.
26 struct Vertex {
29 static inline void set(Vertex* vertex, float x, float y) {
30 vertex[0].position[0] = x;
31 vertex[0].position[1] = y;
33 }; // struct Vertex
36 * Simple structure to describe a vertex with a position and a texture.
42 static inline void set(TextureVertex* vertex, float x, float y, float u, float v) {
43 vertex[0].position[0] = x;
44 vertex[0].position[1] = y;
45 vertex[0].texture[0] = u;
46 vertex[0].texture[1] = v;
49 static inline void setUV(TextureVertex* vertex, float u, float v) {
50 vertex[0].texture[0] = u;
51 vertex[0].texture[1] = v;
56 * Simple structure to describe a vertex with a position and an alpha value.
58 struct AlphaVertex : Vertex {
61 static inline void set(AlphaVertex* vertex, float x, float y, float alpha) {
62 Vertex::set(vertex, x, y);
63 vertex[0].alpha = alpha;
66 static inline void setColor(AlphaVertex* vertex, float alpha) {
67 vertex[0].alpha = alpha;
72 * Simple structure to describe a vertex with a position and an alpha value.
74 struct AAVertex : Vertex {
78 static inline void set(AAVertex* vertex, float x, float y, float width, float length) {
79 Vertex::set(vertex, x, y);
80 vertex[0].width = width;
81 vertex[0].length = length;
84 static inline void setColor(AAVertex* vertex, float width, float length) {
85 vertex[0].width = width;
86 vertex[0].length = length;