1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
4
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5
<title>Crazy Eddies GUI System: CEGUIOgreImageCodec.h Source File</title>
6
<link href="tabs.css" rel="stylesheet" type="text/css"/>
7
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
10
<!-- Generated by Doxygen 1.7.4 -->
11
<script type="text/javascript">
12
function hasClass(ele,cls) {
13
return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
16
function addClass(ele,cls) {
17
if (!this.hasClass(ele,cls)) ele.className += " "+cls;
20
function removeClass(ele,cls) {
21
if (hasClass(ele,cls)) {
22
var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
23
ele.className=ele.className.replace(reg,' ');
27
function toggleVisibility(linkObj) {
28
var base = linkObj.getAttribute('id');
29
var summary = document.getElementById(base + '-summary');
30
var content = document.getElementById(base + '-content');
31
var trigger = document.getElementById(base + '-trigger');
32
if ( hasClass(linkObj,'closed') ) {
33
summary.style.display = 'none';
34
content.style.display = 'block';
35
trigger.src = 'open.png';
36
removeClass(linkObj,'closed');
37
addClass(linkObj,'opened');
38
} else if ( hasClass(linkObj,'opened') ) {
39
summary.style.display = 'block';
40
content.style.display = 'none';
41
trigger.src = 'closed.png';
42
removeClass(linkObj,'opened');
43
addClass(linkObj,'closed');
50
<table cellspacing="0" cellpadding="0">
52
<tr style="height: 56px;">
53
<td style="padding-left: 0.5em;">
54
<div id="projectname">Crazy Eddies GUI System <span id="projectnumber">0.7.6</span></div>
60
<div id="navrow1" class="tabs">
62
<li><a href="index.html"><span>Main Page</span></a></li>
63
<li><a href="pages.html"><span>Related Pages</span></a></li>
64
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
65
<li><a href="annotated.html"><span>Classes</span></a></li>
66
<li class="current"><a href="files.html"><span>Files</span></a></li>
69
<div id="navrow2" class="tabs2">
71
<li><a href="files.html"><span>File List</span></a></li>
75
<div class="headertitle">
76
<div class="title">CEGUIOgreImageCodec.h</div> </div>
78
<div class="contents">
79
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/***********************************************************************</span>
80
<a name="l00002"></a>00002 <span class="comment"> filename: CEGUIOgreImageCodec.h</span>
81
<a name="l00003"></a>00003 <span class="comment"> created: Wed Mar 25 2009</span>
82
<a name="l00004"></a>00004 <span class="comment"> author: Paul D Turner <paul@cegui.org.uk></span>
83
<a name="l00005"></a>00005 <span class="comment">*************************************************************************/</span>
84
<a name="l00006"></a>00006 <span class="comment">/***************************************************************************</span>
85
<a name="l00007"></a>00007 <span class="comment"> * Copyright (C) 2004 - 2009 Paul D Turner & The CEGUI Development Team</span>
86
<a name="l00008"></a>00008 <span class="comment"> *</span>
87
<a name="l00009"></a>00009 <span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining</span>
88
<a name="l00010"></a>00010 <span class="comment"> * a copy of this software and associated documentation files (the</span>
89
<a name="l00011"></a>00011 <span class="comment"> * "Software"), to deal in the Software without restriction, including</span>
90
<a name="l00012"></a>00012 <span class="comment"> * without limitation the rights to use, copy, modify, merge, publish,</span>
91
<a name="l00013"></a>00013 <span class="comment"> * distribute, sublicense, and/or sell copies of the Software, and to</span>
92
<a name="l00014"></a>00014 <span class="comment"> * permit persons to whom the Software is furnished to do so, subject to</span>
93
<a name="l00015"></a>00015 <span class="comment"> * the following conditions:</span>
94
<a name="l00016"></a>00016 <span class="comment"> *</span>
95
<a name="l00017"></a>00017 <span class="comment"> * The above copyright notice and this permission notice shall be</span>
96
<a name="l00018"></a>00018 <span class="comment"> * included in all copies or substantial portions of the Software.</span>
97
<a name="l00019"></a>00019 <span class="comment"> *</span>
98
<a name="l00020"></a>00020 <span class="comment"> * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,</span>
99
<a name="l00021"></a>00021 <span class="comment"> * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF</span>
100
<a name="l00022"></a>00022 <span class="comment"> * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.</span>
101
<a name="l00023"></a>00023 <span class="comment"> * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR</span>
102
<a name="l00024"></a>00024 <span class="comment"> * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,</span>
103
<a name="l00025"></a>00025 <span class="comment"> * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR</span>
104
<a name="l00026"></a>00026 <span class="comment"> * OTHER DEALINGS IN THE SOFTWARE.</span>
105
<a name="l00027"></a>00027 <span class="comment"> ***************************************************************************/</span>
106
<a name="l00028"></a>00028 <span class="preprocessor">#ifndef _CEGUIOgreImageCodec_h_</span>
107
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define _CEGUIOgreImageCodec_h_</span>
108
<a name="l00030"></a>00030 <span class="preprocessor"></span>
109
<a name="l00031"></a>00031 <span class="preprocessor">#include "../../CEGUIImageCodec.h"</span>
110
<a name="l00032"></a>00032 <span class="preprocessor">#include "CEGUIOgreRenderer.h"</span>
111
<a name="l00033"></a>00033
112
<a name="l00034"></a>00034 <span class="comment">// Start of CEGUI namespace section</span>
113
<a name="l00035"></a>00035 <span class="keyword">namespace </span>CEGUI
114
<a name="l00036"></a>00036 {
115
<a name="l00041"></a><a class="code" href="classCEGUI_1_1OgreImageCodec.html">00041</a> <span class="keyword">class </span>OGRE_GUIRENDERER_API <a class="code" href="classCEGUI_1_1OgreImageCodec.html" title="ImageCodec object that loads data via image loading facilities in Ogre.">OgreImageCodec</a> : <span class="keyword">public</span> <a class="code" href="classCEGUI_1_1ImageCodec.html" title="Abstract ImageLoader class. An image loader encapsulate the loading of a texture.">ImageCodec</a>
116
<a name="l00042"></a>00042 {
117
<a name="l00043"></a>00043 <span class="keyword">public</span>:
118
<a name="l00045"></a>00045 <a class="code" href="classCEGUI_1_1OgreImageCodec.html" title="ImageCodec object that loads data via image loading facilities in Ogre.">OgreImageCodec</a>();
119
<a name="l00046"></a>00046
120
<a name="l00065"></a>00065 <span class="keywordtype">void</span> setImageFileDataType(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& type);
121
<a name="l00066"></a>00066
122
<a name="l00071"></a>00071 <span class="keyword">const</span> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a>& getImageFileDataType() <span class="keyword">const</span>;
123
<a name="l00072"></a>00072
124
<a name="l00073"></a>00073 <span class="comment">// implement required function from ImageCodec.</span>
125
<a name="l00074"></a>00074 <a class="code" href="classCEGUI_1_1Texture.html" title="Abstract base class specifying the required interface for Texture objects.">Texture</a>* load(<span class="keyword">const</span> <a class="code" href="classCEGUI_1_1RawDataContainer.html" title="Class used as the databuffer for loading files throughout the library.">RawDataContainer</a>& data, <a class="code" href="classCEGUI_1_1Texture.html" title="Abstract base class specifying the required interface for Texture objects.">Texture</a>* result);
126
<a name="l00075"></a>00075
127
<a name="l00076"></a>00076 <span class="keyword">protected</span>:
128
<a name="l00078"></a><a class="code" href="classCEGUI_1_1OgreImageCodec.html#a87210ac0f94fb705ce8c33907c869705">00078</a> <a class="code" href="classCEGUI_1_1String.html" title="String class used within the GUI system.">String</a> <a class="code" href="classCEGUI_1_1OgreImageCodec.html#a87210ac0f94fb705ce8c33907c869705" title="Holds currently set file data type specifier (i.e. the file extension).">d_dataTypeID</a>;
129
<a name="l00079"></a>00079 };
130
<a name="l00080"></a>00080
131
<a name="l00081"></a>00081 } <span class="comment">// End of CEGUI namespace section</span>
132
<a name="l00082"></a>00082
133
<a name="l00083"></a>00083 <span class="preprocessor">#endif // end of guard _CEGUIOgreImageCodec_h_</span>
136
<hr class="footer"/><address class="footer"><small>Generated on Sun Jan 22 2012 16:07:39 for Crazy Eddies GUI System by 
137
<a href="http://www.doxygen.org/index.html">
138
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>