Beatmup
variables_bundle.cpp File Reference
#include "variables_bundle.h"
#include "../bitmap/pixel_arithmetic.h"
#include "bgl.h"

Go to the source code of this file.

Macros

#define CASE(n, t, T)   case n: glUniform##n##t##v(program.getUniformLocation(var.first.c_str()), var.second.getCount(), var.second.getData<T>()); break;
 
#define CASE(n)   case n: glUniformMatrix##n##fv(program.getUniformLocation(var.first.c_str()), var.second.getCount(), GL_FALSE, var.second.getData<GLfloat>()); break;
 

Macro Definition Documentation

◆ CASE [1/2]

#define CASE (   n,
  t,
 
)    case n: glUniform##n##t##v(program.getUniformLocation(var.first.c_str()), var.second.getCount(), var.second.getData<T>()); break;

◆ CASE [2/2]

#define CASE (   n)    case n: glUniformMatrix##n##fv(program.getUniformLocation(var.first.c_str()), var.second.getCount(), GL_FALSE, var.second.getData<GLfloat>()); break;