2003-04-27 22:15:26 +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" >
< title > /include/ZE_ZImage.h Source File< / title >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" >
< / head > < body >
2003-07-05 00:40:44 +00:00
<!-- Generated by Doxygen 1.3 -->
2003-04-27 22:15:26 +00:00
< center >
< a class = "qindex" href = "index.html" > Main Page< / a > < a class = "qindex" href = "namespaces.html" > Namespace List< / 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 > /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 2D game development.< / span >
00003 < span class = "comment" > Copyright (C) 2002, 2003 James Turk< / span >
00004 < span class = "comment" > < / span >
00005 < span class = "comment" > Licensed under a BSD-style license.< / span >
00006 < span class = "comment" > < / span >
00007 < span class = "comment" > The maintainer of this library is James Turk (james@conceptofzero.net) < / span >
00008 < span class = "comment" > and the home of this Library is http://www.zengine.sourceforge.net< / span >
00009 < span class = "comment" > *******************************************************************************/< / span >
00010
2003-07-05 00:40:44 +00:00
00020 < span class = "preprocessor" > #ifndef __ze_zimage_h__< / span >
00021 < span class = "preprocessor" > < / span > < span class = "preprocessor" > #define __ze_zimage_h__< / span >
00022 < span class = "preprocessor" > < / span >
00023 < span class = "preprocessor" > #include "< a class = "code" href = "ZE__ZEngine_8h.html" > ZE_ZEngine.h< / a > "< / span >
00024
00025 < span class = "keyword" > namespace < / span > ZE
00026 {
00027
< a name = "l00033" > < / a > < a class = "code" href = "classZE_1_1ZImage.html" > 00033< / a > < span class = "keyword" > class < / span > < a class = "code" href = "classZE_1_1ZImage.html" > ZImage< / a >
00034 {
00035 < span class = "keyword" > protected< / span > :
< a name = "l00037" > < / a > < a class = "code" href = "classZE_1_1ZImage.html#n0" > 00037< / a > < a class = "code" href = "classZE_1_1ZEngine.html" > ZEngine< / a > * < a class = "code" href = "classZE_1_1ZImage.html#n0" > rEngine< / a > ;
< a name = "l00039" > < / a > < a class = "code" href = "classZE_1_1ZImage.html#n1" > 00039< / a > GLfloat < a class = "code" href = "classZE_1_1ZImage.html#n1" > rTexMinX< / a > ;
< a name = "l00041" > < / a > < a class = "code" href = "classZE_1_1ZImage.html#n2" > 00041< / a > GLfloat < a class = "code" href = "classZE_1_1ZImage.html#n2" > rTexMinY< / a > ;
< a name = "l00043" > < / a > < a class = "code" href = "classZE_1_1ZImage.html#n3" > 00043< / a > GLfloat < a class = "code" href = "classZE_1_1ZImage.html#n3" > rTexMaxX< / a > ;
< a name = "l00045" > < / a > < a class = "code" href = "classZE_1_1ZImage.html#n4" > 00045< / a > GLfloat < a class = "code" href = "classZE_1_1ZImage.html#n4" > rTexMaxY< / a > ;
< a name = "l00047" > < / a > < a class = "code" href = "classZE_1_1ZImage.html#n5" > 00047< / a > SDL_Surface *< a class = "code" href = "classZE_1_1ZImage.html#n5" > rImage< / a > ;
< a name = "l00049" > < / a > < a class = "code" href = "classZE_1_1ZImage.html#n6" > 00049< / a > < span class = "keywordtype" > unsigned< / span > < span class = "keywordtype" > int< / span > < a class = "code" href = "classZE_1_1ZImage.html#n6" > rTexID< / a > ;
< a name = "l00051" > < / a > < a class = "code" href = "classZE_1_1ZImage.html#n7" > 00051< / a > < span class = "keywordtype" > unsigned< / span > < span class = "keywordtype" > int< / span > < a class = "code" href = "classZE_1_1ZImage.html#n7" > rWidth< / a > ;
< a name = "l00053" > < / a > < a class = "code" href = "classZE_1_1ZImage.html#n8" > 00053< / a > < span class = "keywordtype" > unsigned< / span > < span class = "keywordtype" > int< / span > < a class = "code" href = "classZE_1_1ZImage.html#n8" > rHeight< / a > ;
< a name = "l00055" > < / a > < a class = "code" href = "classZE_1_1ZImage.html#n9" > 00055< / a > Uint8 < a class = "code" href = "classZE_1_1ZImage.html#n9" > rAlpha< / 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 > (< span class = "keyword" > const< / span > < a class = "code" href = "classZE_1_1ZImage.html" > ZImage< / a > & rhs);
00073
00080 < a class = "code" href = "classZE_1_1ZImage.html#a0" > ZImage< / a > (std::string filename);
00081
00088 < a class = "code" href = "classZE_1_1ZImage.html#a0" > ZImage< / a > (SDL_Surface *surface);
00089
00101 < a class = "code" href = "classZE_1_1ZImage.html#a0" > ZImage< / a > (SDL_Surface *img, Sint16 x, Sint16 y, Sint16 w, Sint16 h);
00102
00114 < a class = "code" href = "classZE_1_1ZImage.html#a0" > ZImage< / a > (< span class = "keyword" > const< / span > < a class = "code" href = "classZE_1_1ZImage.html" > ZImage< / a > & img, Sint16 x, Sint16 y, Sint16 w, Sint16 h);
00115
00121 < span class = "keyword" > virtual< / span > < a class = "code" href = "classZE_1_1ZImage.html#a6" > ~ZImage< / a > ();
00122
00124 < span class = "comment" > //Opening and Closing//< / span >
00126 < span class = "comment" > < / span >
00133 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZImage.html#a7" > Open< / a > (std::string filename);
00134
00146 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZImage.html#a8" > OpenFromImage< / a > (SDL_Surface *img, Sint16 x, Sint16 y, Sint16 w, Sint16 h);
00147
00159 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZImage.html#a8" > OpenFromImage< / a > (< span class = "keyword" > const< / span > < a class = "code" href = "classZE_1_1ZImage.html" > ZImage< / a > & img, Sint16 x, Sint16 y, Sint16 w, Sint16 h);
00160
00167 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZImage.html#a10" > Attach< / a > (SDL_Surface *surface);
00168
00174 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZImage.html#a11" > Reload< / a > ();
00175
00181 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZImage.html#a12" > Release< / a > ();
00182
00184 < span class = "comment" > //Graphics//< / span >
00186 < span class = "comment" > < / span >
00194 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZImage.html#a13" > SetAlpha< / a > (Uint8 alpha);
00195
00204 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZImage.html#a14" > SetColorKey< / a > (Uint8 red, Uint8 green, Uint8 blue);
00205
00213 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZImage.html#a15" > Flip< / a > (< span class = "keywordtype" > bool< / span > horizontal, < span class = "keywordtype" > bool< / span > vertical);
00214
00222 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZImage.html#a16" > Stretch< / a > (< span class = "keywordtype" > float< / span > xFactor, < span class = "keywordtype" > float< / span > yFactor);
00223
00231 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZImage.html#a17" > Resize< / a > (< span class = "keywordtype" > unsigned< / span > < span class = "keywordtype" > int< / span > width, < span class = "keywordtype" > unsigned< / span > < span class = "keywordtype" > int< / span > height);
00232
00239 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZImage.html#a18" > Bind< / a > () < span class = "keyword" > const< / span > ;
00240
00250 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZImage.html#a19" > Draw< / a > (< span class = "keywordtype" > int< / span > x, < span class = "keywordtype" > int< / span > y, Uint8 zIndex=0) < span class = "keyword" > const< / span > ;
00251
00261 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZImage.html#a19" > Draw< / a > (< span class = "keywordtype" > float< / span > x, < span class = "keywordtype" > float< / span > y, Uint8 zIndex=0) < span class = "keyword" > const< / span > ;
00262
00272 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZImage.html#a21" > DrawRotated< / a > (< span class = "keywordtype" > int< / span > x, < span class = "keywordtype" > int< / span > y, < span class = "keywordtype" > float< / span > angle, Uint8 zIndex=0) < span class = "keyword" > const< / span > ;
2003-04-27 22:15:26 +00:00
00273
2003-07-05 00:40:44 +00:00
00284 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZImage.html#a21" > DrawRotated< / a > (< span class = "keywordtype" > float< / span > x, < span class = "keywordtype" > float< / span > y, < span class = "keywordtype" > float< / span > angle, Uint8 zIndex=0) < span class = "keyword" > const< / span > ;
00285
00287 < span class = "comment" > //Accessors//< / span >
00289 < span class = "comment" > < / span >
00296 < span class = "keywordtype" > bool< / span > < a class = "code" href = "classZE_1_1ZImage.html#a23" > IsLoaded< / a > () < span class = "keyword" > const< / span > ;
00297
00303 SDL_Surface *< a class = "code" href = "classZE_1_1ZImage.html#a24" > Surface< / a > () < span class = "keyword" > const< / span > ;
00304
00311 < span class = "keywordtype" > int< / span > < a class = "code" href = "classZE_1_1ZImage.html#a25" > Width< / a > () < span class = "keyword" > const< / span > ;
00312
00319 < span class = "keywordtype" > int< / span > < a class = "code" href = "classZE_1_1ZImage.html#a26" > Height< / a > () < span class = "keyword" > const< / span > ;
00320
00328 Uint8 < a class = "code" href = "classZE_1_1ZImage.html#a27" > Alpha< / a > () < span class = "keyword" > const< / span > ;
00329 };
00330
00331 }
00332
00333 < span class = "preprocessor" > #endif< / span >
< / pre > < / div > < hr > < address style = "align: right;" > < small > Generated on Sun Jun 29 14:13:51 2003 for ZEngine by
2003-04-27 22:15:26 +00:00
< a href = "http://www.doxygen.org/index.html" >
< img src = "doxygen.png" alt = "doxygen" align = "middle" border = 0
2003-07-05 00:40:44 +00:00
width=110 height=53>< / a > 1.3 < / small > < / address >
2003-04-27 22:15:26 +00:00
< / body >
< / html >