Inheritance diagram for osg::Multisample:
Public Types | |
enum | Mode { FASTEST = GL_FASTEST, NICEST = GL_NICEST, DONT_CARE = GL_DONT_CARE } |
Public Member Functions | |
Multisample () | |
Multisample (const Multisample &trans, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
META_StateAttribute (osg, Multisample, MULTISAMPLE) | |
virtual int | compare (const StateAttribute &sa) const |
void | setSampleCoverage (float coverage, bool invert) |
void | setCoverage (float coverage) |
float | getCoverage () const |
void | setInvert (bool invert) |
bool | getInvert () const |
void | setHint (Mode mode) |
Mode | getHint () const |
virtual void | apply (State &state) const |
Static Public Member Functions | |
Extensions * | getExtensions (unsigned int contextID, bool createIfNotInitalized) |
void | setExtensions (unsigned int contextID, Extensions *extensions) |
Protected Member Functions | |
virtual | ~Multisample () |
Protected Attributes | |
float | _coverage |
bool | _invert |
Mode | _mode |
|
|
|
|
|
Copy constructor using CopyOp to manage deep vs shallow copy. |
|
|
|
apply the OpenGL state attributes. The global state for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state. Implements osg::StateAttribute. |
|
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. Implements osg::StateAttribute. |
|
|
|
Function to call to get the extension of a specified context. If the Exentsion object for that context has not yet been created and the 'createIfNotInitalized' flag been set to false then returns NULL. If 'createIfNotInitalized' is true then the Extensions object is automatically created. However, in this case the extension object will only be created with the graphics context associated with ContextID.. |
|
|
|
|
|
|
|
|
|
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. |
|
|
|
|
|
|
|
|
|
|
|
|