GL Studio C++ Runtime API
IGlsStateManager Interface Referenceabstract

#include <gls_state_manager_interface.h>

Inheritance diagram for IGlsStateManager:
NonCopyable IGlsStateManagerES20

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 >
 

Detailed Description

The interface to a state manager that manages the GL Studio runtime library's use of the OpenGL context, minimizing unnecessary state changes

Constructor & Destructor Documentation

◆ IGlsStateManager()

IGlsStateManager ( )
inlineprotected

default ctor

◆ ~IGlsStateManager()

virtual ~IGlsStateManager ( )
inlineprotectedvirtual

dtor is protected but virtual so that users cannot delete instances of it, but ScopedPtr can inside GlsGlobals

Member Function Documentation

◆ AlphaBlendFunc()

virtual void AlphaBlendFunc ( GLenum  src,
GLenum  dst 
)
pure virtual

Wrapper for glBlendFunc. Parameters are equivalent to glBlendFunc.

Parameters
srcFunction to use for source color.
dstFunction to use for destination color.

Implemented in IGlsStateManagerES20.

◆ AlphaBlendFuncSeparate()

virtual void AlphaBlendFuncSeparate ( GLenum  srcColor,
GLenum  dstColor,
GLenum  srcAlpha,
GLenum  dstAlpha 
)
pure virtual

Wrapper for glBlendFuncSeparate if supported, or glBlendFunc (ignoring the last two parameters) if glBlendFuncSeparate is not supported. Parameters are equivalent to glBlendFuncSeparate.

Parameters
srcColorFunction to use for source color.
dstColorFunction to use for destination color.
srcAlphaFunction to use for source alpha.
dstAlphaFunction to use for destination alpha.

Implemented in IGlsStateManagerES20.

◆ PopAlphaBlendFunc()

virtual void PopAlphaBlendFunc ( )
pure virtual

Pops the previously pushed alpha blend func from the stack and restores its state to the opengl context.

Implemented in IGlsStateManagerES20.

◆ PushAlphaBlendFunc()

virtual void PushAlphaBlendFunc ( )
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.


The documentation for this interface was generated from the following file: