aboutsummaryrefslogtreecommitdiff
path: root/src/sfml/graphics/vertex.zig
diff options
context:
space:
mode:
authortslil clingman <>2021-09-01 12:59:50 -0400
committertslil clingman <>2021-09-01 12:59:50 -0400
commit6a2d132873ce7b40405a3dc000a12539fffd969b (patch)
tree3b730360b348900fbc937bd44b89c293c39ca00c /src/sfml/graphics/vertex.zig
Init
Diffstat (limited to 'src/sfml/graphics/vertex.zig')
-rw-r--r--src/sfml/graphics/vertex.zig9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sfml/graphics/vertex.zig b/src/sfml/graphics/vertex.zig
new file mode 100644
index 0000000..97b25f5
--- /dev/null
+++ b/src/sfml/graphics/vertex.zig
@@ -0,0 +1,9 @@
+//! Define a point with color and texture coordinates.
+
+const sf = @import("../sfml.zig");
+
+pub const Vertex = packed struct {
+ position: sf.system.Vector2f,
+ color: sf.graphics.Color,
+ tex_coords: sf.system.Vector2f,
+};