Oxygine  1
2g game engine
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
oxygine::UberShaderProgram Class Reference
Inheritance diagram for oxygine::UberShaderProgram:
oxygine::UberShaderProgramBase oxygine::Restorable

Public Types

enum  {
  ALPHA_PREMULTIPLY = 1, SEPARATE_ALPHA = 1 << 1, MASK_R_CHANNEL = 1 << 2, MASK = 1 << 3,
  SDF = 1 << 4, SDF_OUTLINE = 1 << 1, _SIZE = 1 << 5
}
 
enum  { SAMPLER_BASE, SAMPLER_ALPHA, SAMPLER_MASK, SAMPLER_NUM }
 
- Public Types inherited from oxygine::UberShaderProgramBase
typedef Closure< void(IVideoDriver *, ShaderProgram *)> ShaderUniformsCallback
 
- Public Types inherited from oxygine::Restorable
typedef std::vector< Restorable * > restorable
 
typedef Closure< void(Restorable *, void *userData)> RestoreCallback
 

Public Member Functions

ShaderProgramgetShaderProgram (int flags) OVERRIDE
 
void apply (IVideoDriver *driver, spNativeTexture base, spNativeTexture alpha)
 
- Public Member Functions inherited from oxygine::UberShaderProgramBase
void init (const std::vector< unsigned char > &baseShader, const char *prepend="", const char *append="")
 
void release ()
 
ShaderUniformsCallback getShaderUniformsCallback () const
 
void setShaderUniformsCallback (ShaderUniformsCallback cb)
 
- Public Member Functions inherited from oxygine::Restorable
void restore ()
 
void reg (RestoreCallback cb, void *user)
 
void unreg ()
 

Protected Member Functions

void releaseShaders () OVERRIDE
 
- Protected Member Functions inherited from oxygine::UberShaderProgramBase
void * _getRestorableObject ()
 
void _restore (Restorable *, void *)
 

Protected Attributes

shader _shaders [_SIZE]
 
- Protected Attributes inherited from oxygine::UberShaderProgramBase
std::vector< unsigned char > _data
 
ShaderUniformsCallback _cb
 

Additional Inherited Members

- Static Public Member Functions inherited from oxygine::Restorable
static const restorable & getObjects ()
 
static void restoreAll ()
 
static void releaseAll ()
 
static bool isRestored ()
 

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