00001 /* Orx - Portable Game Engine 00002 * 00003 * Copyright (c) 2008-2011 Orx-Project 00004 * 00005 * This software is provided 'as-is', without any express or implied 00006 * warranty. In no event will the authors be held liable for any damages 00007 * arising from the use of this software. 00008 * 00009 * Permission is granted to anyone to use this software for any purpose, 00010 * including commercial applications, and to alter it and redistribute it 00011 * freely, subject to the following restrictions: 00012 * 00013 * 1. The origin of this software must not be misrepresented; you must not 00014 * claim that you wrote the original software. If you use this software 00015 * in a product, an acknowledgment in the product documentation would be 00016 * appreciated but is not required. 00017 * 00018 * 2. Altered source versions must be plainly marked as such, and must not be 00019 * misrepresented as being the original software. 00020 * 00021 * 3. This notice may not be removed or altered from any source 00022 * distribution. 00023 */ 00024 00043 #ifndef _orxTEXTURE_H_ 00044 #define _orxTEXTURE_H_ 00045 00046 #include "orxInclude.h" 00047 00048 #include "display/orxDisplay.h" 00049 #include "math/orxMath.h" 00050 00051 00054 #define orxTEXTURE_KZ_SCREEN_NAME "-=SCREEN=-" 00055 00056 00059 typedef enum __orxTEXTURE_EVENT_t 00060 { 00061 orxTEXTURE_EVENT_CREATE = 0, 00062 orxTEXTURE_EVENT_DELETE, 00063 00064 orxTEXTURE_EVENT_NUMBER, 00065 00066 orxTEXTURE_EVENT_NONE = orxENUM_NONE 00067 00068 } orxTEXTURE_EVENT; 00069 00070 00072 typedef struct __orxTEXTURE_t orxTEXTURE; 00073 00074 00077 extern orxDLLAPI void orxFASTCALL orxTexture_Setup(); 00078 00082 extern orxDLLAPI orxSTATUS orxFASTCALL orxTexture_Init(); 00083 00086 extern orxDLLAPI void orxFASTCALL orxTexture_Exit(); 00087 00088 00092 extern orxDLLAPI orxTEXTURE *orxFASTCALL orxTexture_Create(); 00093 00098 extern orxDLLAPI orxTEXTURE *orxFASTCALL orxTexture_CreateFromFile(const orxSTRING _zBitmapFileName); 00099 00104 extern orxDLLAPI orxSTATUS orxFASTCALL orxTexture_Delete(orxTEXTURE *_pstTexture); 00105 00112 extern orxDLLAPI orxSTATUS orxFASTCALL orxTexture_LinkBitmap(orxTEXTURE *_pstTexture, const orxBITMAP *_pstBitmap, const orxSTRING _zDataName); 00113 00118 extern orxDLLAPI orxSTATUS orxFASTCALL orxTexture_UnlinkBitmap(orxTEXTURE *_pstTexture); 00119 00120 00125 extern orxDLLAPI orxBITMAP *orxFASTCALL orxTexture_GetBitmap(const orxTEXTURE *_pstTexture); 00126 00133 extern orxDLLAPI orxSTATUS orxFASTCALL orxTexture_GetSize(const orxTEXTURE *_pstTexture, orxFLOAT *_pfWidth, orxFLOAT *_pfHeight); 00134 00139 extern orxDLLAPI const orxSTRING orxFASTCALL orxTexture_GetName(const orxTEXTURE *_pstTexture); 00140 00146 extern orxDLLAPI orxSTATUS orxFASTCALL orxTexture_SetColor(orxTEXTURE *_pstTexture, const orxCOLOR *_pstColor); 00147 00151 extern orxDLLAPI orxTEXTURE *orxFASTCALL orxTexture_GetScreenTexture(); 00152 00153 #endif /* _orxTEXTURE_H_ */ 00154
1.5.6