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 texture UV.
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, texture UV and ARGB color.
61 static inline void set(ColorTextureVertex* vertex, float x, float y,
63 TextureVertex::set(vertex, x, y, u, v);
66 vertex[0].color[0] = a * ((color >> 16) & 0xff) / 255.0f;
67 vertex[0].color[1] = a * ((color >> 8) & 0xff) / 255.0f;
68 vertex[0].color[2] = a * ((color ) & 0xff) / 255.0f;
69 vertex[0].color[3] = a;
74 * Simple structure to describe a vertex with a position and an alpha value.
76 struct AlphaVertex : Vertex {
79 static inline void set(AlphaVertex* vertex, float x, float y, float alpha) {
80 Vertex::set(vertex, x, y);
81 vertex[0].alpha = alpha;
84 static inline void setColor(AlphaVertex* vertex, float alpha) {
85 vertex[0].alpha = alpha;