deepstone

diff src/mglimpl.h @ 14:be61704c4cc8

added initial firstp
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 29 Nov 2011 07:22:49 +0200
parents 0909996838ff
children 4ad71b558ab2
line diff
     1.1 --- a/src/mglimpl.h	Mon Nov 28 05:12:33 2011 +0200
     1.2 +++ b/src/mglimpl.h	Tue Nov 29 07:22:49 2011 +0200
     1.3 @@ -18,6 +18,8 @@
     1.4  #ifndef MGL_IMPL_H_
     1.5  #define MGL_IMPL_H_
     1.6  
     1.7 +#include "vmath.h"
     1.8 +
     1.9  #define MATRIX_STACK_SIZE	8
    1.10  #define MAX_LIGHTS			4
    1.11  
    1.12 @@ -30,17 +32,6 @@
    1.13  
    1.14  #define ROUND(x)	((x) >= 0.0 ? (x) + 0.5 : (x) - 0.5)
    1.15  
    1.16 -typedef struct {
    1.17 -	float x, y, z, w;
    1.18 -} vec4_t;
    1.19 -
    1.20 -typedef struct {
    1.21 -	float x, y, z;
    1.22 -} vec3_t;
    1.23 -
    1.24 -typedef struct {
    1.25 -	float x, y;
    1.26 -} vec2_t;
    1.27  
    1.28  typedef float mat4_t[16];
    1.29