gKit2 light
Classes | Typedefs | Functions | Variables
tuto_uniform_buffers.cpp File Reference

alignement des donnees / uniform buffers. More...

#include <cstddef>
#include <cassert>
#include <vector>
#include "window.h"
#include "vec.h"
#include "color.h"
#include "program.h"

Go to the source code of this file.

Classes

struct  glsl::gscalar< T >
 
struct  glsl::gvec2< T >
 
struct  glsl::gvec3< T >
 
struct  glsl::gvec4< T >
 
struct  glsl::array::gscalar< T >
 
struct  glsl::array::gvec2< T >
 
struct  glsl::array::gvec3< T >
 
struct  glsl::array::gvec4< T >
 

Typedefs

typedef gscalar< float > glsl::array::gfloat
 
typedef gscalar< int > glsl::array::gint
 
typedef gscalar< unsigned int > glsl::array::guint
 
typedef gscalar< bool > glsl::array::gbool
 
typedef gvec2< float > glsl::array::vec2
 
typedef gvec2< int > glsl::array::ivec2
 
typedef gvec2< unsigned int > glsl::array::uvec2
 
typedef gvec2< int > glsl::array::bvec2
 
typedef gvec3< float > glsl::array::vec3
 
typedef gvec3< int > glsl::array::ivec3
 
typedef gvec3< unsigned int > glsl::array::uvec3
 
typedef gvec3< int > glsl::array::bvec3
 
typedef gvec4< float > glsl::array::vec4
 
typedef gvec4< int > glsl::array::ivec4
 
typedef gvec4< unsigned int > glsl::array::uvec4
 
typedef gvec4< int > glsl::array::bvec4
 

Functions

const char * glsl_string (const GLenum type)
 
int print_uniform (const GLuint program)
 
int init ()
 
int quit ()
 
int main (int argc, char **argv)
 

Variables

GLuint program
 

Detailed Description

alignement des donnees / uniform buffers.

Definition in file tuto_uniform_buffers.cpp.