xoreos  0.0.5
Public Member Functions | Public Attributes | List of all members
Graphics::Shader::ShaderSampler Struct Reference

Shader sampler is used to bind a texture to a texture unit. More...

#include <shader.h>

Collaboration diagram for Graphics::Shader::ShaderSampler:
Collaboration graph
[legend]

Public Member Functions

 ShaderSampler ()
 
 ShaderSampler (Texture *t, uint32 u)
 

Public Attributes

Texturetexture
 
Graphics::Aurora::TextureHandle handle
 
uint32 unit
 

Detailed Description

Shader sampler is used to bind a texture to a texture unit.

The user must specify the unit to use.

Definition at line 174 of file shader.h.

Constructor & Destructor Documentation

◆ ShaderSampler() [1/2]

Graphics::Shader::ShaderSampler::ShaderSampler ( )
inline

Definition at line 178 of file shader.h.

◆ ShaderSampler() [2/2]

Graphics::Shader::ShaderSampler::ShaderSampler ( Texture t,
uint32  u 
)
inline

Definition at line 179 of file shader.h.

Member Data Documentation

◆ handle

Graphics::Aurora::TextureHandle Graphics::Shader::ShaderSampler::handle

◆ texture

Texture* Graphics::Shader::ShaderSampler::texture

Definition at line 175 of file shader.h.

◆ unit

uint32 Graphics::Shader::ShaderSampler::unit

Definition at line 177 of file shader.h.


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