12#ifndef SHADERUNIFORM_H_6014714286
13#define SHADERUNIFORM_H_6014714286
15#include <Carna/Carna.h>
40template<
typename ValueType >
111 const static int NULL_UNIFORM_LOCATION = -1;
127void CARNA_LIB
uploadUniform(
int location,
const int value );
129void CARNA_LIB
uploadUniform(
int location,
const unsigned int value );
131void CARNA_LIB
uploadUniform(
int location,
const float value );
165template<
typename ValueType >
188 virtual void uploadTo(
int location )
const override;
193template<
typename ValueType >
201template<
typename ValueType >
205 uploadUniform( location,
static_cast< const UniformType&
>( value ) );
Represents an association.
Represents a color. Objects from this class are copyable and assignable.
Maintains an OpenGL shader program. Realizes the RAII-idiom.
Defines Carna::base::math namespace and CARNA_FOR_VECTOR3UI.
Eigen::Matrix< float, 2, 1 > Vector2f
Defines vector.
Eigen::Matrix< float, 4, 1 > Vector4f
Defines vector.
Eigen::Matrix< float, 3, 3, Eigen::ColMajor > Matrix3f
Defines matrix.
Eigen::Matrix< float, 3, 1 > Vector3f
Defines vector.
Eigen::Matrix< float, 4, 4, Eigen::ColMajor > Matrix4f
Defines matrix.