Misc bugfixes, including q3bsp-rtlights and bloom. Matrix use clarifications. Working towards skeletal glsl code.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3890 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2011-07-30 14:14:56 +00:00
parent 4dba0e3f28
commit 729d6181c2
70 changed files with 2062 additions and 1311 deletions

View file

@ -47,6 +47,8 @@ typedef enum {
SHADER_SORT_COUNT
} shadersort_t;
#define MAX_BONES 128
typedef struct mesh_s
{
int numvertexes;
@ -73,6 +75,10 @@ typedef struct mesh_s
vec3_t *trnormals;
qboolean istrifan; /*if its a fan/poly/single quad (permits optimisations)*/
float *bones;
int numbones;
byte_vec4_t *bonenums;
vec4_t *boneweights;
} mesh_t;
extern mesh_t nullmesh;
@ -235,6 +241,16 @@ typedef struct vbo_s
int vbocolours;
vec4_t *colours4f;
byte_vec4_t *colours4ub;
int vbobonenums;
byte_vec4_t *bonenums;
int vboboneweights;
vec4_t *boneweights;
int vbobones;
float *bones;
int numbones;
} vbo_t;
void GL_SelectVBO(int vbo);
void GL_SelectEBO(int vbo);