orx 1.16
Portable Game Engine
Loading...
Searching...
No Matches
orxTexture.h
Go to the documentation of this file.
1/* Orx - Portable Game Engine
2 *
3 * Copyright (c) 2008- Orx-Project
4 *
5 * This software is provided 'as-is', without any express or implied
6 * warranty. In no event will the authors be held liable for any damages
7 * arising from the use of this software.
8 *
9 * Permission is granted to anyone to use this software for any purpose,
10 * including commercial applications, and to alter it and redistribute it
11 * freely, subject to the following restrictions:
12 *
13 * 1. The origin of this software must not be misrepresented; you must not
14 * claim that you wrote the original software. If you use this software
15 * in a product, an acknowledgment in the product documentation would be
16 * appreciated but is not required.
17 *
18 * 2. Altered source versions must be plainly marked as such, and must not be
19 * misrepresented as being the original software.
20 *
21 * 3. This notice may not be removed or altered from any source
22 * distribution.
23 */
24
32
41
42
43#ifndef _orxTEXTURE_H_
44#define _orxTEXTURE_H_
45
46#include "orxInclude.h"
47
48#include "display/orxDisplay.h"
49#include "math/orxMath.h"
50
51
54#define orxTEXTURE_KZ_RESOURCE_GROUP "Texture"
55#define orxTEXTURE_KZ_LOCALE_GROUP "Texture"
56
57#define orxTEXTURE_KZ_SCREEN_NAME "orx:texture:screen"
58#define orxTEXTURE_KZ_PIXEL_NAME "orx:texture:pixel"
59#define orxTEXTURE_KZ_TRANSPARENT_NAME "orx:texture:transparent"
60
61#define orxTEXTURE_KZ_LOGO_NAME "orx:texture:logo"
62
63
77
78
80typedef struct __orxTEXTURE_t orxTEXTURE;
81
82
85extern orxDLLAPI void orxFASTCALL orxTexture_Setup();
86
90extern orxDLLAPI orxSTATUS orxFASTCALL orxTexture_Init();
91
94extern orxDLLAPI void orxFASTCALL orxTexture_Exit();
95
96
101
107extern orxDLLAPI orxTEXTURE *orxFASTCALL orxTexture_Load(const orxSTRING _zFileName, orxBOOL _bKeepInCache);
108
113extern orxDLLAPI orxSTATUS orxFASTCALL orxTexture_Delete(orxTEXTURE *_pstTexture);
114
119
127extern orxDLLAPI orxSTATUS orxFASTCALL orxTexture_LinkBitmap(orxTEXTURE *_pstTexture, const orxBITMAP *_pstBitmap, const orxSTRING _zDataName, orxBOOL _bTransferOwnership);
128
133extern orxDLLAPI orxSTATUS orxFASTCALL orxTexture_UnlinkBitmap(orxTEXTURE *_pstTexture);
134
135
140extern orxDLLAPI orxBITMAP *orxFASTCALL orxTexture_GetBitmap(const orxTEXTURE *_pstTexture);
141
148extern orxDLLAPI orxSTATUS orxFASTCALL orxTexture_GetSize(const orxTEXTURE *_pstTexture, orxFLOAT *_pfWidth, orxFLOAT *_pfHeight);
149
154extern orxDLLAPI orxTEXTURE *orxFASTCALL orxTexture_Get(const orxSTRING _zName);
155
160extern orxDLLAPI const orxSTRING orxFASTCALL orxTexture_GetName(const orxTEXTURE *_pstTexture);
161
166
170extern orxDLLAPI orxU32 orxFASTCALL orxTexture_GetLoadCount();
171
172#endif /* _orxTEXTURE_H_ */
173
#define orxDLLAPI
Definition orxDecl.h:381
struct __orxBITMAP_t orxBITMAP
Definition orxDisplay.h:82
#define orxTEXTURE(STRUCTURE)
orxDLLAPI orxSTATUS orxFASTCALL orxTexture_ClearCache()
orxDLLAPI orxTEXTURE *orxFASTCALL orxTexture_Load(const orxSTRING _zFileName, orxBOOL _bKeepInCache)
orxDLLAPI orxBITMAP *orxFASTCALL orxTexture_GetBitmap(const orxTEXTURE *_pstTexture)
orxDLLAPI orxSTATUS orxFASTCALL orxTexture_LinkBitmap(orxTEXTURE *_pstTexture, const orxBITMAP *_pstBitmap, const orxSTRING _zDataName, orxBOOL _bTransferOwnership)
orxDLLAPI orxTEXTURE *orxFASTCALL orxTexture_Get(const orxSTRING _zName)
orxDLLAPI orxTEXTURE *orxFASTCALL orxTexture_Create()
orxDLLAPI void orxFASTCALL orxTexture_Setup()
orxDLLAPI void orxFASTCALL orxTexture_Exit()
orxDLLAPI const orxSTRING orxFASTCALL orxTexture_GetName(const orxTEXTURE *_pstTexture)
orxDLLAPI orxSTATUS orxFASTCALL orxTexture_GetSize(const orxTEXTURE *_pstTexture, orxFLOAT *_pfWidth, orxFLOAT *_pfHeight)
orxDLLAPI orxU32 orxFASTCALL orxTexture_GetLoadCount()
orxDLLAPI orxSTATUS orxFASTCALL orxTexture_Delete(orxTEXTURE *_pstTexture)
orxDLLAPI orxSTATUS orxFASTCALL orxTexture_UnlinkBitmap(orxTEXTURE *_pstTexture)
orxDLLAPI orxTEXTURE *orxFASTCALL orxTexture_GetScreenTexture()
orxDLLAPI orxSTATUS orxFASTCALL orxTexture_Init()
orxTEXTURE_EVENT
Definition orxTexture.h:67
@ orxTEXTURE_EVENT_NUMBER
Definition orxTexture.h:72
@ orxTEXTURE_EVENT_DELETE
Definition orxTexture.h:69
@ orxTEXTURE_EVENT_CREATE
Definition orxTexture.h:68
@ orxTEXTURE_EVENT_LOAD
Definition orxTexture.h:70
@ orxTEXTURE_EVENT_NONE
Definition orxTexture.h:74
orxSTATUS
Definition orxType.h:270

Generated for orx by doxygen 1.8.11