Integrate gltf2 support without external plugin.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5605 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
8e656b4af8
commit
ffda35fae4
9 changed files with 211 additions and 60 deletions
|
@ -1,3 +1,6 @@
|
|||
#ifndef COM_MESH_H
|
||||
#define COM_MESH_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
@ -91,7 +94,6 @@ typedef struct
|
|||
//we can't be bothered with animating skins.
|
||||
//We'll load up to four of them but after that you're on your own
|
||||
#ifndef SERVERONLY
|
||||
|
||||
typedef struct
|
||||
{
|
||||
shader_t *shader;
|
||||
|
@ -100,7 +102,7 @@ typedef struct
|
|||
char shadername[MAX_QPATH];
|
||||
texnums_t texnums;
|
||||
} skinframe_t;
|
||||
typedef struct
|
||||
struct galiasskin_s
|
||||
{
|
||||
int skinwidth;
|
||||
int skinheight;
|
||||
|
@ -108,7 +110,7 @@ typedef struct
|
|||
int numframes;
|
||||
skinframe_t *frame;
|
||||
char name[MAX_QPATH];
|
||||
} galiasskin_t;
|
||||
};
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
@ -121,9 +123,8 @@ typedef struct
|
|||
unsigned int subframe;
|
||||
bucket_t bucket;
|
||||
} galiascolourmapped_t;
|
||||
#else
|
||||
typedef void galiasskin_t;
|
||||
#endif
|
||||
typedef struct galiasskin_s galiasskin_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
@ -276,4 +277,5 @@ void R_Generate_Mesh_ST_Vectors(mesh_t *mesh);
|
|||
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
#endif //COM_MESH_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue