Euphoria
shaderattribute3d.cc
Go to the documentation of this file.
2 
3 #include "assert/assert.h"
4 
5 #include "render/shader.h"
6 
7 
9 {
11  {
12  ASSERT(shader);
13  shader->add_attribute(vertex);
14  shader->add_attribute(normal);
15  shader->add_attribute(tex_coord);
16  shader->add_attribute(color);
17  }
18 }
#define ASSERT(x)
Definition: assert.h:29
constexpr ShaderAttribute tex_coord
constexpr ShaderAttribute normal
constexpr ShaderAttribute vertex
constexpr ShaderAttribute color
void add_attributes_to_shader(ShaderProgram *shader)
void add_attribute(const ShaderAttribute &attribute)
Definition: shader.cc:184