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

alignement des donnees / storage 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 >
 

Typedefs

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

Functions

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

Variables

GLuint program
 

Detailed Description

alignement des donnees / storage buffers.

Definition in file tuto_storage.cpp.