- Main Page
- Namespaces
- Files

- File List

# gl.hpp

    00001 #ifndef GLM_EXT_VIRTREV_GL_HPP
    00002 #define GLM_EXT_VIRTREV_GL_HPP
    00003
    00005 // OpenGL Mathematics Copyright (c) 2005 - 2009 G-Truc Creation (www.g-truc.net)
    00006 // Virtrev SDK copyright matrem (matrem84.free.fr)
    00008 // Created : 2008-04-24
    00009 // Updated : 2008-10-07
    00010 // Licence : This source is under MIT License
    00011 // File    : glm/ext/virtrev/gl.h
    00013 // Dependency:
    00014 // - GLM core
    00015 // - glew or glee or gl library header
    00017
    00018 #include "../glm.hpp"
    00019
    00020 #if !defined(GLM_DEPENDENCE) || !(GLM_DEPENDENCE & (GLM_DEPENDENCE_GLEW|GLM_DEPENDENCE_GLEE|GLM_DEPENDENCE_GL))
    00021 #error GLM_VIRTREV_gl requires OpenGL to build. GLM_DEPENDENCE doesn't define the dependence.
    00022 #endif//GLM_DEPENDENCE
    00023
    00024 namespace glm
    00025 {
    00026         namespace virtrev_glmext
    00027         {
    00029         namespace gl
    00030         {
    00031                 typedef detail::tvec2<GLfloat> gl_vec2;
    00032                 typedef detail::tvec3<GLfloat> gl_vec3;
    00033                 typedef detail::tvec4<GLfloat> gl_vec4;
    00034
    00035                 typedef detail::tvec2<GLshort> gl_svec2;
    00036                 typedef detail::tvec3<GLshort> gl_svec3;
    00037                 typedef detail::tvec4<GLshort> gl_svec4;
    00038
    00039                 typedef detail::tvec2<GLint> gl_ivec2;
    00040                 typedef detail::tvec3<GLint> gl_ivec3;
    00041                 typedef detail::tvec4<GLint> gl_ivec4;
    00042
    00043                 typedef detail::tmat2x2<GLfloat> gl_mat2;
    00044                 typedef detail::tmat3x3<GLfloat> gl_mat3;
    00045                 typedef detail::tmat4x4<GLfloat> gl_mat4;
    00046
    00047                 typedef detail::tmat2x3<GLfloat> gl_mat2x3;
    00048                 typedef detail::tmat3x2<GLfloat> gl_mat3x2;
    00049                 typedef detail::tmat2x4<GLfloat> gl_mat2x4;
    00050                 typedef detail::tmat4x2<GLfloat> gl_mat4x2;
    00051                 typedef detail::tmat3x4<GLfloat> gl_mat3x4;
    00052                 typedef detail::tmat4x3<GLfloat> gl_mat4x3;
    00053
    00054         }
    00055         }
    00056 }
    00057
    00058 #define GLM_VIRTREV_gl namespace glm::virtrev_glmext::gl
    00059 #ifndef GLM_VIRTREV_GLOBAL
    00060 namespace glm {using GLM_VIRTREV_gl;}
    00061 #endif//GLM_VIRTREV_GLOBAL
    00062
    00063 #endif//GLM_EXT_VIRTREV_GL_HPP
    00064