void m4x4_transpose(m4x4_t matrix);
/*! invert an orthogonal 4x3 subset of a 4x4 matrix */
int m4x4_orthogonal_invert(m4x4_t matrix);
+/*! m4_det */
+float m4_det( m4x4_t mr );
/*! invert any m4x4 using Kramer's rule.. return 1 if matrix is singular, else return 0 */
int m4x4_invert(m4x4_t matrix);
int CopyLump_Allocate( bspHeader_t *header, int lump, void **dest, int size, int *allocationVariable )
{
- int length, offset;
-
/* get lump length and offset */
*allocationVariable = header->lumps[ lump ].length / size;
*dest = realloc(*dest, size * *allocationVariable);
float tests[ 4 ][ 2 ] = { { 0.0f, 0 }, { 1, 0 }, { 0, 1 }, { 1, 1 } };
trace_t trace;
float stackLightLuxels[ STACK_LL_SIZE ];
- vec3_t flood;
- float *floodlight;
/* bail if this number exceeds the number of raw lightmaps */
after the entire entity is parsed, the planenums and texinfos will be adjusted for the origin brush */
if( buildBrush->compileFlags & C_ORIGIN )
{
- char string[ 32 ];
vec3_t origin;
Sys_Printf( "Entity %i, Brush %i: origin brush detected\n",
continue;
/* fix the surface's normals */
- PicoFixSurfaceNormals( surface ); /* why did vortex comment this out? FIXME */
+ if( !(spawnFlags & 64) )
+ PicoFixSurfaceNormals( surface );
/* allocate a surface (ydnar: gs mods) */
ds = AllocDrawSurface( SURFACE_TRIANGLES );
void CountVisportals_r(node_t *node)
{
- int i, s;
+ int s;
portal_t *p;
winding_t *w;
- vec3_t normal;
- vec_t dist;
// decision node
if (node->planenum != PLANENUM_LEAF) {
void CountSolidFaces_r (node_t *node)
{
- int i, s;
+ int s;
portal_t *p;
winding_t *w;
*/
void NumberLeafs_r (node_t *node, int c)
{
+#if 0
portal_t *p;
-
+#endif
if ( node->planenum != PLANENUM_LEAF ) {
// decision node
node->cluster = -99;
#include "vfs.h"
#include "png.h"
#include "md4.h"
-
+#include "radiant_jpeglib.h"
#include <stdlib.h>