git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8241
d7cf8633-e32d-0410-b094-
e92efae38249
{
// check face type first
type = LittleLong(in->type);
{
// check face type first
type = LittleLong(in->type);
- if (type != Q3FACETYPE_POLYGON
+ if (type != Q3FACETYPE_FLAT
&& type != Q3FACETYPE_PATCH
&& type != Q3FACETYPE_MESH
&& type != Q3FACETYPE_FLARE)
&& type != Q3FACETYPE_PATCH
&& type != Q3FACETYPE_MESH
&& type != Q3FACETYPE_FLARE)
- case Q3FACETYPE_POLYGON:
case Q3FACETYPE_MESH:
// no processing necessary
break;
case Q3FACETYPE_MESH:
// no processing necessary
break;
out->num_firsttriangle = meshtriangles;
switch(type)
{
out->num_firsttriangle = meshtriangles;
switch(type)
{
- case Q3FACETYPE_POLYGON:
case Q3FACETYPE_MESH:
// no processing necessary, except for lightmap merging
for (j = 0;j < out->num_vertices;j++)
case Q3FACETYPE_MESH:
// no processing necessary, except for lightmap merging
for (j = 0;j < out->num_vertices;j++)
-#define Q3FACETYPE_POLYGON 1 // common
+#define Q3FACETYPE_FLAT 1 // common
#define Q3FACETYPE_PATCH 2 // common
#define Q3FACETYPE_MESH 3 // common
#define Q3FACETYPE_FLARE 4 // rare (is this ever used?)
#define Q3FACETYPE_PATCH 2 // common
#define Q3FACETYPE_MESH 3 // common
#define Q3FACETYPE_FLARE 4 // rare (is this ever used?)
- // Q3FACETYPE_POLYGON
- // polygon is simply a convex polygon, renderable as a mesh
+ // Q3FACETYPE_FLAT
+ // mesh is a collection of triangles on a plane, renderable as a mesh (NOT a polygon)
float lightmap_origin[3];
float lightmap_vectors[2][3];
float normal[3];
int unused1[2];
}
float lightmap_origin[3];
float lightmap_vectors[2][3];
float normal[3];
int unused1[2];
}
struct
{
// Q3FACETYPE_PATCH
struct
{
// Q3FACETYPE_PATCH