|  | GL Studio C++ Runtime API
    | 
#include <gls_state_manager_interface.h>
 
  
| Public Member Functions | |
| virtual void | AlphaBlendFuncSeparate (GLenum srcColor, GLenum dstColor, GLenum srcAlpha, GLenum dstAlpha)=0 | 
| virtual void | SetDefaultAlphaBlendFunc ()=0 | 
| Sets the default blend function for GL Studio. | |
| virtual void | PushAlphaBlendFunc ()=0 | 
| Pushes the current alpha blend func onto an internal stack. Can restore the pushed alpha blend func by calling PopAlphaBlendFunc.  More... | |
| virtual void | PopAlphaBlendFunc ()=0 | 
| Pops the previously pushed alpha blend func from the stack and restores its state to the opengl context.  More... | |
| virtual void | AlphaBlendFunc (GLenum src, GLenum dst)=0 | 
| Protected Member Functions | |
| IGlsStateManager () | |
| virtual | ~IGlsStateManager () | 
| Friends | |
| class | ScopedPtr< IGlsStateManager > | 
The interface to a state manager that manages the GL Studio runtime library's use of the OpenGL context, minimizing unnecessary state changes
| 
 | inlineprotected | 
default ctor
| 
 | inlineprotectedvirtual | 
dtor is protected but virtual so that users cannot delete instances of it, but ScopedPtr can inside GlsGlobals
| 
 | pure virtual | 
Wrapper for glBlendFunc. Parameters are equivalent to glBlendFunc.
| src | Function to use for source color. | 
| dst | Function to use for destination color. | 
Implemented in IGlsStateManagerES20.
| 
 | pure virtual | 
Wrapper for glBlendFuncSeparate if supported, or glBlendFunc (ignoring the last two parameters) if glBlendFuncSeparate is not supported. Parameters are equivalent to glBlendFuncSeparate.
| srcColor | Function to use for source color. | 
| dstColor | Function to use for destination color. | 
| srcAlpha | Function to use for source alpha. | 
| dstAlpha | Function to use for destination alpha. | 
Implemented in IGlsStateManagerES20.
| 
 | pure virtual | 
Pops the previously pushed alpha blend func from the stack and restores its state to the opengl context.
Implemented in IGlsStateManagerES20.
| 
 | pure virtual | 
Pushes the current alpha blend func onto an internal stack. Can restore the pushed alpha blend func by calling PopAlphaBlendFunc.
Implemented in IGlsStateManagerES20.