Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
CShaderProgram::Binding Struct Reference

Represents a uniform attribute or texture binding. More...

#include <ShaderProgram.h>

Public Member Functions

 Binding (int a, int b)
 
 Binding ()
 
bool Active ()
 Returns whether this uniform attribute is active in the shader. More...
 

Public Attributes

int first
 
int second
 

Detailed Description

Represents a uniform attribute or texture binding.

For uniforms:

Definition at line 105 of file ShaderProgram.h.

Constructor & Destructor Documentation

CShaderProgram::Binding::Binding ( int  a,
int  b 
)
inline

Definition at line 107 of file ShaderProgram.h.

CShaderProgram::Binding::Binding ( )
inline

Definition at line 109 of file ShaderProgram.h.

Member Function Documentation

bool CShaderProgram::Binding::Active ( )
inline

Returns whether this uniform attribute is active in the shader.

If not then there's no point calling Uniform() to set its value.

Definition at line 115 of file ShaderProgram.h.

Member Data Documentation

int CShaderProgram::Binding::first

Definition at line 117 of file ShaderProgram.h.

int CShaderProgram::Binding::second

Definition at line 118 of file ShaderProgram.h.


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