Euphoria
Public Member Functions | Public Attributes | List of all members
eu::render::Uniform Struct Reference

Represents a found shader uniform and created via ShaderProgram::GetUniform() More...

Public Member Functions

 Uniform ()=default
 Creates a invalid uniform.
 
 Uniform (std::string n, int l, unsigned int sp)
 
bool is_valid () const
 

Public Attributes

std::string name = "<unknown>"
 
int location = -1
 
unsigned int debug_shader_program = 0
 
int texture = -1
 The value is >=0 if this is uniform maps to a texture.
 

Detailed Description

Represents a found shader uniform and created via ShaderProgram::GetUniform()

Definition at line 8 of file uniform.h.

Constructor & Destructor Documentation

◆ Uniform() [1/2]

eu::render::Uniform::Uniform ( )
default

Creates a invalid uniform.

◆ Uniform() [2/2]

eu::render::Uniform::Uniform ( std::string  n,
int  l,
unsigned int  sp 
)

Member Function Documentation

◆ is_valid()

bool eu::render::Uniform::is_valid ( ) const

Member Data Documentation

◆ debug_shader_program

unsigned int eu::render::Uniform::debug_shader_program = 0

Definition at line 12 of file uniform.h.

◆ location

int eu::render::Uniform::location = -1

Definition at line 11 of file uniform.h.

◆ name

std::string eu::render::Uniform::name = "<unknown>"

Definition at line 10 of file uniform.h.

◆ texture

int eu::render::Uniform::texture = -1

The value is >=0 if this is uniform maps to a texture.

Definition at line 13 of file uniform.h.


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