From f95df35dc58e01b99ffddfc4ad394feaa4460b09 Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Wed, 4 Jul 2012 00:04:53 +0200 Subject: Multitexturing support - added CImage class for loading/saving images and a simple test for it - added libpng library to build - added Gfx::Texture struct - updated the Gfx::CDevice interface to include new features - implemented the new features in Gfx::CGLDevice --- src/graphics/common/texture.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/graphics/common/texture.h') diff --git a/src/graphics/common/texture.h b/src/graphics/common/texture.h index ab894db..55d5c70 100644 --- a/src/graphics/common/texture.h +++ b/src/graphics/common/texture.h @@ -20,9 +20,16 @@ namespace Gfx { +/** \struct Texture*/ struct Texture { - // TODO + //! Whether the texture was loaded + bool valid; + //! Id of the texture in graphics engine + unsigned int id; + + Texture() + { valid = false; id = 0; } }; }; // namespace Gfx -- cgit v1.2.3-1-g7c22