sculpto
|
#include <Renderer.h>
Static Public Member Functions | |
static void | DrawGeometry (const shared< mesh > &Mesh, const matr4 &Transform) |
static void | DrawDepth (const shared< mesh > &Mesh, const matr4 &Transform) |
static void | DrawFullscreenQuad () |
static void | Initialize () |
static void | StartPipeline (const camera &Camera, const vec3 &EnviromentAmbiente) |
static void | EndPipeline () |
static void | SubmitPointLight (const vec3 &Position, const vec3 &Color, float Constant, float Linear, float Quadratic) |
static void | SubmitDirectionalLight (const vec3 &Direction, const vec3 &Color, bool IsShadows=false, const matr4 &ViewProjection={}, const shared< frame_buffer > &ShadowMap=nullptr) |
static void | SubmitSpotLight (const vec3 &Position, const vec3 &Direction, const vec3 &Color, float InnerCutoffCos, float OuterCutoffCos, float Epsilon) |
static void | Submit (const shared< mesh > &Mesh, const vec3 &Scale, const vec3 &Angles, const vec3 &Position) |
static void | Submit (const shared< mesh > &Mesh, const matr4 &Transform) |
Renderer class.
Definition at line 21 of file Renderer.h.
Mesh | - mesh to draw. |
Transform | - mesh transformation matrix. |
Definition at line 27 of file Renderer.cpp.
|
static |
None. |
Definition at line 57 of file Renderer.cpp.
Helper functions.
Mesh | - mesh to draw. |
Transform | - mesh tranformations matrix. |
Definition at line 42 of file Renderer.cpp.
|
static |
Destination | - destination frame buffer to draw in. |
Definition at line 198 of file Renderer.cpp.
|
static |
Renderer API functions.
None. |
Definition at line 169 of file Renderer.cpp.
Camera | - camera to render in. |
EnviromantAmbient | - rendering scene enviroment ambient color. |
Definition at line 174 of file Renderer.cpp.
Mesh | - mesh to submit to queue. |
Transform | - mesh tranformations matrix. |
Definition at line 262 of file Renderer.cpp.
|
static |
Mesh | - mesh to submit to queue. |
Scale | - mesh scale factor along 3 axies. |
Angles | - mesh rotation angles factor along 3 axies. |
Position | - mesh world position. |
Definition at line 251 of file Renderer.cpp.
|
static |
Direction | - light direction. |
Color | - light color. |
IsShadows | - is directional light casts shadows flag. |
ViewProjection | - shadow caster view projection matrix. |
ShadowMap | - shadow caster shadow map frame buffer. |
Definition at line 222 of file Renderer.cpp.
|
static |
Position | - light possition. |
Color | - light color. |
Constant | - light attenutation constant coefficient. |
Linear | - light attenuation liear coefficient. |
Quadratic | - light attenuation quadratic coefficient. |
Definition at line 210 of file Renderer.cpp.
|
static |
Position | - light possition. |
Direction | - light direction |
Color | - light color. |
InnerCutoffCos | - cosine of inner spot light cone angle. |
OuterCutoffCos | - cosine of outer spot light cone angle. |
Epsilon | - (OuterCutoffCos - InnerCutoffCos), for optimization. |
Definition at line 238 of file Renderer.cpp.