SuperTuxKart
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Shaders::ColoredLine Class Reference

Shader to draw a colored line. More...

#include <shaders.hpp>

Inheritance diagram for Shaders::ColoredLine:
Inheritance graph
[legend]

Public Member Functions

void bindVertexArray ()
 Bind the vertex array of this shader.
 
void bindBuffer ()
 Binds the vbo of this shader.
 
- Public Member Functions inherited from Shader< ColoredLine, irr::video::SColor >
void setUniforms (const Args &... args) const
 Sets the uniforms for this shader.
 
void assignTextureUnit (GLuint index, const char *uniform, T1... rest)
 Variadic top level/public interface.
 
 Shader ()
 Constructor.
 
void loadProgram (AttributeType type, Types ... args)
 Load a list of shaders and links them all together.
 
void drawFullScreenEffect (Args...args)
 
- Public Member Functions inherited from ShaderBase
 ShaderBase ()
 Constructor, which adds the shader to all instantiated shaders (for the reload-all-shaders debug option).
 
int loadTFBProgram (const std::string &vertex_file_path, const char **varyings, unsigned varyingscount)
 Loads a transform feedback buffer shader with a given number of varying parameters.
 
GLuint createVAO ()
 
void use ()
 Activates the shader calling glUseProgram.
 
GLuint getUniformLocation (const char *name)
 

Private Attributes

GLuint m_vao
 
GLuint m_vbo
 

Additional Inherited Members

- Static Public Member Functions inherited from ShaderBase
static void killShaders ()
 
- Static Public Member Functions inherited from Singleton< T >
static T * getInstance ()
 Used to get the instance.
 
static void kill ()
 Used to kill the singleton, if needed.
 
- Protected Types inherited from ShaderBase
enum  AttributeType { OBJECT , PARTICLES_SIM , PARTICLES_RENDERING , SKINNED_MESH }
 
- Protected Member Functions inherited from Shader< ColoredLine, irr::video::SColor >
void assignUniforms (U... rest)
 This variadic template collects all names of uniforms in a std::vector.
 
void printFileList (GLint shader_type, const char *filepath, Types ... args)
 Variadic template to print a list of file names.
 
- Protected Member Functions inherited from ShaderBase
template<typename ... Types>
void loadAndAttachShader ()
 Ends recursion.
 
template<typename ... Types>
void loadAndAttachShader (GLint shader_type, const std::string &name, Types ... args)
 
template<typename ... Types>
void loadAndAttachShader (GLint shader_type, const char *name, Types ... args)
 Convenience interface using const char.
 
- Protected Member Functions inherited from Singleton< T >
 Singleton ()
 Constructor.
 
virtual ~Singleton ()
 Destructor.
 
- Protected Attributes inherited from ShaderBase
GLuint m_program
 OpenGL's program id.
 
std::vector< std::shared_ptr< GLuint > > m_shaders
 
- Static Protected Attributes inherited from ShaderBase
static std::vector< void(*)()> m_all_kill_functions
 Maintains a list of all shaders.
 

Detailed Description

Shader to draw a colored line.


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