![]() |
Public API Reference |
![]() |
Helper class for user defined OpenGL clip planes. More...
#include <csplugincommon/opengl/shaderplugin.h>
Public Types | |
enum | ClipSpace { Object, World, Eye } |
Possible clip plane spaces. More... | |
Public Member Functions | |
void | DisableClipPlanes () |
Disable all clip planes previously enabled. | |
bool | EnableClipPlane (size_t n) |
Enable the n th OpenGL clip plane without setting it. | |
bool | EnableNextClipPlane () |
Enable the next available OpenGL clip plane without setting it. | |
void | Initialize (iObjectRegistry *objectReg) |
Initialize, should be called by plugin Initialize(). | |
void | SetShaderVars (const csShaderVariableStack &stack) |
Set shader vars required for transforming clip planes. | |
bool | AddClipPlane (const csPlane3 &plane, ClipSpace space) |
Add a clip plane. | |
bool | AddClipPlane (const csVector4 &plane, ClipSpace space) |
Add a clip plane. |
Helper class for user defined OpenGL clip planes.
Definition at line 116 of file shaderplugin.h.
Possible clip plane spaces.
Definition at line 138 of file shaderplugin.h.
bool CS::PluginCommon::ShaderProgramPluginGL::ClipPlanes::AddClipPlane | ( | const csPlane3 & | plane, |
ClipSpace | space | ||
) |
Add a clip plane.
bool CS::PluginCommon::ShaderProgramPluginGL::ClipPlanes::AddClipPlane | ( | const csVector4 & | plane, |
ClipSpace | space | ||
) | [inline] |
Add a clip plane.
Definition at line 150 of file shaderplugin.h.
Disable all clip planes previously enabled.
bool CS::PluginCommon::ShaderProgramPluginGL::ClipPlanes::EnableClipPlane | ( | size_t | n | ) |
Enable the n th OpenGL clip plane without setting it.
It is up to the caller to call glClipPlane().
Enable the next available OpenGL clip plane without setting it.
It is up to the caller to call glClipPlane().
void CS::PluginCommon::ShaderProgramPluginGL::ClipPlanes::Initialize | ( | iObjectRegistry * | objectReg | ) |
Initialize, should be called by plugin Initialize().
void CS::PluginCommon::ShaderProgramPluginGL::ClipPlanes::SetShaderVars | ( | const csShaderVariableStack & | stack | ) |
Set shader vars required for transforming clip planes.