added vec2&3 instead of glm vectors
This commit is contained in:
@@ -89,6 +89,16 @@ struct composed_message : public generic_message<Type::COMPOSED_MESSAGE>
|
|||||||
message** messages;
|
message** messages;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct vec2
|
||||||
|
{
|
||||||
|
float x,y;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct vec3
|
||||||
|
{
|
||||||
|
float x,y,z;
|
||||||
|
};
|
||||||
|
|
||||||
struct draw_rectangle : public generic_message<Type::DRAW_RECTANGLE>
|
struct draw_rectangle : public generic_message<Type::DRAW_RECTANGLE>
|
||||||
{
|
{
|
||||||
virtual ~draw_rectangle() = default;
|
virtual ~draw_rectangle() = default;
|
||||||
@@ -98,9 +108,9 @@ struct draw_rectangle : public generic_message<Type::DRAW_RECTANGLE>
|
|||||||
return sizeof(*this);
|
return sizeof(*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
glm::vec2 position;
|
vec2 position;
|
||||||
glm::vec2 size;
|
vec2 size;
|
||||||
glm::vec3 color;
|
vec3 color;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct draw_pixel : public generic_message<Type::DRAW_PIXEL>
|
struct draw_pixel : public generic_message<Type::DRAW_PIXEL>
|
||||||
@@ -112,8 +122,8 @@ struct draw_pixel : public generic_message<Type::DRAW_PIXEL>
|
|||||||
return sizeof(*this);
|
return sizeof(*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
glm::vec2 position;
|
vec2 position;
|
||||||
glm::vec3 color;
|
vec3 color;
|
||||||
};
|
};
|
||||||
|
|
||||||
uint32_t get_size(Type type)
|
uint32_t get_size(Type type)
|
||||||
|
|||||||
Reference in New Issue
Block a user