Blamite Game Engine - blam!  00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
BlamRendering Namespace Reference

Namespace for things relating to rendering. More...

Namespaces

 BGFX
 
 DirectX
 Namespace containing functions exclusive to DirectX.
 
 Models
 
 OpenGL
 Namespace containing functions exclusive to OpenGL.
 
 RenderStack
 Namespace containing things relating to the Render Stack.
 
 Vulkan
 Namespace containing functions exclusive to Vulkan.
 

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 ImVec4 * GetClearColor ()
 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.

◆ GetCurrentRenderingEngine()

BlamRenderingEngine BlamRendering::GetCurrentRenderingEngine ( )

Retrieves the current rendering engine being used.

Returns
The current rendering engine being used.

◆ HandleWindowResize()

void BlamRendering::HandleWindowResize ( int  width,
int  height,
WPARAM  wParam 
)

◆ 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.

◆ 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.

◆ 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.