sculpto
|
#include <gl.h>
Public Member Functions | |
const vec4 & | GetClearColor () const override |
bool | GetWireframeMode () const override |
render_cull_face_mode | GetCullingMode () const override |
bool | GetVSync () const override |
void | SetClearColor (const vec4 &ClearColor) override |
void | SetWireframeMode (bool IsWireframe) override |
void | SetCullingMode (render_cull_face_mode CullingMode) override |
void | SetVSync (bool VSync) |
void | CreateContext (const HWND &hAppWnd, int W, int H, bool VSync) |
void | Init () override |
void | Close () override |
void | SwapBuffers () override |
void | DrawIndices (const shared< vertex_array > &VertexArray) override |
void | DrawIndicesInstanced (const shared< vertex_array > &VertexArray, int InstanceCount) override |
shared< shader_program > | GetSingleColorMaterialShader () const override |
shared< shader_program > | GetPhongGeometryShader () const override |
shared< shader_program > | GetPhongLightingShader () const override |
shared< shader_program > | GetShadowPassShader () const override |
shared< shader_program > | GetToneMappingPassShader () const override |
shared< shader_program > | GetGaussianBlurPassShader () const override |
shared< shader_program > | GetTextureAddPassShader () const override |
Public Member Functions inherited from scl::render_context | |
virtual const vec4 & | GetClearColor () const =0 |
virtual bool | GetWireframeMode () const =0 |
virtual render_cull_face_mode | GetCullingMode () const =0 |
virtual bool | GetVSync () const =0 |
virtual void | SetClearColor (const vec4 &ClearColor)=0 |
virtual void | SetWireframeMode (bool IsWireframe)=0 |
virtual void | SetCullingMode (render_cull_face_mode CullingMode)=0 |
virtual void | SetVSync (bool VSync)=0 |
render_context () | |
virtual | ~render_context () |
virtual void | Init ()=0 |
virtual void | Close ()=0 |
virtual void | SwapBuffers ()=0 |
virtual void | DrawIndices (const shared< vertex_array > &Mesh)=0 |
virtual void | DrawIndicesInstanced (const shared< vertex_array > &Mesh, int InstanceCount)=0 |
virtual shared< shader_program > | GetSingleColorMaterialShader () const =0 |
virtual shared< shader_program > | GetPhongGeometryShader () const =0 |
virtual shared< shader_program > | GetPhongLightingShader () const =0 |
virtual shared< shader_program > | GetShadowPassShader () const =0 |
virtual shared< shader_program > | GetToneMappingPassShader () const =0 |
virtual shared< shader_program > | GetGaussianBlurPassShader () const =0 |
virtual shared< shader_program > | GetTextureAddPassShader () const =0 |
Static Public Member Functions | |
static GLenum | GetGLPrimitiveType (mesh_type MeshType) |
static GLenum | GetGLShaderVariableType (shader_variable_type Type) |
Static Public Member Functions inherited from scl::render_context | |
static render_context_api | GetApi () |
static u32 | GetShaderVariableTypeSize (shader_variable_type Type) |
static u32 | GetShaderVariableComponentsCount (shader_variable_type Type) |
static unique< render_context > | Create () |
|
overridevirtual |
None. |
Implements scl::render_context.
Definition at line 219 of file gl.cpp.
void scl::gl::CreateContext | ( | const HWND & | hAppWnd, |
int | W, | ||
int | H, | ||
bool | VSync | ||
) |
OpenGL context methods.
hAppWnd | - window handle. |
W,H | - window size. |
VSync | - vertical syncronisation enable flag. |
!SCL_PLATFORM_WINDOWS
Definition at line 178 of file gl.cpp.
|
overridevirtual |
VertexArray | - mesh, containing vertices and vertex indices to draw. |
Implements scl::render_context.
Definition at line 234 of file gl.cpp.
|
overridevirtual |
VertexArray | - mesh, containing vertices and vertex indices to draw. |
Implements scl::render_context.
Definition at line 246 of file gl.cpp.
|
overridevirtual |
!SCL_PLATFORM_WINDOWS
OpenGL data getter/setter functions.
Frame clear color setter function.
!SCL_PLATFORM_WINDOWS
Implements scl::render_context.
Definition at line 82 of file gl.cpp.
|
overridevirtual |
Render culling mode setter function.
Implements scl::render_context.
Definition at line 92 of file gl.cpp.
|
overridevirtual |
OpenGL specific gaussian blur pass shader getter function.
Implements scl::render_context.
Definition at line 59 of file gl_built_in_objects.cpp.
|
static |
MeshType | - mesh type to get OpenGL primitive type according to. |
Definition at line 135 of file gl.cpp.
|
static |
|
overridevirtual |
OpenGL specific phong lighint model shader for geometry pass getter function.
Implements scl::render_context.
Definition at line 31 of file gl_built_in_objects.cpp.
|
overridevirtual |
OpenGL specific phong lighint model shader for lighting pass getter function.
Implements scl::render_context.
Definition at line 38 of file gl_built_in_objects.cpp.
|
overridevirtual |
OpenGL specific shadow pass shader getter function.
Implements scl::render_context.
Definition at line 45 of file gl_built_in_objects.cpp.
|
overridevirtual |
Sculpto library built-in backend API specific rendering objects getter function.
OpenGL specific single color material shader getter function.
Implements scl::render_context.
Definition at line 24 of file gl_built_in_objects.cpp.
|
overridevirtual |
OpenGL specific gaussian blur pass shader getter function.
Implements scl::render_context.
Definition at line 66 of file gl_built_in_objects.cpp.
|
overridevirtual |
OpenGL specific full viewport mesh with tone mapping shader.
Implements scl::render_context.
Definition at line 52 of file gl_built_in_objects.cpp.
|
overridevirtual |
Render virtual syncronisation flag getter function.
Implements scl::render_context.
Definition at line 97 of file gl.cpp.
|
overridevirtual |
Render wire frame mode setter function.
Implements scl::render_context.
Definition at line 87 of file gl.cpp.
|
overridevirtual |
None. |
!SCL_PLATFORM_WINDOWS
Implements scl::render_context.
Definition at line 205 of file gl.cpp.
|
overridevirtual |
Frame clear color setter function.
Implements scl::render_context.
|
overridevirtual |
Render culling mode setter function.
Implements scl::render_context.
Definition at line 114 of file gl.cpp.
|
virtual |
Render virtual syncronisation flag setter function.
SCL_PLATFORM_WINDOWS
Implements scl::render_context.
Definition at line 127 of file gl.cpp.
|
overridevirtual |
Render wire frame mode setter function.
Implements scl::render_context.
Definition at line 108 of file gl.cpp.
|
overridevirtual |
None. |
Another way (not sure): wglSwapLayerBuffers(hDC, WGL_SWAP_MAIN_PLANE);
Implements scl::render_context.