Itsa me, quake3io!
This commit is contained in:
parent
dbe4ddb103
commit
5b755058f5
1409 changed files with 798983 additions and 798983 deletions
60
common/polyset.h
Normal file → Executable file
60
common/polyset.h
Normal file → Executable file
|
@ -19,33 +19,33 @@ along with Foobar; if not, write to the Free Software
|
|||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
===========================================================================
|
||||
*/
|
||||
#ifndef __POLYSET_H__
|
||||
#define __POLYSET_H__
|
||||
|
||||
#define POLYSET_MAXTRIANGLES 4096
|
||||
#define POLYSET_MAXPOLYSETS 64
|
||||
|
||||
typedef float st_t[2];
|
||||
typedef float rgb_t[3];
|
||||
|
||||
typedef struct {
|
||||
vec3_t verts[3];
|
||||
vec3_t normals[3];
|
||||
st_t texcoords[3];
|
||||
} triangle_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char name[100];
|
||||
char materialname[100];
|
||||
triangle_t *triangles;
|
||||
int numtriangles;
|
||||
} polyset_t;
|
||||
|
||||
polyset_t *Polyset_LoadSets( const char *file, int *numpolysets, int maxTrisPerSet );
|
||||
polyset_t *Polyset_CollapseSets( polyset_t *psets, int numpolysets );
|
||||
polyset_t *Polyset_SplitSets( polyset_t *psets, int numpolysets, int *pNumNewPolysets, int maxTris );
|
||||
void Polyset_SnapSets( polyset_t *psets, int numpolysets );
|
||||
void Polyset_ComputeNormals( polyset_t *psets, int numpolysets );
|
||||
|
||||
#endif
|
||||
#ifndef __POLYSET_H__
|
||||
#define __POLYSET_H__
|
||||
|
||||
#define POLYSET_MAXTRIANGLES 4096
|
||||
#define POLYSET_MAXPOLYSETS 64
|
||||
|
||||
typedef float st_t[2];
|
||||
typedef float rgb_t[3];
|
||||
|
||||
typedef struct {
|
||||
vec3_t verts[3];
|
||||
vec3_t normals[3];
|
||||
st_t texcoords[3];
|
||||
} triangle_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char name[100];
|
||||
char materialname[100];
|
||||
triangle_t *triangles;
|
||||
int numtriangles;
|
||||
} polyset_t;
|
||||
|
||||
polyset_t *Polyset_LoadSets( const char *file, int *numpolysets, int maxTrisPerSet );
|
||||
polyset_t *Polyset_CollapseSets( polyset_t *psets, int numpolysets );
|
||||
polyset_t *Polyset_SplitSets( polyset_t *psets, int numpolysets, int *pNumNewPolysets, int maxTris );
|
||||
void Polyset_SnapSets( polyset_t *psets, int numpolysets );
|
||||
void Polyset_ComputeNormals( polyset_t *psets, int numpolysets );
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue