#include <lvt/State.h>
Inheritance diagram for Blending:
Public Member Functions | |
Blending (GLenum src=GL_ONE, GLenum dst=GL_ZERO) | |
Default constructor. | |
void | Render () |
Renders the state. | |
void | SetDestinationFactor (GLenum dst) |
Sets the destination factor of the OpenGL blending function. | |
void | SetSourceFactor (GLenum src) |
Sets the source factor of the OpenGL blending function. |
|
Default constructor. Sets the source and destination factors of the blend function to GL_ONE and GL_ZERO, respectively. This is equivalent to no blending. |
|
Renders the state. If the state is enabled, Render() enables OpenGL blending, and sets the source and destination factors of the blending function. If the state is disabled, disables OpenGL blending. Implements State. |
|
Sets the destination factor of the OpenGL blending function.
|
|
Sets the source factor of the OpenGL blending function.
|