orx 1.16
Portable Game Engine
Loading...
Searching...
No Matches
orxRender.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 _orxRENDER_H_
44#define _orxRENDER_H_
45
46
47#include "orxInclude.h"
49
50#include "display/orxDisplay.h"
51#include "object/orxFrame.h"
52#include "object/orxObject.h"
53#include "render/orxViewport.h"
54
55
58#define orxRENDER_KZ_CONFIG_SECTION "Render"
59#define orxRENDER_KZ_CONFIG_SHOW_FPS "ShowFPS"
60#define orxRENDER_KZ_CONFIG_SHOW_PROFILER "ShowProfiler"
61#define orxRENDER_KZ_CONFIG_MIN_FREQUENCY "MinFrequency"
62#define orxRENDER_KZ_CONFIG_PROFILER_ORIENTATION "ProfilerOrientation"
63#define orxRENDER_KZ_CONFIG_CONSOLE_COLOR "ConsoleColor"
64#define orxRENDER_KZ_CONFIG_CONSOLE_ALPHA "ConsoleAlpha"
65
66#define orxRENDER_KZ_CONFIG_CONSOLE_BACKGROUND_COLOR "ConsoleBackgroundColor"
67#define orxRENDER_KZ_CONFIG_CONSOLE_BACKGROUND_ALPHA "ConsoleBackgroundAlpha"
68#define orxRENDER_KZ_CONFIG_CONSOLE_SEPARATOR_COLOR "ConsoleSeparatorColor"
69#define orxRENDER_KZ_CONFIG_CONSOLE_SEPARATOR_ALPHA "ConsoleSeparatorAlpha"
70#define orxRENDER_KZ_CONFIG_CONSOLE_INPUT_COLOR "ConsoleInputColor"
71#define orxRENDER_KZ_CONFIG_CONSOLE_INPUT_ALPHA "ConsoleInputAlpha"
72#define orxRENDER_KZ_CONFIG_CONSOLE_COMPLETION_COLOR "ConsoleCompletionColor"
73#define orxRENDER_KZ_CONFIG_CONSOLE_COMPLETION_ALPHA "ConsoleCompletionAlpha"
74#define orxRENDER_KZ_CONFIG_CONSOLE_LOG_COLOR "ConsoleLogColor"
75#define orxRENDER_KZ_CONFIG_CONSOLE_LOG_ALPHA "ConsoleLogAlpha"
76#define orxRENDER_KZ_CONFIG_CONSOLE_FONT_SCALE "ConsoleFontScale"
77
78
81#define orxRENDER_KZ_INPUT_SET "orx:input:profiler"
82
83#define orxRENDER_KZ_INPUT_PROFILER_TOGGLE_HISTORY "ToggleHistory"
84#define orxRENDER_KZ_INPUT_PROFILER_PAUSE "Pause"
85#define orxRENDER_KZ_INPUT_PROFILER_PREVIOUS_FRAME "PreviousFrame"
86#define orxRENDER_KZ_INPUT_PROFILER_NEXT_FRAME "NextFrame"
87#define orxRENDER_KZ_INPUT_PROFILER_PREVIOUS_DEPTH "PreviousDepth"
88#define orxRENDER_KZ_INPUT_PROFILER_NEXT_DEPTH "NextDepth"
89#define orxRENDER_KZ_INPUT_PROFILER_PREVIOUS_THREAD "PreviousThread"
90#define orxRENDER_KZ_INPUT_PROFILER_NEXT_THREAD "NextThread"
91
92
113
116typedef struct __orxRENDER_EVENT_PAYLOAD_t
117{
118 struct
119 {
121 } stObject;
122
124
125
126/***************************************************************************
127 * Functions directly implemented by orx core
128 ***************************************************************************/
129
132extern orxDLLAPI void orxFASTCALL orxRender_Setup();
133
134
135/***************************************************************************
136 * Functions extended by plugins
137 ***************************************************************************/
138
142extern orxDLLAPI orxSTATUS orxFASTCALL orxRender_Init();
143
146extern orxDLLAPI void orxFASTCALL orxRender_Exit();
147
154extern orxDLLAPI orxVECTOR *orxFASTCALL orxRender_GetWorldPosition(const orxVECTOR *_pvScreenPosition, const orxVIEWPORT *_pstViewport, orxVECTOR *_pvWorldPosition);
155
162extern orxDLLAPI orxVECTOR *orxFASTCALL orxRender_GetScreenPosition(const orxVECTOR *_pvWorldPosition, const orxVIEWPORT *_pstViewport, orxVECTOR *_pvScreenPosition);
163
164#endif /* _orxRENDER_H_ */
165
#define orxDLLAPI
Definition orxDecl.h:381
orxDLLAPI orxVECTOR *orxFASTCALL orxRender_GetScreenPosition(const orxVECTOR *_pvWorldPosition, const orxVIEWPORT *_pstViewport, orxVECTOR *_pvScreenPosition)
orxDLLAPI void orxFASTCALL orxRender_Setup()
orxDLLAPI orxVECTOR *orxFASTCALL orxRender_GetWorldPosition(const orxVECTOR *_pvScreenPosition, const orxVIEWPORT *_pstViewport, orxVECTOR *_pvWorldPosition)
orxDLLAPI orxSTATUS orxFASTCALL orxRender_Init()
orxDLLAPI void orxFASTCALL orxRender_Exit()
orxRENDER_EVENT
Definition orxRender.h:96
@ orxRENDER_EVENT_PROFILER_START
Definition orxRender.h:105
@ orxRENDER_EVENT_CONSOLE_STOP
Definition orxRender.h:104
@ orxRENDER_EVENT_NUMBER
Definition orxRender.h:108
@ orxRENDER_EVENT_START
Definition orxRender.h:97
@ orxRENDER_EVENT_VIEWPORT_STOP
Definition orxRender.h:100
@ orxRENDER_EVENT_VIEWPORT_START
Definition orxRender.h:99
@ orxRENDER_EVENT_PROFILER_STOP
Definition orxRender.h:106
@ orxRENDER_EVENT_OBJECT_STOP
Definition orxRender.h:102
@ orxRENDER_EVENT_CONSOLE_START
Definition orxRender.h:103
@ orxRENDER_EVENT_STOP
Definition orxRender.h:98
@ orxRENDER_EVENT_NONE
Definition orxRender.h:110
@ orxRENDER_EVENT_OBJECT_START
Definition orxRender.h:101
#define orxVIEWPORT(STRUCTURE)
orxSTATUS
Definition orxType.h:270
orxDISPLAY_TRANSFORM * pstTransform
Definition orxRender.h:120

Generated for orx by doxygen 1.8.11