39 VL_DEBUG_SET_OBJECT_NAME()
47 VL_DEBUG_SET_OBJECT_NAME()
61 glEnable(GL_CLIP_PLANE0 + index);
63 glMatrixMode(GL_MODELVIEW);
79 real orig =
dot(n, pt1);
81 #if defined(VL_OPENGL_ES1) 82 float equation[] = { n.
x(), n.
y(), n.
z(), -orig };
83 glClipPlanef(GL_CLIP_PLANE0 + index, equation);
85 double equation[] = { n.
x(), n.
y(), n.
z(), -orig };
86 glClipPlane(GL_CLIP_PLANE0 + index, equation);
93 glDisable(GL_CLIP_PLANE0 + index);
const mat4 & viewMatrix() const
Returns the Camera's view matrix (inverse of the modeling matrix).
const T_Scalar & z() const
Represents an OpenGL context, possibly a widget or a pbuffer, which can also respond to keyboard...
Visualization Library main namespace.
float dot(float a, float b)
Transform * boundTransform()
Returns the vl::Transform to which the Light is attached.
ClipPlane(real o=0.0f, vec3 n=vec3(0, 0, 0))
Constructor.
const T_Scalar & y() const
const vec3 & normal() const
const T_Scalar & x() const
Represents a virtual camera defining, among other things, the point of view from which scenes can be ...
void setNormal(const vec3 &normal)
void setOrigin(real origin)
virtual void apply(int index, const Camera *camera, OpenGLContext *) const
Applies the light render states.