zengine/doc/html/ZE__ZImage_8h-source.html

97 lines
6.9 KiB
HTML
Raw Normal View History

2002-11-21 05:40:49 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
2002-12-05 00:05:06 +00:00
<title>/home/James/ZEngine-dev/include/ZE_ZImage.h Source File</title>
2002-11-21 05:40:49 +00:00
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
2002-12-05 00:05:06 +00:00
<!-- Generated by Doxygen 1.3-rc1 -->
2002-11-21 05:40:49 +00:00
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
2002-12-05 00:05:06 +00:00
<hr><h1>/home/James/ZEngine-dev/include/ZE_ZImage.h</h1><a href="ZE__ZImage_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*******************************************************************************</span>
2002-11-21 05:40:49 +00:00
00002 <span class="comment"> This file is Part of the ZEngine Library for SDL Game Development.</span>
00003 <span class="comment"> Copyright (C) 2002 ConceptOfZero.net</span>
00004 <span class="comment"></span>
00005 <span class="comment"> Licensed under the BSD License, see licensing.txt.</span>
00006 <span class="comment"></span>
00007 <span class="comment"> The maintainer of this library is James Turk (jturk@conceptofzero.net) </span>
00008 <span class="comment"> and the home of this Library is http://www.conceptofzero.net/</span>
00009 <span class="comment">*******************************************************************************/</span>
00010
00024 <span class="preprocessor">#ifndef __ze_zimage_h__</span>
00025 <span class="preprocessor"></span><span class="preprocessor">#define __ze_zimage_h__</span>
00026 <span class="preprocessor"></span>
00027 <span class="preprocessor">#include "<a class="code" href="ZE__ZObject_8h.html">ZE_ZObject.h</a>"</span>
00028
00029 <span class="keyword">namespace </span>ZE
00030 {
00031
2002-12-05 00:05:06 +00:00
00037 <span class="keyword">class </span>ZImage : <span class="keyword">public</span> ZObject
2002-11-21 05:40:49 +00:00
00038 {
00039 <span class="keyword">protected</span>:
2002-12-05 00:05:06 +00:00
00041 GLfloat <a class="code" href="classZE_1_1ZImage.html#n0">rTexMinX</a>;
00043 GLfloat <a class="code" href="classZE_1_1ZImage.html#n1">rTexMinY</a>;
00045 GLfloat <a class="code" href="classZE_1_1ZImage.html#n2">rTexMaxX</a>;
00047 GLfloat <a class="code" href="classZE_1_1ZImage.html#n3">rTexMaxY</a>;
00049 SDL_Surface *<a class="code" href="classZE_1_1ZImage.html#n4">rImage</a>;
00051 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classZE_1_1ZImage.html#n5">rTexID</a>;
00053 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classZE_1_1ZImage.html#n6">rWidth</a>;
00055 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classZE_1_1ZImage.html#n7">rHeight</a>;
00056
00057 <span class="keyword">public</span>:
00058
00064 <a class="code" href="classZE_1_1ZImage.html#a0">ZImage</a>();
00065
00072 <a class="code" href="classZE_1_1ZImage.html#a0">ZImage</a>(string filename);
00073
00080 <a class="code" href="classZE_1_1ZImage.html#a0">ZImage</a>(SDL_Surface *surface);
00081
00093 <a class="code" href="classZE_1_1ZImage.html#a0">ZImage</a>(SDL_Surface *img, Sint16 x, Sint16 y, Sint16 w, Sint16 h);
00094
00100 <a class="code" href="classZE_1_1ZImage.html#a4">~ZImage</a>();
00101
00103 <span class="comment">//Opening and Closing//</span>
00105 <span class="comment"></span>
00112 <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZImage.html#a5">Open</a>(string filename);
00113
00125 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZImage.html#a6">OpenFromImage</a>(SDL_Surface *img, Sint16 x, Sint16 y, Sint16 w, Sint16 h);
00126
00133 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZImage.html#a7">Attach</a>(SDL_Surface *surface);
00134
00140 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZImage.html#a8">Release</a>();
00141
00143 <span class="comment">//Graphics//</span>
00145 <span class="comment"></span>
00154 <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZImage.html#a9">SetColorKey</a>(Uint8 red, Uint8 green, Uint8 blue);
00155
00163 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZImage.html#a10">Flip</a>(<span class="keywordtype">bool</span> horizontal, <span class="keywordtype">bool</span> vertical);
00164
00172 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZImage.html#a11">Stretch</a>(<span class="keywordtype">float</span> xFactor, <span class="keywordtype">float</span> yFactor);
00173
00181 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZImage.html#a12">Resize</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> height);
00182
00189 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZImage.html#a13">Bind</a>();
00190
00198 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZImage.html#a14">Draw</a>(<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y);
00199
00208 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZImage.html#a15">DrawRotated</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">float</span> angle);
00209
00211 <span class="comment">//Accessors//</span>
00213 <span class="comment"></span>
00220 <span class="comment"></span> <span class="keywordtype">bool</span> <a class="code" href="classZE_1_1ZImage.html#a16">IsLoaded</a>();
00221
00227 SDL_Surface *<a class="code" href="classZE_1_1ZImage.html#a17">Surface</a>();
00228
00235 <span class="keywordtype">int</span> <a class="code" href="classZE_1_1ZImage.html#a18">Width</a>();
00236
00243 <span class="keywordtype">int</span> <a class="code" href="classZE_1_1ZImage.html#a19">Height</a>();
00244 };
00245
00246 }
00247
00248 <span class="preprocessor">#endif</span>
</pre></div><hr><address style="align: right;"><small>Generated on Wed Dec 4 19:01:30 2002 for ZEngine by
2002-11-21 05:40:49 +00:00
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0
2002-12-05 00:05:06 +00:00
width=110 height=53></a>1.3-rc1 </small></address>
2002-11-21 05:40:49 +00:00
</body>
</html>