Crazy Eddies GUI System
0.7.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
cegui
include
CEGUITexture.h
1
/***********************************************************************
2
filename: CEGUITexture.h
3
created: 21/2/2004
4
author: Paul D Turner
5
6
purpose: Defines abstract interface for texture objects. Texture
7
objects are created & destroyed by the Renderer.
8
*************************************************************************/
9
/***************************************************************************
10
* Copyright (C) 2004 - 2009 Paul D Turner & The CEGUI Development Team
11
*
12
* Permission is hereby granted, free of charge, to any person obtaining
13
* a copy of this software and associated documentation files (the
14
* "Software"), to deal in the Software without restriction, including
15
* without limitation the rights to use, copy, modify, merge, publish,
16
* distribute, sublicense, and/or sell copies of the Software, and to
17
* permit persons to whom the Software is furnished to do so, subject to
18
* the following conditions:
19
*
20
* The above copyright notice and this permission notice shall be
21
* included in all copies or substantial portions of the Software.
22
*
23
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
26
* IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
27
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29
* OTHER DEALINGS IN THE SOFTWARE.
30
***************************************************************************/
31
#ifndef _CEGUITexture_h_
32
#define _CEGUITexture_h_
33
34
#include "CEGUIBase.h"
35
#include "CEGUIString.h"
36
37
// Start of CEGUI namespace section
38
namespace
CEGUI
39
{
50
class
CEGUIEXPORT
Texture
51
{
52
public
:
58
enum
PixelFormat
59
{
61
PF_RGB
,
63
PF_RGBA
64
};
65
74
virtual
const
Size
& getSize()
const
= 0;
75
84
virtual
const
Size
& getOriginalDataSize()
const
= 0;
85
95
virtual
const
Vector2
& getTexelScaling()
const
= 0;
96
112
virtual
void
loadFromFile(
const
String
& filename,
113
const
String
& resourceGroup) = 0;
114
132
virtual
void
loadFromMemory(
const
void
* buffer,
133
const
Size
& buffer_size,
134
PixelFormat pixel_format) = 0;
135
146
virtual
void
saveToMemory(
void
* buffer) = 0;
147
152
virtual
~Texture
() {}
153
};
154
155
}
// End of CEGUI namespace section
156
157
#endif // end of guard _CEGUITexture_h_
Generated by
1.8.3.1