Lines Matching full:vertex
28 * Simple structure to describe a vertex with a position and a texture.
30 struct Vertex {
43 static inline void set(Vertex* vertex, float x, float y) {
44 vertex->x = x;
45 vertex->y = y;
48 static inline void set(Vertex* vertex, Vector2 val) {
49 set(vertex, val.x, val.y);
52 static inline void copyWithOffset(Vertex* vertex, const Vertex& src, float x, float y) {
53 set(vertex, src.x + x, src.y + y);
56 }; // struct Vertex
58 REQUIRE_COMPATIBLE_LAYOUT(Vertex);
61 * Simple structure to describe a vertex with a position and texture UV.
67 static inline void set(TextureVertex* vertex, float x, float y, float u, float v) {
68 *vertex = { x, y, u, v };
71 static inline void setUV(TextureVertex* vertex, float u, float v) {
72 vertex[0].u = u;
73 vertex[0].v = v;
80 * Simple structure to describe a vertex with a position, texture UV and ARGB color.
87 static inline void set(ColorTextureVertex* vertex, float x, float y,
94 *vertex = { x, y, u, v, r, g, b, a };
101 * Simple structure to describe a vertex with a position and an alpha value.
107 static inline void set(AlphaVertex* vertex, float x, float y, float alpha) {
108 *vertex = { x, y, alpha };
111 static inline void copyWithOffset(AlphaVertex* vertex, const AlphaVertex& src,
113 AlphaVertex::set(vertex, src.x + x, src.y + y, src.alpha);
116 static inline void setColor(AlphaVertex* vertex, float alpha) {
117 vertex[0].alpha = alpha;