#include <sglStatelet.hpp>
Inheritance diagram for sglBlending::
Public Types | |
enum | BlendFuncEnum { eZERO = GL_ZERO, eONE = GL_ONE, eSRC_COLOR = GL_SRC_COLOR, eONE_MINUS_SRC_COLOR = GL_ONE_MINUS_SRC_COLOR, eDST_COLOR = GL_DST_COLOR, eONE_MINUS_DST_COLOR = GL_ONE_MINUS_DST_COLOR, eSRC_ALPHA = GL_SRC_ALPHA, eONE_MINUS_SRC_ALPHA = GL_ONE_MINUS_SRC_ALPHA, eDST_ALPHA = GL_DST_ALPHA, eONE_MINUS_DST_ALPHA = GL_ONE_MINUS_DST_ALPHA, eSRC_ALPHA_SATURATE = GL_SRC_ALPHA_SATURATE } |
Public Methods | |
sglBlending (BlendFuncEnum src_func=eSRC_ALPHA, BlendFuncEnum dst_func=eONE_MINUS_SRC_ALPHA, bool on=false) | |
virtual | ~sglBlending () |
void | enable (bool on) |
bool | isEnabled () const |
void | setBlendFunc (BlendFuncEnum src_func, BlendFuncEnum dst_func) |
void | getBlendFunc (BlendFuncEnum &src_func, BlendFuncEnum &dst_func) const |
void | apply (sglCurrState *curr_state) const |
virtual bool | getSorted () const |
virtual void | printInfo (ostream &ostrm, const char *indent_string) const |
Example:
sglBlending *blending = new sglBlending; // defaults to disabled blending->setBlendFunc(sglBlending::eSRC_ALPHA, sglBlending::eONE_MINUS_SRC_ALPHA); blending->enable(true);
Definition at line 591 of file sglStatelet.hpp.
|
The list of possible blend functions. Definition at line 595 of file sglStatelet.hpp. |
|
Constructor (also default constructor).
Definition at line 618 of file sglStatelet.hpp. |
|
virtual destructor.
Definition at line 626 of file sglStatelet.hpp. |
|
Enable or disable blending.
Definition at line 631 of file sglStatelet.hpp. |
|
Query whether or not blending is enabled.
Definition at line 636 of file sglStatelet.hpp. |
|
Set the blend function factors for source and destination values.
Definition at line 643 of file sglStatelet.hpp. |
|
Query the current blend function factors.
Definition at line 650 of file sglStatelet.hpp. |
|
Apply this state change to the current rendering state.
Reimplemented from sglStatelet. |
|
Query the sorting mode for this statelet.
Reimplemented from sglStatelet. Definition at line 657 of file sglStatelet.hpp. |
|
Output the state of this node to the specified ostream.
Reimplemented from sglStatelet. |