From 7c5a3514dd6e907866bddcbb09b4d9cbd958dd8e Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Sun, 29 Jul 2012 15:09:53 +0200 Subject: Video mode changing - added video mode querying & changing - added joystick querying & changing - cleaned up CApplication interface --- src/graphics/core/texture.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/graphics/core/texture.h') diff --git a/src/graphics/core/texture.h b/src/graphics/core/texture.h index 787c2bf..8d6b082 100644 --- a/src/graphics/core/texture.h +++ b/src/graphics/core/texture.h @@ -18,6 +18,9 @@ #pragma once +#include "math/intsize.h" + + namespace Gfx { /** @@ -190,10 +193,8 @@ struct Texture bool valid; //! ID of the texture in graphics engine unsigned int id; - //! Width of texture - int width; - //! Height of texture - int height; + //! Size of texture + Math::IntSize size; //! Whether the texture has alpha channel bool alpha; @@ -201,7 +202,6 @@ struct Texture { valid = false; id = 0; - width = height = 0; alpha = false; } -- cgit v1.2.3-1-g7c22