From 06ec89b00e4fe2096dbc9f51111a15dbacca210a Mon Sep 17 00:00:00 2001 From: Till Brand Date: Sat, 23 Apr 2022 03:24:18 +0200 Subject: [PATCH] added vec2&3 instead of glm vectors --- include/protocol.hpp | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/include/protocol.hpp b/include/protocol.hpp index ffac37a..6718e55 100644 --- a/include/protocol.hpp +++ b/include/protocol.hpp @@ -89,6 +89,16 @@ struct composed_message : public generic_message message** messages; }; +struct vec2 +{ + float x,y; +}; + +struct vec3 +{ + float x,y,z; +}; + struct draw_rectangle : public generic_message { virtual ~draw_rectangle() = default; @@ -98,9 +108,9 @@ struct draw_rectangle : public generic_message return sizeof(*this); } - glm::vec2 position; - glm::vec2 size; - glm::vec3 color; + vec2 position; + vec2 size; + vec3 color; }; struct draw_pixel : public generic_message @@ -112,8 +122,8 @@ struct draw_pixel : public generic_message return sizeof(*this); } - glm::vec2 position; - glm::vec3 color; + vec2 position; + vec3 color; }; uint32_t get_size(Type type)