orx  stable
Portable Game Engine
orxShaderPointer.h
Go to the documentation of this file.
1 /* Orx - Portable Game Engine
2  *
3  * Copyright (c) 2008-2017 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 
43 #ifndef _orxSHADERPOINTER_H_
44 #define _orxSHADERPOINTER_H_
45 
46 
47 #include "orxInclude.h"
48 #include "render/orxShader.h"
49 #include "object/orxStructure.h"
50 
51 
54 #define orxSHADERPOINTER_KU32_SHADER_NUMBER 4
55 
56 
58 typedef struct __orxSHADERPOINTER_t orxSHADERPOINTER;
59 
60 
63 extern orxDLLAPI void orxFASTCALL orxShaderPointer_Setup();
64 
68 extern orxDLLAPI orxSTATUS orxFASTCALL orxShaderPointer_Init();
69 
72 extern orxDLLAPI void orxFASTCALL orxShaderPointer_Exit();
73 
74 
79 
84 extern orxDLLAPI orxSTATUS orxFASTCALL orxShaderPointer_Delete(orxSHADERPOINTER *_pstShaderPointer);
85 
90 extern orxDLLAPI orxSTATUS orxFASTCALL orxShaderPointer_Start(const orxSHADERPOINTER *_pstShaderPointer);
91 
96 extern orxDLLAPI orxSTATUS orxFASTCALL orxShaderPointer_Stop(const orxSHADERPOINTER *_pstShaderPointer);
97 
102 extern orxDLLAPI void orxFASTCALL orxShaderPointer_Enable(orxSHADERPOINTER *_pstShaderPointer, orxBOOL _bEnable);
103 
108 extern orxDLLAPI orxBOOL orxFASTCALL orxShaderPointer_IsEnabled(const orxSHADERPOINTER *_pstShaderPointer);
109 
110 
116 extern orxDLLAPI orxSTATUS orxFASTCALL orxShaderPointer_AddShader(orxSHADERPOINTER *_pstShaderPointer, orxSHADER *_pstShader);
117 
123 extern orxDLLAPI orxSTATUS orxFASTCALL orxShaderPointer_RemoveShader(orxSHADERPOINTER *_pstShaderPointer, orxSHADER *_pstShader);
124 
130 extern orxDLLAPI const orxSHADER *orxFASTCALL orxShaderPointer_GetShader(const orxSHADERPOINTER *_pstShaderPointer, orxU32 _u32Index);
131 
137 extern orxDLLAPI orxSTATUS orxFASTCALL orxShaderPointer_AddShaderFromConfig(orxSHADERPOINTER *_pstShaderPointer, const orxSTRING _zShaderConfigID);
138 
144 extern orxDLLAPI orxSTATUS orxFASTCALL orxShaderPointer_RemoveShaderFromConfig(orxSHADERPOINTER *_pstShaderPointer, const orxSTRING _zShaderConfigID);
145 
146 #endif /* _orxSHADERPOINTER_H_ */
147 
orxDLLAPI orxSTATUS orxFASTCALL orxShaderPointer_Delete(orxSHADERPOINTER *_pstShaderPointer)
orxDLLAPI orxSTATUS orxFASTCALL orxShaderPointer_AddShader(orxSHADERPOINTER *_pstShaderPointer, orxSHADER *_pstShader)
orxDLLAPI orxSTATUS orxFASTCALL orxShaderPointer_Stop(const orxSHADERPOINTER *_pstShaderPointer)
orxDLLAPI const orxSHADER *orxFASTCALL orxShaderPointer_GetShader(const orxSHADERPOINTER *_pstShaderPointer, orxU32 _u32Index)
struct __orxSHADER_t orxSHADER
Definition: orxShader.h:84
orxDLLAPI orxSTATUS orxFASTCALL orxShaderPointer_Init()
orxDLLAPI orxSTATUS orxFASTCALL orxShaderPointer_AddShaderFromConfig(orxSHADERPOINTER *_pstShaderPointer, const orxSTRING _zShaderConfigID)
orxDLLAPI orxSTATUS orxFASTCALL orxShaderPointer_RemoveShader(orxSHADERPOINTER *_pstShaderPointer, orxSHADER *_pstShader)
orxDLLAPI void orxFASTCALL orxShaderPointer_Exit()
orxSTATUS
Definition: orxType.h:243
orxDLLAPI void orxFASTCALL orxShaderPointer_Enable(orxSHADERPOINTER *_pstShaderPointer, orxBOOL _bEnable)
orxDLLAPI orxBOOL orxFASTCALL orxShaderPointer_IsEnabled(const orxSHADERPOINTER *_pstShaderPointer)
orxDLLAPI orxSHADERPOINTER *orxFASTCALL orxShaderPointer_Create()
#define orxDLLAPI
Definition: orxDecl.h:387
orxDLLAPI orxSTATUS orxFASTCALL orxShaderPointer_RemoveShaderFromConfig(orxSHADERPOINTER *_pstShaderPointer, const orxSTRING _zShaderConfigID)
orxDLLAPI orxSTATUS orxFASTCALL orxShaderPointer_Start(const orxSHADERPOINTER *_pstShaderPointer)
orxDLLAPI void orxFASTCALL orxShaderPointer_Setup()
struct __orxSHADERPOINTER_t orxSHADERPOINTER

Generated for orx by doxygen 1.5.6