tec::Shader

#include <shader.hpp>

Public Functions

Name
Shader() =default
~Shader()
void Use()
Uses the shader program.
void UnUse()
Unuses the shader program.
GLint GetUniformLocation(const std::string name)
Returns the location of the specified uniform.
GLint GetAttributeLocation(const std::string name)
Returns the location of the specified attribute.

Public Functions Documentation

function Shader

Shader() =default

function ~Shader

~Shader()

function Use

void Use()

Uses the shader program.

Return: void

function UnUse

void UnUse()

Unuses the shader program.

Return: void

function GetUniformLocation

GLint GetUniformLocation(
    const std::string name
)

Returns the location of the specified uniform.

Parameters:

  • const std::string name The name of the uniform to find the location of.

Return: GLint The location of the requested uniform.

function GetAttributeLocation

GLint GetAttributeLocation(
    const std::string name
)

Returns the location of the specified attribute.

Parameters:

  • const std::string name The name of the attribute to find the location of.

Return: GLint The location of the requested attribute.


Updated on 2022-07-24 at 19:27:35 +0000