From ee7b52c8eebb836c05f99a82de12c8531cae07cf Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Fri, 30 Apr 2010 10:53:48 +0100 Subject: [PATCH] Promoted extension to GTC --- glm/gtx/type_ptr.hpp | 230 ------------------------------------------- glm/gtx/type_ptr.inl | 0 2 files changed, 230 deletions(-) delete mode 100644 glm/gtx/type_ptr.hpp delete mode 100644 glm/gtx/type_ptr.inl diff --git a/glm/gtx/type_ptr.hpp b/glm/gtx/type_ptr.hpp deleted file mode 100644 index 95dc08e9..00000000 --- a/glm/gtx/type_ptr.hpp +++ /dev/null @@ -1,230 +0,0 @@ -/////////////////////////////////////////////////////////////////////////////////////////////////// -// OpenGL Mathematics Copyright (c) 2005 - 2010 G-Truc Creation (www.g-truc.net) -/////////////////////////////////////////////////////////////////////////////////////////////////// -// Created : 2009-05-06 -// Updated : 2009-05-06 -// Licence : This source is under MIT License -// File : glm/gtx/type_ptr.hpp -/////////////////////////////////////////////////////////////////////////////////////////////////// -// Dependency: -// - GLM core -/////////////////////////////////////////////////////////////////////////////////////////////////// - -#ifndef glm_gtx_type_ptr -#define glm_gtx_type_ptr - -// Dependency: -#include "../glm.hpp" - -namespace glm -{ - namespace test{ - void main_gtx_type_ptr(); - }//namespace test - - namespace gtx{ - //! GLM_GTX_type_ptr extension: Get access to vectors & matrices value type address. - namespace type_ptr{ - - //! Get the const address of the vector content. - //! From GLM_GTX_type_ptr extension. - template - inline valType const * value_ptr(detail::tvec2 const & vec) - { - return &(vec.x); - } - - //! Get the address of the vector content. - //! From GLM_GTX_type_ptr extension. - template - inline valType * value_ptr(detail::tvec2 & vec) - { - return &(vec.x); - } - - //! Get the const address of the vector content. - //! From GLM_GTX_type_ptr extension. - template - inline valType const * value_ptr(detail::tvec3 const & vec) - { - return &(vec.x); - } - - //! Get the address of the vector content. - //! From GLM_GTX_type_ptr extension. - template - inline valType * value_ptr(detail::tvec3 & vec) - { - return &(vec.x); - } - - //! Get the const address of the vector content. - //! From GLM_GTX_type_ptr extension. - template - inline valType const * value_ptr(detail::tvec4 const & vec) - { - return &(vec.x); - } - - //! Get the address of the vector content. - //! From GLM_GTX_type_ptr extension. - template - inline valType * value_ptr(detail::tvec4 & vec) - { - return &(vec.x); - } - - //! Get the const address of the matrix content. - //! From GLM_GTX_type_ptr extension. - template - inline valType const * value_ptr(detail::tmat2x2 const & mat) - { - return &(mat[0].x); - } - - //! Get the address of the matrix content. - //! From GLM_GTX_type_ptr extension. - template - inline valType * value_ptr(detail::tmat2x2 & mat) - { - return &(mat[0].x); - } - - //! Get the const address of the matrix content. - //! From GLM_GTX_type_ptr extension. - template - inline valType const * value_ptr(detail::tmat3x3 const & mat) - { - return &(mat[0].x); - } - - //! Get the address of the matrix content. - //! From GLM_GTX_type_ptr extension. - template - inline valType * value_ptr(detail::tmat3x3 & mat) - { - return &(mat[0].x); - } - - //! Get the const address of the matrix content. - //! From GLM_GTX_type_ptr extension. - template - inline valType const * value_ptr(detail::tmat4x4 const & mat) - { - return &(mat[0].x); - } - - //! Get the address of the matrix content. - //! From GLM_GTX_type_ptr extension. - template - inline valType * value_ptr(detail::tmat4x4 & mat) - { - return &(mat[0].x); - } - - //! Get the const address of the matrix content. - //! From GLM_GTX_type_ptr extension. - template - inline valType const * value_ptr(detail::tmat2x3 const & mat) - { - return &(mat[0].x); - } - - //! Get the address of the matrix content. - //! From GLM_GTX_type_ptr extension. - template - inline valType * value_ptr(detail::tmat2x3 & mat) - { - return &(mat[0].x); - } - - //! Get the const address of the matrix content. - //! From GLM_GTX_type_ptr extension. - template - inline valType const * value_ptr(detail::tmat3x2 const & mat) - { - return &(mat[0].x); - } - - //! Get the address of the matrix content. - //! From GLM_GTX_type_ptr extension. - template - inline valType * value_ptr(detail::tmat3x2 & mat) - { - return &(mat[0].x); - } - - //! Get the const address of the matrix content. - //! From GLM_GTX_type_ptr extension. - template - inline valType const * value_ptr(detail::tmat2x4 const & mat) - { - return &(mat[0].x); - } - - //! Get the address of the matrix content. - //! From GLM_GTX_type_ptr extension. - template - inline valType * value_ptr(detail::tmat2x4 & mat) - { - return &(mat[0].x); - } - - //! Get the const address of the matrix content. - //! From GLM_GTX_type_ptr extension. - template - inline valType const * value_ptr(detail::tmat4x2 const & mat) - { - return &(mat[0].x); - } - - //! Get the address of the matrix content. - //! From GLM_GTX_type_ptr extension. - template - inline valType * value_ptr(detail::tmat4x2 & mat) - { - return &(mat[0].x); - } - - //! Get the const address of the matrix content. - //! From GLM_GTX_type_ptr extension. - template - inline valType const * value_ptr(detail::tmat3x4 const & mat) - { - return &(mat[0].x); - } - - //! Get the address of the matrix content. - //! From GLM_GTX_type_ptr extension. - template - inline valType * value_ptr(detail::tmat3x4 & mat) - { - return &(mat[0].x); - } - - //! Get the const address of the matrix content. - //! From GLM_GTX_type_ptr extension. - template - inline valType const * value_ptr(detail::tmat4x3 const & mat) - { - return &(mat[0].x); - } - - //! Get the address of the matrix content. - //! From GLM_GTX_type_ptr extension. - template - inline valType * value_ptr(detail::tmat4x3 & mat) - { - return &(mat[0].x); - } - - }//namespace type_ptr - }//namespace gtx -}//namespace glm - -#include "type_ptr.inl" - -namespace glm{using namespace gtx::type_ptr;} - -#endif//glm_gtx_type_ptr - diff --git a/glm/gtx/type_ptr.inl b/glm/gtx/type_ptr.inl deleted file mode 100644 index e69de29b..00000000