Encapsulates OpenGL ClampColor state.
More...
List of all members.
Classes |
class | Extensions |
| Encapsulates queries of extension availability, obtains extension function pointers, and provides convenience wrappers for calling extension functions. More...
|
Public Member Functions |
| ClampColor () |
| ClampColor (GLenum vertexMode, GLenum fragmentMode, GLenum readMode) |
| ClampColor (const ClampColor &rhs, const CopyOp ©op=CopyOp::SHALLOW_COPY) |
| Copy constructor using CopyOp to manage deep vs shallow copy.
|
| META_StateAttribute (osg, ClampColor, CLAMPCOLOR) |
virtual int | compare (const StateAttribute &sa) const |
| Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
|
void | setClampVertexColor (GLenum mode) |
GLenum | getClampVertexColor () const |
void | setClampFragmentColor (GLenum mode) |
GLenum | getClampFragmentColor () const |
void | setClampReadColor (GLenum mode) |
GLenum | getClampReadColor () const |
virtual void | apply (State &state) const |
| apply the OpenGL state attributes.
|
Static Public Member Functions |
static Extensions * | getExtensions (unsigned int contextID, bool createIfNotInitalized) |
| Returns the Extensions object for the given context.
|
static void | setExtensions (unsigned int contextID, Extensions *extensions) |
| setExtensions() allows users to override the extensions across graphics contexts.
|
Protected Member Functions |
virtual | ~ClampColor () |
Protected Attributes |
GLenum | _clampVertexColor |
GLenum | _clampFragmentColor |
GLenum | _clampReadColor |
Detailed Description
Encapsulates OpenGL ClampColor state.
Constructor & Destructor Documentation
osg::ClampColor::ClampColor |
( |
| ) |
|
osg::ClampColor::ClampColor |
( |
GLenum |
vertexMode, |
|
|
GLenum |
fragmentMode, |
|
|
GLenum |
readMode |
|
) |
| |
osg::ClampColor::ClampColor |
( |
const ClampColor & |
rhs, |
|
|
const CopyOp & |
copyop = CopyOp::SHALLOW_COPY |
|
) |
| [inline] |
Copy constructor using CopyOp to manage deep vs shallow copy.
virtual osg::ClampColor::~ClampColor |
( |
| ) |
[protected, virtual] |
Member Function Documentation
virtual void osg::ClampColor::apply |
( |
State & |
| ) |
const [virtual] |
apply the OpenGL state attributes.
The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state.
Reimplemented from osg::StateAttribute.
virtual int osg::ClampColor::compare |
( |
const StateAttribute & |
sa | ) |
const [inline, virtual] |
GLenum osg::ClampColor::getClampFragmentColor |
( |
| ) |
const [inline] |
GLenum osg::ClampColor::getClampReadColor |
( |
| ) |
const [inline] |
GLenum osg::ClampColor::getClampVertexColor |
( |
| ) |
const [inline] |
static Extensions* osg::ClampColor::getExtensions |
( |
unsigned int |
contextID, |
|
|
bool |
createIfNotInitalized |
|
) |
| [static] |
Returns the Extensions object for the given context.
If createIfNotInitalized is true and the Extensions object doesn't exist, getExtensions() creates it on the given context. Returns NULL if createIfNotInitalized is false and the Extensions object doesn't exist.
osg::ClampColor::META_StateAttribute |
( |
osg |
, |
|
|
ClampColor |
, |
|
|
CLAMPCOLOR |
|
|
) |
| |
void osg::ClampColor::setClampFragmentColor |
( |
GLenum |
mode | ) |
[inline] |
void osg::ClampColor::setClampReadColor |
( |
GLenum |
mode | ) |
[inline] |
void osg::ClampColor::setClampVertexColor |
( |
GLenum |
mode | ) |
[inline] |
static void osg::ClampColor::setExtensions |
( |
unsigned int |
contextID, |
|
|
Extensions * |
extensions |
|
) |
| [static] |
setExtensions() allows users to override the extensions across graphics contexts.
Typically used when you have different extensions supported across graphics pipes, but need to ensure that they all use the same low common denominator extensions.
Member Data Documentation
The documentation for this class was generated from the following file: