#include <render_context.h>
Base abstract render context class.
Definition at line 54 of file render_context.h.
◆ render_context()
scl::render_context::render_context |
( |
| ) |
|
|
inline |
Render context methods.
Default render context constructor.
Definition at line 100 of file render_context.h.
◆ ~render_context()
virtual scl::render_context::~render_context |
( |
| ) |
|
|
inlinevirtual |
◆ Close()
virtual void scl::render_context::Close |
( |
| ) |
|
|
pure virtual |
- Render context deinitialisation function.
- Parameters
-
- Returns
- None.
Implemented in scl::gl.
◆ Create()
- Rendering context creation function.
- Parameters
-
- Returns
- pointer to created rendering context.
Definition at line 59 of file render_context.cpp.
60{
61 switch (Api)
62 {
65 }
66
68 return nullptr;
69}
#define SCL_CORE_ASSERT(expr,...)
#define SCL_CORE_ERROR(...)
◆ DrawIndices()
- Parameters
-
Mesh | - mesh, containing vertices and vertex indices to draw. |
- Returns
- None.
Implemented in scl::gl.
◆ DrawIndicesInstanced()
virtual void scl::render_context::DrawIndicesInstanced |
( |
const shared< vertex_array > & |
Mesh, |
|
|
int |
InstanceCount |
|
) |
| |
|
pure virtual |
- Draw vertices instanced function.
- Parameters
-
Mesh | - mesh, containing vertices and vertex indices to draw. |
- Returns
- None.
Implemented in scl::gl.
◆ GetApi()
Render system backend api.
Render context data getter/setter functions.
Rendering context backend API getter function.
Definition at line 61 of file render_context.h.
◆ GetClearColor()
virtual const vec4 & scl::render_context::GetClearColor |
( |
| ) |
const |
|
pure virtual |
Frame clear color setter function.
Implemented in scl::gl.
◆ GetCullingMode()
Render culling mode setter function.
Implemented in scl::gl.
◆ GetGaussianBlurPassShader()
Backend API specific gaussian blur pass shader getter function.
Implemented in scl::gl.
◆ GetPhongGeometryShader()
Backend API specific phong lighint model shader for geometry pass getter function.
Implemented in scl::gl.
◆ GetPhongLightingShader()
Backend API specific phong lighint model shader for lighting pass getter function.
Implemented in scl::gl.
◆ GetShaderVariableComponentsCount()
- Get components count of specified shader variable type fucntion.
- Parameters
-
Type | - shader variable type to get components count of. |
- Returns
- components count of specified type.
Definition at line 36 of file render_context.cpp.
37{
38 switch (Type)
39 {
51 }
52
55}
◆ GetShaderVariableTypeSize()
- Get size of specified shader variable type fucntion.
- Parameters
-
Type | - shader variable type to get size of. |
- Returns
- size of specified type.
Definition at line 15 of file render_context.cpp.
16{
17 switch (Type)
18 {
30 }
31
34}
◆ GetShadowPassShader()
Backend API specific shadow pass shader getter function.
Implemented in scl::gl.
◆ GetSingleColorMaterialShader()
Sculpto library built-in backend API specific rendering objects getter function.
Backend API specific single color material shader getter function.
Implemented in scl::gl.
◆ GetTextureAddPassShader()
Backend API specific gaussian blur pass shader getter function.
Implemented in scl::gl.
◆ GetToneMappingPassShader()
Backend API specific tone mapping pass shader getter function.
Implemented in scl::gl.
◆ GetVSync()
virtual bool scl::render_context::GetVSync |
( |
| ) |
const |
|
pure virtual |
Render virtual syncronisation flag getter function.
Implemented in scl::gl.
◆ GetWireframeMode()
virtual bool scl::render_context::GetWireframeMode |
( |
| ) |
const |
|
pure virtual |
Render wire frame mode setter function.
Implemented in scl::gl.
◆ Init()
virtual void scl::render_context::Init |
( |
| ) |
|
|
pure virtual |
- Render context initialisation function.
- Parameters
-
- Returns
- None.
Implemented in scl::gl.
◆ SetClearColor()
virtual void scl::render_context::SetClearColor |
( |
const vec4 & |
ClearColor | ) |
|
|
pure virtual |
Frame clear color setter function.
Implemented in scl::gl.
◆ SetCullingMode()
Render culling mode setter function.
Implemented in scl::gl.
◆ SetVSync()
virtual void scl::render_context::SetVSync |
( |
bool |
VSync | ) |
|
|
pure virtual |
Render virtual syncronisation flag setter function.
Implemented in scl::gl.
◆ SetWireframeMode()
virtual void scl::render_context::SetWireframeMode |
( |
bool |
IsWireframe | ) |
|
|
pure virtual |
Render wire frame mode setter function.
Implemented in scl::gl.
◆ SwapBuffers()
virtual void scl::render_context::SwapBuffers |
( |
| ) |
|
|
pure virtual |
- Swap frame buffers function.
- Parameters
-
- Returns
- None.
Implemented in scl::gl.
◆ BINDING_POINT_FREE
const int scl::render_context::BINDING_POINT_FREE = 20 |
|
static |
◆ BINDING_POINT_LIGHTS_STORAGE
const int scl::render_context::BINDING_POINT_LIGHTS_STORAGE = 10 |
|
static |
◆ BINDING_POINT_MATERIAL_DATA
const int scl::render_context::BINDING_POINT_MATERIAL_DATA = 5 |
|
static |
◆ BINDING_POINT_SCENE_DATA
const int scl::render_context::BINDING_POINT_SCENE_DATA = 0 |
|
static |
◆ BINDING_POINT_SHADOW_CASTERS_STORAGE
const int scl::render_context::BINDING_POINT_SHADOW_CASTERS_STORAGE = 11 |
|
static |
◆ COLOR_ATTACHMENT_GEOM_PASS_OUT_COLOR
const int scl::render_context::COLOR_ATTACHMENT_GEOM_PASS_OUT_COLOR = 2 |
|
static |
◆ COLOR_ATTACHMENT_GEOM_PASS_OUT_NORMAL
const int scl::render_context::COLOR_ATTACHMENT_GEOM_PASS_OUT_NORMAL = 1 |
|
static |
◆ COLOR_ATTACHMENT_GEOM_PASS_OUT_PHONG_DIFFUSE
const int scl::render_context::COLOR_ATTACHMENT_GEOM_PASS_OUT_PHONG_DIFFUSE = 3 |
|
static |
◆ COLOR_ATTACHMENT_GEOM_PASS_OUT_PHONG_SHININESS
const int scl::render_context::COLOR_ATTACHMENT_GEOM_PASS_OUT_PHONG_SHININESS = 5 |
|
static |
◆ COLOR_ATTACHMENT_GEOM_PASS_OUT_PHONG_SPECULAR
const int scl::render_context::COLOR_ATTACHMENT_GEOM_PASS_OUT_PHONG_SPECULAR = 4 |
|
static |
◆ COLOR_ATTACHMENT_GEOM_PASS_OUT_POSITION
const int scl::render_context::COLOR_ATTACHMENT_GEOM_PASS_OUT_POSITION = 0 |
|
static |
◆ COLOR_ATTACHMENT_LIGHTING_PASS_OUT_BRIGHT_COLOR
const int scl::render_context::COLOR_ATTACHMENT_LIGHTING_PASS_OUT_BRIGHT_COLOR = 1 |
|
static |
◆ COLOR_ATTACHMENT_LIGHTING_PASS_OUT_COLOR
const int scl::render_context::COLOR_ATTACHMENT_LIGHTING_PASS_OUT_COLOR = 0 |
|
static |
◆ LIGHTS_MAX_POINT
const int scl::render_context::LIGHTS_MAX_POINT = 50 |
|
static |
◆ LIGHTS_MAX_SPOT
const int scl::render_context::LIGHTS_MAX_SPOT = 50 |
|
static |
◆ MESH_RESTART_INDEX
const int scl::render_context::MESH_RESTART_INDEX = -1 |
|
static |
◆ TEXTURE_SLOT_APPLY_SOURCE
const int scl::render_context::TEXTURE_SLOT_APPLY_SOURCE = 9 |
|
static |
◆ TEXTURE_SLOT_APPLY_TEXTURE_ADD
const int scl::render_context::TEXTURE_SLOT_APPLY_TEXTURE_ADD = 10 |
|
static |
◆ TEXTURE_SLOT_BLUR_BUFFER
const int scl::render_context::TEXTURE_SLOT_BLUR_BUFFER = 7 |
|
static |
◆ TEXTURE_SLOT_GEOM_PASS_OUT_COLOR
const int scl::render_context::TEXTURE_SLOT_GEOM_PASS_OUT_COLOR = 13 |
|
static |
◆ TEXTURE_SLOT_GEOM_PASS_OUT_NORMAL
const int scl::render_context::TEXTURE_SLOT_GEOM_PASS_OUT_NORMAL = 12 |
|
static |
◆ TEXTURE_SLOT_GEOM_PASS_OUT_PHONG_DIFFUSE
const int scl::render_context::TEXTURE_SLOT_GEOM_PASS_OUT_PHONG_DIFFUSE = 14 |
|
static |
◆ TEXTURE_SLOT_GEOM_PASS_OUT_PHONG_SHININESS
const int scl::render_context::TEXTURE_SLOT_GEOM_PASS_OUT_PHONG_SHININESS = 16 |
|
static |
◆ TEXTURE_SLOT_GEOM_PASS_OUT_PHONG_SPECULAR
const int scl::render_context::TEXTURE_SLOT_GEOM_PASS_OUT_PHONG_SPECULAR = 15 |
|
static |
◆ TEXTURE_SLOT_GEOM_PASS_OUT_POSITION
const int scl::render_context::TEXTURE_SLOT_GEOM_PASS_OUT_POSITION = 11 |
|
static |
◆ TEXTURE_SLOT_HDR_BUFFER
const int scl::render_context::TEXTURE_SLOT_HDR_BUFFER = 6 |
|
static |
◆ TEXTURE_SLOT_LIGHTING_PASS_OUT_BRIGHT_COLOR
const int scl::render_context::TEXTURE_SLOT_LIGHTING_PASS_OUT_BRIGHT_COLOR = 18 |
|
static |
◆ TEXTURE_SLOT_LIGHTING_PASS_OUT_COLOR
const int scl::render_context::TEXTURE_SLOT_LIGHTING_PASS_OUT_COLOR = 17 |
|
static |
◆ TEXTURE_SLOT_MATERIAL_DIFFUSE
const int scl::render_context::TEXTURE_SLOT_MATERIAL_DIFFUSE = 0 |
|
static |
◆ TEXTURE_SLOT_MATERIAL_EMISSION_MAP
const int scl::render_context::TEXTURE_SLOT_MATERIAL_EMISSION_MAP = 2 |
|
static |
◆ TEXTURE_SLOT_MATERIAL_NORMAL_MAP
const int scl::render_context::TEXTURE_SLOT_MATERIAL_NORMAL_MAP = 3 |
|
static |
◆ TEXTURE_SLOT_MATERIAL_SPECULAR
const int scl::render_context::TEXTURE_SLOT_MATERIAL_SPECULAR = 1 |
|
static |
◆ TEXTURE_SLOT_SHADOW_MAP
const int scl::render_context::TEXTURE_SLOT_SHADOW_MAP = 5 |
|
static |
The documentation for this class was generated from the following files: