Engines main namespace. More...
Classes | |
class | IDGLE_Base |
Engine base fundamental interface. More... | |
class | IEngineSubSystem |
Base interface of any engine subsystem. More... | |
class | IPlugin |
Base interface of any engine plugin. More... | |
class | ISubSystemPlugin |
Base interface of any engine core subsystem plugin. More... | |
class | IEngineBaseObject |
Base interface of any engine object. More... | |
class | IBaseEvent |
Base interface of any engine event. More... | |
class | IEvBeforeInitialization |
Event occurs just before engine will call its initialization routines. More... | |
class | IEvConsoleWrite |
Event occurs when some text is being added to the engine console. More... | |
class | IEvFatalMessage |
Event occurs on engine fatal error. More... | |
class | IEvWindowMessage |
Event occurs every time when window receives message. More... | |
class | IEvGetSubSystem |
Event occurs when someone calls IEngineCore::GetSubSystem method. More... | |
class | IEvGoFullScreen |
Event occurs when engine is going fullscreen or go back to windowed mode from fullscreen mode. More... | |
class | IEngineCallback |
class | IEngineCore |
Main engine interface. More... | |
class | IResourceManager |
class | IRender |
class | IRender2D |
class | IRender3D |
class | ILight |
class | ITexture |
class | IMaterial |
class | IBitmapFont |
class | IMesh |
class | IModel |
class | IInput |
class | ISound |
class | ISoundChannel |
class | ISoundSample |
class | IMusic |
class | IMainFileSystem |
class | IFile |
class | IFileIterator |
class | IFileSystem |
struct | TBlendStateDesc |
struct | TDepthStencilDesc |
struct | TRasterizerStateDesc |
struct | TDrawDataAttributes |
struct | TDrawDataDesc |
class | IBaseRenderObjectContainer |
class | ICoreTexture |
class | ICoreGeometryBuffer |
class | ICoreRenderer |
class | IFixedFunctionPipeline |
struct | TVariant |
struct | TWindowMessage |
Structure with window event message information. More... | |
struct | TEngineWindow |
Describes the parameters of the main engine window and its behavior. More... | |
struct | TSystemInfo |
Describes user hardware and operating system. More... | |
struct | TPluginInfo |
Describes engine plugin information. More... | |
struct | TColor4 |
Describes color in engine. More... | |
struct | TPoint2 |
Describes point coordinates in 2D space. More... | |
struct | TPoint3 |
Describes point coordinates in 3D space. More... | |
struct | TVertex2 |
Describes graphical point coordinates, color and its texture coordinates in 2D space. More... | |
struct | TRectF |
Describes 2D rectangle by float values. More... | |
struct | TMatrix4x4 |
Describes 4x4 matrix and some math routines used in 3D graphics computes. More... | |
class | TTransformStack |
Template for multiplication stacks. More... | |
struct | TMouseStates |
Describes the state of the mouse. More... | |
struct | TKeyboardStates |
Describes the state of the keyboard. More... | |
struct | TJoystickStates |
Describes the state of the joystick or gamepad. More... | |
Typedefs | |
typedef short int | int16 |
typedef long int | int32 |
typedef signed char | int8 |
typedef wchar_t | wchar |
typedef unsigned int | uint |
typedef unsigned short int | uint16 |
typedef unsigned long int | uint32 |
typedef unsigned char | uint8 |
typedef uint8 | uchar |
typedef signed long long | int64 |
typedef unsigned long long | uint64 |
typedef TColor4 | TColor |
typedef TPoint2 | TVec2 |
typedef TPoint2 | TVector2 |
typedef TPoint3 | TVec3 |
typedef TPoint3 | TVector3 |
typedef TMatrix4x4 | TMat4 |
typedef TMatrix4x4 | TMatrix4 |
typedef TTransformStack < TMatrix4x4 > | TMatrix4x4Stack |
Stack of matrix 4x4 multiplication operations. | |
Functions | |
enum | ENUM_FORWARD_DECLARATION (E_ENGINE_INIT_FLAGS) |
Engine initialization flags. | |
enum | ENUM_FORWARD_DECLARATION (E_CORE_RENDERER_DRAW_MODE) |
float | signf (float f) |
TColor4 | ColorClear () |
TColor4 | ColorWhite (uint8 alpha=255) |
TColor4 | ColorBlack (uint8 alpha=255) |
TColor4 | ColorRed (uint8 alpha=255) |
TColor4 | ColorGreen (uint8 alpha=255) |
TColor4 | ColorBlue (uint8 alpha=255) |
TColor4 | ColorAqua (uint8 alpha=255) |
TColor4 | ColorBrown (uint8 alpha=255) |
TColor4 | ColorCyan (uint8 alpha=255) |
TColor4 | ColorFuchsia (uint8 alpha=255) |
TColor4 | ColorGray (uint8 alpha=255) |
TColor4 | ColorGrey (uint8 alpha=255) |
TColor4 | ColorMagenta (uint8 alpha=255) |
TColor4 | ColorMaroon (uint8 alpha=255) |
TColor4 | ColorNavy (uint8 alpha=255) |
TColor4 | ColorOlive (uint8 alpha=255) |
TColor4 | ColorOrange (uint8 alpha=255) |
TColor4 | ColorPink (uint8 alpha=255) |
TColor4 | ColorPurple (uint8 alpha=255) |
TColor4 | ColorSilver (uint8 alpha=255) |
TColor4 | ColorTeal (uint8 alpha=255) |
TColor4 | ColorViolet (uint8 alpha=255) |
TColor4 | ColorYellow (uint8 alpha=255) |
TColor4 | ColorOfficialOrange (uint8 alpha=255) |
TColor4 | ColorOfficialBlack (uint8 alpha=255) |
TMatrix4x4 | MatrixIdentity () |
Returns identity matrix. | |
TMatrix4x4 | MatrixInverse (const TMatrix4x4 &stMatrix) |
Returns inverse matrix. | |
TMatrix4x4 | MatrixTranspose (const TMatrix4x4 &stMatrix) |
Returns transpose matrix. | |
TMatrix4x4 | MatrixScale (const TVector3 &stVec) |
Returns scaled matrix by a given vector. | |
TMatrix4x4 | MatrixTranslate (const TVector3 &stVec) |
Returns translated matrix by a given vector. | |
TMatrix4x4 | MatrixRotate (float fAngle, const TVector3 &stAxis) |
Returns rotated matrix by a given axis vector and angle. | |
TMatrix4x4 | MatrixBillboard (const TMatrix4x4 &stMatrix) |
Returns billboarded matrix. | |
Variables | |
const uint | TEXTURE_LOAD_DEFAULT_2D = (uint)(TLF_FILTERING_BILINEAR | TLF_COORDS_CLAMP) |
const uint | TEXTURE_LOAD_DEFAULT_3D = (uint)(TLF_FILTERING_TRILINEAR | TLF_GENERATE_MIPMAPS | TLF_COORDS_REPEAT) |
const uint | RES_LOAD_DEFAULT = 0x00000000 |
Engines main namespace.
typedef short int int16 |
typedef long int int32 |
typedef signed long long int64 |
typedef signed char int8 |
typedef TMatrix4x4 TMat4 |
typedef TMatrix4x4 TMatrix4 |
typedef TTransformStack<TMatrix4x4> TMatrix4x4Stack |
Stack of matrix 4x4 multiplication operations.
typedef unsigned int uint |
typedef unsigned short int uint16 |
typedef unsigned long int uint32 |
typedef unsigned long long uint64 |
typedef unsigned char uint8 |
typedef wchar_t wchar |
enum E_BATCH_MODE2D |
enum E_BLEND_FACTOR |
enum E_BLENDING_EFFECT |
enum E_COMPARISON_FUNC |
enum E_CORE_RENDERER_TYPE |
enum E_DGLE_VARIANT_TYPE |
enum E_EFFECT2D_FLAGS |
enum E_ENGINE_OBJECT_TYPE |
Types of engine objects.
EOT_UNKNOWN |
Undefined or custom object type. |
EOT_TEXTURE |
Texture represents any basic raster data.
|
EOT_MATERIAL |
Material is a combination of textures, colors and other settings of how 3D object will be rendered in scene.
|
EOT_LIGHT |
Light is source of lighting for 3D.
|
EOT_MESH |
Mesh is an atomic basic geometry unit.
|
EOT_MODEL |
Model is a composition of meshes with materials. Could contain animation and levels of detail.
|
EOT_BITMAP_FONT |
Bitmap font is a simple 2D raster font for common purpose.
|
EOT_SOUND_SAMPLE |
Sound sample is a container of sound wave which could be streamed to sound device.
|
EOT_MUSIC |
Music is some kind of large streamable sound sample with runtime hardware decoding.
|
EOT_EMPTY |
For empty or dummy objects.
|
Type of engine callbacks.
IEngineCore can register callbacks of these types.
EPT_UPDATE |
Procedure is called periodically(like on timer event). Interval of calling is set on engine initialization. In this procedure you should do any application computes.
|
EPT_RENDER |
Procedure is called when engine decides to draw new frame. In this procedure you can call any rendering routines. |
EPT_INIT |
Procedure is called before engine will start its main loop. In this procedure you should load all resources needed by your application. |
EPT_FREE |
Procedure is called before engine quits. In this procedure you should release all resources and free memory. |
enum E_ENGINE_SUB_SYSTEM |
Engine subsystems types.
ESS_RENDER |
Main rendering subsystem.
|
ESS_INPUT |
Input subsystem.
|
ESS_SOUND |
Sound subsystem.
|
ESS_RESOURCE_MANAGER |
Resource manager subsystem.
|
ESS_FILE_SYSTEM |
Main file system(manager of virtual file systems).
|
ESS_CORE_RENDERER |
Low-level base rendering interface.
|
Flags of TEngineWindow structure that determines the behavior of main engine window.
enum E_EVENT_TYPE |
Types of engine events.
ET_UNKNOWN |
Undefined or custom event type. |
ET_BEFORE_INITIALIZATION |
Event occurs just before engine will call its initialization routines.
|
ET_BEFORE_RENDER |
Event occurs before every frame. |
ET_AFTER_RENDER |
Event occurs after every frame. |
ET_ON_PROFILER_DRAW |
It is a special event on which you can render some text information on screen.
|
ET_ON_WINDOW_MESSAGE |
Event occurs every time when window receives message. Use this event to hook engine window messages.
|
ET_ON_GET_SUBSYSTEM |
Event occurs when someone calls IEngineCore::GetSubSystem method and you can substitute any subsystem by your own realization.
|
ET_ON_ENGINE_FATAL_MESSAGE |
Event occurs on engine fatal error.
|
ET_ON_CONSOLE_WRITE |
Event occurs when some text is being outputted to the engine console.
|
ET_ON_FULLSCREEN |
Event occurs when engine is switching to fullscreen mode or back to windowed from fullscreen.
|
ET_ON_PER_SECOND_TIMER |
Event occurs every second, just before engine recalculates its current per second metrics. |
enum E_FIND_FLAGS |
enum E_GET_ENGINE_FLAGS |
enum E_GET_POINT3_MODE |
enum E_KEYBOARD_KEY_CODES |
Describes all keyboard key codes.
enum E_LIGHT_TYPE |
enum E_LOG_TYPE |
Type of engine log message.
enum E_MATRIX_TYPE |
enum E_MESH_CREATE_FLAGS |
enum E_MULTISAMPLING_MODE |
Flags of TEngineWindow structure that determines antialiasing samples count.
enum E_POLYGON_CULL_MODE |
enum E_PRIMITIVE2D_FLAGS |
enum E_TEXTURE_LOAD_FLAGS |
enum E_TEXTURE_TYPE |
Flags of TWindowMessage structure that determines type of the message.
WMT_UNKNOWN |
This type will be returned if there is no proper conversion from platform specific window event to engine window message. Message parameters have platform specific usage.
|
WMT_REDRAW |
Message indicates that window must redraw itself. Message parameters are not used. |
WMT_PRESENT |
Message indicates that window is ready and now will be displayed to the user for the first time. Message parameters are not used. |
WMT_CLOSE |
Message indicates that window is ready to be destroyed and now will disappear from the screen. Message parameters are not used. |
WMT_CREATE |
Message indicates that window is being created. Message parameters are not used. |
WMT_DESTROY |
Message indicates that window is ready to be destroyed. Message parameters are not used. |
WMT_RELEASED |
Message indicates that window was destroyed and released successfully. Message parameters are not used. |
WMT_ACTIVATED |
Message indicates that window became a foreground window and get user input focus. If ui32Param1 value is TWindowHandle of the window which loses focus. |
WMT_DEACTIVATED |
Message indicates that window became a background window and lost user input focus. If ui32Param1 value is TWindowHandle of the window which gets focus. |
WMT_MINIMIZED |
Message indicates that window was minimized. Message parameter ui32Param1 stores width of the window and ui32Param2 stores height.
|
WMT_RESTORED |
Message indicates that window was restored to its normal state. Message parameter ui32Param1 stores width of the window and ui32Param2 stores height.
|
WMT_MOVE |
Message indicates that window is being moved. Message parameter ui32Param1 stores x coordinate of upper left window corner and ui32Param2 stores y coordinate.
|
WMT_SIZE |
Message indicates that window is being sized. Message parameter ui32Param1 stores width of the window and ui32Param2 stores height.
|
WMT_KEY_UP |
Message indicates that the user has released some keyboard key. Message parameter ui32Param1 is the engine code of the key being released.
|
WMT_KEY_DOWN |
Message indicates that the user has pressed some keyboard key. Message parameter ui32Param1 is the engine code of the key being pressed.
|
WMT_ENTER_CHAR |
Message indicates that the user has pressed some keyboard key. Message parameter ui32Param1 is the ASCII code of the key being pressed. |
WMT_MOUSE_LEAVE |
Message indicates that cursor is leaving window area. Message parameters are not used. |
WMT_MOUSE_MOVE |
Message indicates that cursor is being moved within the window. Message parameter ui32Param1 stores x coordinate of cursor and ui32Param1 stores y coordinate. |
WMT_MOUSE_DOWN |
Message indicates that the user has pressed mouse button. Message parameter ui32Param1 indicates what button was pressed: 0 - Left, 1 - Right, 2 - Middle |
WMT_MOUSE_UP |
Message indicates that the user has released mouse button. Message parameter ui32Param1 indicates what button was released: 0 - Left, 1 - Right, 2 - Middle |
WMT_MOUSE_WHEEL |
Message indicates that the user has rolled mouse wheel. Message parameter pParam3 points to integer (int) with mouse wheel delta value. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
enum ENUM_FORWARD_DECLARATION | ( | E_ENGINE_INIT_FLAGS | ) |
Engine initialization flags.
< Use default settings.
< All user callbacks will be executed in safe mode and engine will catch any unhandled errors. Engine will convert cached errors to engine fatal errors. Also ET_ON_ENGINE_FATAL_MESSAGE event will be generated.
< Sound subsystem will not be initialized.
< Engine will try to connect any found plugin files found in "plugins" folder near it.
< Engine will limit its FPS (frames per second) not to overload CPU and overheat GPU.
< Forces engine to use 16 bit color depth instead of 32 bit by default.
< By default engine uses fixed update mechanism, this means that engine will try to keep fixed update time interval, whenever it's possible. When this flag is set the update routine simply will be called once when delta time between updates is greater than update interval (for example, even if delta time is twice greater than update interval), so you should use delta time value.
< By default engine uses fixed update mechanism, this means that engine will try to keep fixed update time interval, whenever it's possible. When this flag is set the update routine simply will be called once before rendering of every frame, so you should use IEngineCore::GetElapsedTime and IEngineCore::GetTimer to manage application logic by yourself.
< Engine will be initialized without window. There will be no rendering, input and update routines. Useful for tools and utilities.
< This flag will disable engine splash screen. Splash screen is displayed to the user while engine prepare itself and while user initialization procedure is being processed.
< Use default settings.
< All user callbacks will be executed in safe mode and engine will catch any unhandled errors. Engine will convert cached errors to engine fatal errors. Also ET_ON_ENGINE_FATAL_MESSAGE event will be generated.
< Sound subsystem will not be initialized.
< Engine will try to connect any found plugin files found in "plugins" folder near it.
< Engine will limit its FPS (frames per second) not to overload CPU and overheat GPU.
< Forces engine to use 16 bit color depth instead of 32 bit by default.
< By default engine uses fixed update mechanism, this means that engine will try to keep fixed update time interval, whenever it's possible. When this flag is set the update routine simply will be called once when delta time between updates is greater than update interval (for example, even if delta time is twice greater than update interval), so you should use delta time value.
< By default engine uses fixed update mechanism, this means that engine will try to keep fixed update time interval, whenever it's possible. When this flag is set the update routine simply will be called once before rendering of every frame, so you should use IEngineCore::GetElapsedTime and IEngineCore::GetTimer to manage application logic by yourself.
< Engine will be initialized without window. There will be no rendering, input and update routines. Useful for tools and utilities.
< This flag will disable engine splash screen. Splash screen is displayed to the user while engine prepare itself and while user initialization procedure is being processed.
enum ENUM_FORWARD_DECLARATION | ( | E_CORE_RENDERER_DRAW_MODE | ) |
|
inline |
Returns billboarded matrix.
Removes rotation information from the matrix.
|
inline |
Returns identity matrix.
|
inline |
Returns inverse matrix.
|
inline |
Returns rotated matrix by a given axis vector and angle.
|
inline |
Returns scaled matrix by a given vector.
|
inline |
Returns translated matrix by a given vector.
|
inline |
Returns transpose matrix.
|
inline |
const uint RES_LOAD_DEFAULT = 0x00000000 |
const uint TEXTURE_LOAD_DEFAULT_2D = (uint)(TLF_FILTERING_BILINEAR | TLF_COORDS_CLAMP) |
const uint TEXTURE_LOAD_DEFAULT_3D = (uint)(TLF_FILTERING_TRILINEAR | TLF_GENERATE_MIPMAPS | TLF_COORDS_REPEAT) |