Elaztek Developer Hub
Blamite Game Engine - blam!  00453.06.08.26.0624.blamite
The core library for the Blamite Game Engine.
Blam::RenderingBGFX Namespace Reference

Namespaces

 Culling
 
 Lighting
 
 Materials
 
 Models
 
 Passes
 
 Shaders
 
 Stats
 
 Textures
 Namespace containing functions for interacting with textures.
 
 TextureStorage
 

Functions

BLAM bool Initialize ()
 
BLAM void RenderLoop ()
 
BLAM void Shutdown ()
 
BLAM void HandleWindowReisze (int width, int height)
 
BLAM void SetViewClearFlags (uint16_t flags)
 
BLAM void SetResetFlags (uint32_t flags)
 
BLAM void TakeScreenshot ()
 
BLAM int GetRenderWidth ()
 Retrieves the current width of the viewport. More...
 
BLAM int GetRenderHeight ()
 Retrieves the current height of the viewport. More...
 
BLAM uint64_t GetDefault2DStateFlags ()
 
BLAM void SetDefault2DStateFlags (uint64_t flags)
 
BLAM float * GetCameraViewMatrix ()
 
BLAM float * GetCameraProjectionMatrix ()
 
BLAM BlamVector2 GetScreenPointFrom3DPoint (BlamVector3 position)
 
BLAM void PrepareScreenQuad ()
 
BLAM BlamVector3 GetMousePosition3D ()
 
BLAM BlamVector3 GetGizmoMousePosition3D ()
 
BLAM BlamOrientedBoundingBox CreateOBBFromAABB (BlamVector3 position, BlamVector3 rotation, BlamVector3 scale, BlamVector3 local_aabb_min, BlamVector3 local_aabb_max)
 
BLAM BlamRay CreateRayFromViewportPoint (int screen_x, int screen_y)
 Constructs a world-space ray from a screen-space cursor position. More...
 
bool IsViewportMode2D ()
 

Function Documentation

◆ CreateOBBFromAABB()

BlamOrientedBoundingBox Blam::RenderingBGFX::CreateOBBFromAABB ( BlamVector3  position,
BlamVector3  rotation,
BlamVector3  scale,
BlamVector3  local_aabb_min,
BlamVector3  local_aabb_max 
)
Author
Claude (Sonnet 4.6)
+ Here is the caller graph for this function:

◆ CreateRayFromViewportPoint()

BlamRay Blam::RenderingBGFX::CreateRayFromViewportPoint ( int  screen_x,
int  screen_y 
)

Constructs a world-space ray from a screen-space cursor position.

Unprojects two points (at the near and far clip planes) from screen space through the inverse of the combined view-projection matrix to produce a ray origin and normalized direction in world space.

The near clip Z value is chosen based on bgfx's reported depth range: 0.0 for D3D/Vulkan (depth in [0,1]) and -1.0 for OpenGL (depth in [-1,1]).

Parameters
screen_xScreen X position in pixels.
screen_yScreen Y position in pixels.
Returns
A BlamRay with world-space origin and normalized direction.
Author
Claude (claude-sonnet-4-6)*
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetCameraProjectionMatrix()

float * Blam::RenderingBGFX::GetCameraProjectionMatrix ( )
+ Here is the caller graph for this function:

◆ GetCameraViewMatrix()

float * Blam::RenderingBGFX::GetCameraViewMatrix ( )
+ Here is the caller graph for this function:

◆ GetDefault2DStateFlags()

uint64_t Blam::RenderingBGFX::GetDefault2DStateFlags ( )
+ Here is the caller graph for this function:

◆ GetGizmoMousePosition3D()

BlamVector3 Blam::RenderingBGFX::GetGizmoMousePosition3D ( )
+ Here is the caller graph for this function:

◆ GetMousePosition3D()

BlamVector3 Blam::RenderingBGFX::GetMousePosition3D ( )
+ Here is the caller graph for this function:

◆ GetRenderHeight()

int Blam::RenderingBGFX::GetRenderHeight ( )

Retrieves the current height of the viewport.

Returns
The height of the viewport, in pixels.
+ Here is the caller graph for this function:

◆ GetRenderWidth()

int Blam::RenderingBGFX::GetRenderWidth ( )

Retrieves the current width of the viewport.

Returns
The width of the viewport, in pixels.
+ Here is the caller graph for this function:

◆ GetScreenPointFrom3DPoint()

BlamVector2 Blam::RenderingBGFX::GetScreenPointFrom3DPoint ( BlamVector3  position)
+ Here is the caller graph for this function:

◆ HandleWindowReisze()

void Blam::RenderingBGFX::HandleWindowReisze ( int  width,
int  height 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Initialize()

bool Blam::RenderingBGFX::Initialize ( )
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsViewportMode2D()

bool Blam::RenderingBGFX::IsViewportMode2D ( )

◆ PrepareScreenQuad()

void Blam::RenderingBGFX::PrepareScreenQuad ( )
+ Here is the caller graph for this function:

◆ RenderLoop()

void Blam::RenderingBGFX::RenderLoop ( )
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetDefault2DStateFlags()

void Blam::RenderingBGFX::SetDefault2DStateFlags ( uint64_t  flags)
+ Here is the caller graph for this function:

◆ SetResetFlags()

void Blam::RenderingBGFX::SetResetFlags ( uint32_t  flags)
+ Here is the caller graph for this function:

◆ SetViewClearFlags()

void Blam::RenderingBGFX::SetViewClearFlags ( uint16_t  flags)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Shutdown()

void Blam::RenderingBGFX::Shutdown ( )
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ TakeScreenshot()

void Blam::RenderingBGFX::TakeScreenshot ( )
+ Here is the caller graph for this function: