Lines Matching refs:vertex

26  * Simple structure to describe a vertex with a position and a texture.
41 static inline void set(Vertex* vertex, float x, float y) {
42 vertex[0].x = x;
43 vertex[0].y = y;
46 static inline void set(Vertex* vertex, Vector2 val) {
47 set(vertex, val.x, val.y);
50 static inline void copyWithOffset(Vertex* vertex, const Vertex& src, float x, float y) {
51 set(vertex, src.x + x, src.y + y);
57 * Simple structure to describe a vertex with a position and texture UV.
63 static inline void set(TextureVertex* vertex, float x, float y, float u, float v) {
64 vertex[0].x = x;
65 vertex[0].y = y;
66 vertex[0].u = u;
67 vertex[0].v = v;
70 static inline void setUV(TextureVertex* vertex, float u, float v) {
71 vertex[0].u = u;
72 vertex[0].v = v;
77 * Simple structure to describe a vertex with a position, texture UV and ARGB color.
82 static inline void set(ColorTextureVertex* vertex, float x, float y,
84 TextureVertex::set(vertex, x, y, u, v);
87 vertex[0].r = a * ((color >> 16) & 0xff) / 255.0f;
88 vertex[0].g = a * ((color >> 8) & 0xff) / 255.0f;
89 vertex[0].b = a * ((color ) & 0xff) / 255.0f;
90 vertex[0].a = a;
95 * Simple structure to describe a vertex with a position and an alpha value.
100 static inline void set(AlphaVertex* vertex, float x, float y, float alpha) {
101 Vertex::set(vertex, x, y);
102 vertex[0].alpha = alpha;
105 static inline void copyWithOffset(AlphaVertex* vertex, const AlphaVertex& src,
107 Vertex::set(vertex, src.x + x, src.y + y);
108 vertex[0].alpha = src.alpha;
111 static inline void setColor(AlphaVertex* vertex, float alpha) {
112 vertex[0].alpha = alpha;