Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
RenderState wrapping the OpenGL function glPointParameter(), see also http://www.opengl.org/sdk/docs/man/xhtml/glPointParameter.xml for more information. More...
#include <Shader.hpp>
Public Member Functions | |
| PointParameter (float sizemin=0, float sizemax=1024.0f, float fadethresholdsize=1.0f, fvec3 distanceattenuation=fvec3(1, 0, 0)) | |
| virtual const char * | className () |
| Returns the name of the class. | |
| virtual ERenderState | type () const |
| virtual void | apply (const Camera *, OpenGLContext *ctx) const |
| The parameter cameara is NULL if we are disabling the state, non-NULL if we are enabling it. | |
| void | set (float sizemin, float sizemax, float fadethresholdsize, fvec3 distanceattenuation) |
| void | setDistanceAttenuation (fvec3 attenuation) |
| void | setSizeMin (float sizemin) |
| void | setSizeMax (float sizemax) |
| void | setFadeThresholdSize (float threshold) |
| fvec3 | distanceAttenuation () const |
| float | sizeMin () const |
| float | sizeMax () const |
| float | fadeThresholdSize () const |
| EPointSpriteCoordOrigin | pointSpriteCoordOrigin () const |
| void | setPointSpriteCoordOrigin (EPointSpriteCoordOrigin orig) |
Protected Attributes | |
| fvec3 | mDistanceAttenuation |
| float | mSizeMin |
| float | mSizeMax |
| float | mFadeThresholdSize |
| EPointSpriteCoordOrigin | mPointSpriteCoordOrigin |
RenderState wrapping the OpenGL function glPointParameter(), see also http://www.opengl.org/sdk/docs/man/xhtml/glPointParameter.xml for more information.
Definition at line 762 of file Shader.hpp.
| vl::PointParameter::PointParameter | ( | float | sizemin = 0, |
| float | sizemax = 1024.0f, |
||
| float | fadethresholdsize = 1.0f, |
||
| fvec3 | distanceattenuation = fvec3(1,0,0) |
||
| ) | [inline] |
Definition at line 765 of file Shader.hpp.
References VL_DEBUG_SET_OBJECT_NAME.
| virtual const char* vl::PointParameter::className | ( | ) | [inline, virtual] |
Returns the name of the class.
Reimplemented from vl::RenderState.
Definition at line 771 of file Shader.hpp.
| virtual ERenderState vl::PointParameter::type | ( | ) | const [inline, virtual] |
Reimplemented from vl::RenderState.
Definition at line 772 of file Shader.hpp.
References vl::RS_PointParameter.
| void PointParameter::apply | ( | const Camera * | camera, |
| OpenGLContext * | ctx | ||
| ) | const [virtual] |
The parameter cameara is NULL if we are disabling the state, non-NULL if we are enabling it.
Implements vl::RenderState.
Definition at line 496 of file Shader.cpp.
References mDistanceAttenuation, mFadeThresholdSize, mPointSpriteCoordOrigin, mSizeMax, mSizeMin, vl::Vector3< T_Scalar >::ptr(), VL_CHECK_OGL, vl::VL_glPointParameterf(), vl::VL_glPointParameterfv(), and vl::VL_glPointParameteri().
| void vl::PointParameter::set | ( | float | sizemin, |
| float | sizemax, | ||
| float | fadethresholdsize, | ||
| fvec3 | distanceattenuation | ||
| ) | [inline] |
Definition at line 774 of file Shader.hpp.
| void vl::PointParameter::setDistanceAttenuation | ( | fvec3 | attenuation ) | [inline] |
Definition at line 775 of file Shader.hpp.
| void vl::PointParameter::setSizeMin | ( | float | sizemin ) | [inline] |
Definition at line 776 of file Shader.hpp.
| void vl::PointParameter::setSizeMax | ( | float | sizemax ) | [inline] |
Definition at line 777 of file Shader.hpp.
| void vl::PointParameter::setFadeThresholdSize | ( | float | threshold ) | [inline] |
Definition at line 778 of file Shader.hpp.
| fvec3 vl::PointParameter::distanceAttenuation | ( | ) | const [inline] |
Definition at line 779 of file Shader.hpp.
| float vl::PointParameter::sizeMin | ( | ) | const [inline] |
Definition at line 780 of file Shader.hpp.
| float vl::PointParameter::sizeMax | ( | ) | const [inline] |
Definition at line 781 of file Shader.hpp.
| float vl::PointParameter::fadeThresholdSize | ( | ) | const [inline] |
Definition at line 782 of file Shader.hpp.
| EPointSpriteCoordOrigin vl::PointParameter::pointSpriteCoordOrigin | ( | ) | const [inline] |
Definition at line 783 of file Shader.hpp.
| void vl::PointParameter::setPointSpriteCoordOrigin | ( | EPointSpriteCoordOrigin | orig ) | [inline] |
Definition at line 784 of file Shader.hpp.
fvec3 vl::PointParameter::mDistanceAttenuation [protected] |
Definition at line 786 of file Shader.hpp.
Referenced by apply().
float vl::PointParameter::mSizeMin [protected] |
Definition at line 787 of file Shader.hpp.
Referenced by apply().
float vl::PointParameter::mSizeMax [protected] |
Definition at line 788 of file Shader.hpp.
Referenced by apply().
float vl::PointParameter::mFadeThresholdSize [protected] |
Definition at line 789 of file Shader.hpp.
Referenced by apply().
Definition at line 790 of file Shader.hpp.
Referenced by apply().