From 1bb0ef8960c71ef505a351702bec54c01ba15e22 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Thu, 12 Oct 2017 14:57:26 +0100 Subject: Fixing spritesheet and fixed #12 --- yage/base/spritebatch.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'yage/base/spritebatch.h') diff --git a/yage/base/spritebatch.h b/yage/base/spritebatch.h index 3b4aca76..953055f6 100644 --- a/yage/base/spritebatch.h +++ b/yage/base/spritebatch.h @@ -6,8 +6,8 @@ * ---------------------------------------------------------------------------- */ -/** @file - */ +/** @file + */ #ifndef YAGE_SPRITE_BATCH_H #define YAGE_SPRITE_BATCH_H @@ -16,6 +16,7 @@ #include #include +#include #include @@ -92,8 +93,9 @@ public: void begin(); void end(); // adds a sprite to the sprite batch to be rendered later - void draw(const glm::vec4 &destination_rect, const glm::vec4 &uv_rect, - GLuint texture, const Color &color, float depth); + void draw(const yage::Vector4f &destination_rect, + const yage::Vector4f &uv_rect, GLuint texture, const Color &color, + float depth); // render the batch void render(); -- cgit