sculpto
Static Public Member Functions | List of all members
scl::render_bridge Class Reference

#include <render_bridge.h>

Static Public Member Functions

static const vec4GetClearColor ()
 
static bool GetWireframeMode ()
 
static render_cull_face_mode GetCullingMode ()
 
static bool GetVSync ()
 
static void SetClearColor (const vec4 &ClearColor)
 
static void SetWireframeMode (bool IsWireframe)
 
static void SetCullingMode (render_cull_face_mode CullingMode)
 
static void SetVSync (bool VSync)
 
static void InitContext ()
 
static void CloseContext ()
 
static void SwapBuffers ()
 
static void DrawIndices (const shared< vertex_array > &VertexArray)
 
static void DrawIndicesInstanced (const shared< vertex_array > &VertexArray, int InstanceCount)
 
static shared< shader_programGetSingleColorMaterialShader ()
 
static shared< shader_programGetPhongGeometryShader ()
 
static shared< shader_programGetPhongLightingShader ()
 
static shared< shader_programGetShadowPassShader ()
 
static shared< shader_programGetToneMappingPassShader ()
 
static shared< shader_programGetGaussianBlurPassShader ()
 
static shared< shader_programGetTextureAddPassShader ()
 

Detailed Description

Render bridge class.

Definition at line 22 of file render_bridge.h.

Member Function Documentation

◆ CloseContext()

static void scl::render_bridge::CloseContext ( )
inlinestatic
  • Render context deinitialisation call function.
Parameters
None.
Returns
None.

Definition at line 61 of file render_bridge.h.

61{ RenderContext->Close(); }

◆ DrawIndices()

static void scl::render_bridge::DrawIndices ( const shared< vertex_array > &  VertexArray)
inlinestatic
  • Draw vertex array (vertex buffer and index buffer) to curent render target.
Parameters
VertexArray- vertex array to draw verticces from.
Returns
None.

Definition at line 80 of file render_bridge.h.

81 {
82 RenderContext->DrawIndices(VertexArray);
83 }

◆ DrawIndicesInstanced()

static void scl::render_bridge::DrawIndicesInstanced ( const shared< vertex_array > &  VertexArray,
int  InstanceCount 
)
inlinestatic
  • Instanced draw vertex array (vertex buffer and index buffer) to curent render target.
Parameters
VertexArray- vertex array to draw verticces from. \parma InstanceCount - instances of drawing vertex array count.
Returns
None.

Definition at line 92 of file render_bridge.h.

93 {
94 RenderContext->DrawIndicesInstanced(VertexArray, InstanceCount);
95 }

◆ GetClearColor()

static const vec4 & scl::render_bridge::GetClearColor ( )
inlinestatic

Render bridge data getter/setter functions.

Frame clear color setter function.

Definition at line 29 of file render_bridge.h.

29{ return RenderContext->GetClearColor(); }

◆ GetCullingMode()

static render_cull_face_mode scl::render_bridge::GetCullingMode ( )
inlinestatic

Render culling mode setter function.

Definition at line 33 of file render_bridge.h.

33{ return RenderContext->GetCullingMode(); }

◆ GetGaussianBlurPassShader()

static shared< shader_program > scl::render_bridge::GetGaussianBlurPassShader ( )
inlinestatic

Backend API specific full viewport mesh with tone mapping shader.

Definition at line 129 of file render_bridge.h.

130 {
131 return RenderContext->GetGaussianBlurPassShader();
132 }

◆ GetPhongGeometryShader()

static shared< shader_program > scl::render_bridge::GetPhongGeometryShader ( )
inlinestatic

Backend API specific phong lighint model shader for geometry pass getter function.

Definition at line 105 of file render_bridge.h.

106 {
107 return RenderContext->GetPhongGeometryShader();
108 }

◆ GetPhongLightingShader()

static shared< shader_program > scl::render_bridge::GetPhongLightingShader ( )
inlinestatic

Backend API specific phong lighint model shader for lighting pass getter function.

Definition at line 111 of file render_bridge.h.

112 {
113 return RenderContext->GetPhongLightingShader();
114 }

◆ GetShadowPassShader()

static shared< shader_program > scl::render_bridge::GetShadowPassShader ( )
inlinestatic

Backend API specific shadow pass shader getter function.

Definition at line 117 of file render_bridge.h.

118 {
119 return RenderContext->GetShadowPassShader();
120 }

◆ GetSingleColorMaterialShader()

static shared< shader_program > scl::render_bridge::GetSingleColorMaterialShader ( )
inlinestatic

Sculpto library built-in backend API specific rendering objects getter function.

Backend API specific single color material shader getter function.

Definition at line 99 of file render_bridge.h.

100 {
101 return RenderContext->GetSingleColorMaterialShader();
102 }

◆ GetTextureAddPassShader()

static shared< shader_program > scl::render_bridge::GetTextureAddPassShader ( )
inlinestatic

Backend API specific gaussian blur pass shader getter function.

Definition at line 135 of file render_bridge.h.

136 {
137 return RenderContext->GetTextureAddPassShader();
138 }

◆ GetToneMappingPassShader()

static shared< shader_program > scl::render_bridge::GetToneMappingPassShader ( )
inlinestatic

Backend API specific full viewport mesh with tone mapping shader.

Definition at line 123 of file render_bridge.h.

124 {
125 return RenderContext->GetToneMappingPassShader();
126 }

◆ GetVSync()

static bool scl::render_bridge::GetVSync ( )
inlinestatic

Render virtual syncronisation flag getter function.

Definition at line 35 of file render_bridge.h.

35{ return RenderContext->GetVSync(); }

◆ GetWireframeMode()

static bool scl::render_bridge::GetWireframeMode ( )
inlinestatic

Render wire frame mode setter function.

Definition at line 31 of file render_bridge.h.

31{ return RenderContext->GetWireframeMode(); }

◆ InitContext()

static void scl::render_bridge::InitContext ( )
inlinestatic

Render bridge methods.

  • Render context initialisation call function.
Parameters
None.
Returns
None.

Definition at line 53 of file render_bridge.h.

53{ RenderContext->Init(); }

◆ SetClearColor()

static void scl::render_bridge::SetClearColor ( const vec4 ClearColor)
inlinestatic

Frame clear color setter function.

Definition at line 38 of file render_bridge.h.

38{ RenderContext->SetClearColor(ClearColor); }

◆ SetCullingMode()

static void scl::render_bridge::SetCullingMode ( render_cull_face_mode  CullingMode)
inlinestatic

Render culling mode setter function.

Definition at line 42 of file render_bridge.h.

42{ RenderContext->SetCullingMode(CullingMode); }

◆ SetVSync()

static void scl::render_bridge::SetVSync ( bool  VSync)
inlinestatic

Render virtual syncronisation flag setter function.

Definition at line 44 of file render_bridge.h.

44{ RenderContext->SetVSync(VSync); }

◆ SetWireframeMode()

static void scl::render_bridge::SetWireframeMode ( bool  IsWireframe)
inlinestatic

Render wire frame mode setter function.

Definition at line 40 of file render_bridge.h.

40{ RenderContext->SetWireframeMode(IsWireframe); }

◆ SwapBuffers()

static void scl::render_bridge::SwapBuffers ( )
inlinestatic
  • Swap render targets function.
Parameters
None.
Returns
None.

Definition at line 69 of file render_bridge.h.

70 {
71 RenderContext->SwapBuffers();
72 }

The documentation for this class was generated from the following files: