Elaztek Developer Hub
Blamite Game Engine - blam!  00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
BlamRendering Namespace Reference

Namespace for things relating to rendering. More...

Namespaces

 BGFX
 Namespace containing functions exclusive to bgfx.
 
 DirectX
 Namespace containing functions exclusive to DirectX.
 
 OGRE
 Namespace containing functions exclusive to OGRE-Next.
 
 RenderStack
 Namespace containing things relating to the Render Stack.
 

Functions

BLAM BlamRenderingEngine GetCurrentRenderingEngine ()
 Retrieves the current rendering engine being used. More...
 
BLAM void SetClearColor (ImVec4 color)
 Changes the color to used to clear the render target. More...
 
BLAM ImVec4GetClearColor ()
 Retrieves the color used for render target clearing. More...
 
BLAM void ShowCrashScreen (const char *exc, const char *file, int line, std::string message)
 Displays the engine crash screen. More...
 
BLAM HRESULT SetDisplayRes (int x, int y)
 Changes the game's display resolution. More...
 
BLAM void HandleWindowResize (int width, int height, WPARAM wParam)
 

Detailed Description

Namespace for things relating to rendering.

Function Documentation

◆ GetClearColor()

ImVec4 * BlamRendering::GetClearColor ( )

Retrieves the color used for render target clearing.

Returns
A pointer to the render target clear color.
+ Here is the call graph for this function:

◆ GetCurrentRenderingEngine()

BlamRenderingEngine BlamRendering::GetCurrentRenderingEngine ( )

Retrieves the current rendering engine being used.

Returns
The current rendering engine being used.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleWindowResize()

void BlamRendering::HandleWindowResize ( int  width,
int  height,
WPARAM  wParam 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetClearColor()

void BlamRendering::SetClearColor ( ImVec4  color)

Changes the color to used to clear the render target.

Parameters
color- The new color to use for render target clearing.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetDisplayRes()

HRESULT BlamRendering::SetDisplayRes ( int  x,
int  y 
)

Changes the game's display resolution.

Parameters
x- The new width to render the game at.
y- The new height to render the game at.
Returns
S_OK if the resolution was updated, otherwise will contain an error code.
Todo:
Refractor to have a fully expanded name (SetDisplayResolution instead of SetDisplayRes)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ShowCrashScreen()

void BlamRendering::ShowCrashScreen ( const char *  exc,
const char *  file,
int  line,
std::string  message 
)

Displays the engine crash screen.

Parameters
exc- The expression that caused the assertion failure.
file- The file that caused the assertion failure.
line- The line number in the file that caused the failure.
message- Additional details regarding the crash.
+ Here is the call graph for this function: