mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-06 17:32:05 +00:00
Tweaked a few things for the skin struct.
This commit is contained in:
parent
dcfceca884
commit
bf29d43729
1 changed files with 16 additions and 5 deletions
|
@ -50,12 +50,12 @@ typedef struct efrag_s
|
||||||
struct efrag_s *entnext;
|
struct efrag_s *entnext;
|
||||||
} efrag_t;
|
} efrag_t;
|
||||||
|
|
||||||
typedef struct new_tri_s
|
typedef struct r_tri_s
|
||||||
{
|
{
|
||||||
int vert_indices[3];
|
int vert_indices[3];
|
||||||
} r_tri_t;
|
} r_tri_t;
|
||||||
|
|
||||||
typedef struct new_model_s
|
typedef struct r_model_s
|
||||||
{
|
{
|
||||||
char *name;
|
char *name;
|
||||||
int num_verts;
|
int num_verts;
|
||||||
|
@ -66,12 +66,23 @@ typedef struct new_model_s
|
||||||
new_tri_t *triangles;
|
new_tri_t *triangles;
|
||||||
} r_model_t;
|
} r_model_t;
|
||||||
|
|
||||||
typedef struct new_skin_s
|
/*
|
||||||
|
* Note, colors are as follows.
|
||||||
|
*
|
||||||
|
* num_colors == -1: skin_color is used for all vertices.
|
||||||
|
* num_colors == 0: No color is used. (Same as -1 with skin_color 1 1 1)
|
||||||
|
* num_colors == num_verts: vert_colors is used.
|
||||||
|
*
|
||||||
|
* No other values are accepted.
|
||||||
|
*/
|
||||||
|
typedef struct r_skin_s
|
||||||
{
|
{
|
||||||
int texnum;
|
int texnum;
|
||||||
|
|
||||||
int num_colors;
|
int num_colors;
|
||||||
vec4_t *colors;
|
vec4_t *vert_colors;
|
||||||
vec4_t color; // Used if num_colors == -1
|
vec4_t skin_color;
|
||||||
|
|
||||||
int num_texcoords;
|
int num_texcoords;
|
||||||
vec2_t *texcoords;
|
vec2_t *texcoords;
|
||||||
int num_tri_indices;
|
int num_tri_indices;
|
||||||
|
|
Loading…
Reference in a new issue