diff options
Diffstat (limited to 'common/polyset.h')
| -rwxr-xr-x | common/polyset.h | 60 | 
1 files changed, 30 insertions, 30 deletions
diff --git a/common/polyset.h b/common/polyset.h index 3ee8858..7b42f6e 100755 --- a/common/polyset.h +++ b/common/polyset.h @@ -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  | 
