82 lines
5.4 KiB
HTML
82 lines
5.4 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
|
<title>/home/James/ZEngine-dev/include/ZE_ZImage.h Source File</title>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
</head><body>
|
|
<!-- Generated by Doxygen 1.3-rc1 -->
|
|
<center>
|
|
<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center>
|
|
<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>
|
|
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
|
|
00037 <span class="keyword">class </span>ZImage : <span class="keyword">public</span> ZObject
|
|
00038 {
|
|
00039 <span class="keyword">protected</span>:
|
|
00041 ImageData <a class="code" href="classZE_1_1ZImage.html#n0">rImage</a>;
|
|
00042 <span class="keyword">public</span>:
|
|
00043
|
|
00049 <a class="code" href="classZE_1_1ZImage.html#a0">ZImage</a>();
|
|
00050
|
|
00057 <a class="code" href="classZE_1_1ZImage.html#a0">ZImage</a>(string filename);
|
|
00058
|
|
00065 <a class="code" href="classZE_1_1ZImage.html#a0">ZImage</a>(SDL_Surface *surface);
|
|
00066
|
|
00078 <a class="code" href="classZE_1_1ZImage.html#a0">ZImage</a>(SDL_Surface *img, Sint16 x, Sint16 y, Sint16 w, Sint16 h);
|
|
00079
|
|
00085 <a class="code" href="classZE_1_1ZImage.html#a4">~ZImage</a>();
|
|
00086
|
|
00088 <span class="comment">//Opening and Closing//</span>
|
|
00090 <span class="comment"></span>
|
|
00097 <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZImage.html#a5">Open</a>(string filename);
|
|
00098
|
|
00110 <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);
|
|
00111
|
|
00118 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZImage.html#a7">Attach</a>(SDL_Surface *surface);
|
|
00119
|
|
00125 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZImage.html#a8">Release</a>();
|
|
00126
|
|
00128 <span class="comment">//Graphics//</span>
|
|
00130 <span class="comment"></span>
|
|
00137 <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZImage.html#a9">SetAlpha</a>(Uint8 alpha);
|
|
00138
|
|
00145 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZImage.html#a10">SetColorKey</a>(Uint32 color);
|
|
00146
|
|
00154 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZImage.html#a11">Draw</a>(Sint16 x, Sint16 y);
|
|
00155
|
|
00157 <span class="comment">//Accessors//</span>
|
|
00159 <span class="comment"></span>
|
|
00166 <span class="comment"></span> <span class="keywordtype">bool</span> <a class="code" href="classZE_1_1ZImage.html#a12">IsLoaded</a>();
|
|
00167
|
|
00173 SDL_Surface *<a class="code" href="classZE_1_1ZImage.html#a13">GetImage</a>();
|
|
00174
|
|
00181 <span class="keywordtype">int</span> <a class="code" href="classZE_1_1ZImage.html#a14">GetWidth</a>();
|
|
00182
|
|
00189 <span class="keywordtype">int</span> <a class="code" href="classZE_1_1ZImage.html#a15">GetHeight</a>();
|
|
00190
|
|
00197 string <a class="code" href="classZE_1_1ZImage.html#a16">GetFilename</a>();
|
|
00198 };
|
|
00199 }
|
|
00200
|
|
00201 <span class="preprocessor">#endif //__ze_zimage_h__</span>
|
|
</pre></div><hr><address style="align: right;"><small>Generated on Wed Nov 20 01:18:05 2002 for ZEngine by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border=0
|
|
width=110 height=53></a>1.3-rc1 </small></address>
|
|
</body>
|
|
</html>
|