#include <stdio.h>
-// http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=672
// this is the version to expect from template projects
#define PROJECT_VERSION 2
double I_FloatTime (void);
-void Error (char *error, ...);
-int CheckParm (char *check);
+void Error (const char *error, ...);
+int CheckParm (const char *check);
void ParseCommandLine (char *lpCmdLine);
-int ParseNum (char *str);
+int ParseNum (const char *str);
char* COM_Parse (char *data);
char* Get_COM_Token();
// entityw.c
//
void FillClassList (void);
-bool UpdateEntitySel(eclass_t *pec);
+bool UpdateEntitySel(eclass_t *pec);
void SetInspectorMode(int iType);
void SetSpawnFlags(void);
void GetSpawnFlags(void);
// curve brushes
-void Curve_MakeCurvedBrush (qboolean negative, qboolean top, qboolean bottom,
+void Curve_MakeCurvedBrush (qboolean negative, qboolean top, qboolean bottom,
qboolean s1, qboolean s2, qboolean s3, qboolean s4);
void Curve_Invert (void);
brush_t* AddBrushForPatch(patchMesh_t *pm, bool bLinkToWorld = true);
brush_t* Patch_GenericMesh(int nWidth, int nHeight, int nOrientation = 2, bool bDeleteSource = true, bool bOverride = false);
//void Patch_ReadFile (char *name);
-//void Patch_WriteFile (char *name);
+//void Patch_WriteFile (char *name);
void Patch_BuildPoints (brush_t *b);
void Patch_Move(patchMesh_t *p, const vec3_t vMove, bool bRebuild = false);
//++timo had to add a default value for bSnap (see Patch_ApplyMatrix call from Select_ApplyMatrix in select.cpp)
void EmitBrushPrimitTextureCoordinates(face_t *, winding_t *);
// EmitTextureCoordinates, is old code used for brush to brush primitive conversion
void EmitTextureCoordinates ( float *xyzst, qtexture_t *q, face_t *f);
+void Face_TexdefFromTextureCoordinates ( float *xyzst1, float *xyzst2, float *xyzst3, qtexture_t *q, face_t *f);
//void BrushPrimit_Parse(brush_t *);
// compute a fake shift scale rot representation from the texture matrix
void TexMatToFakeTexCoords( vec_t texMat[2][3], float shift[2], float *rot, float scale[2] );
//
// eclass.cpp
//
-#include "ieclass.h"
+#include "ieclass.h"
/*!
\todo those are at the eclass manager level, but some documentation about what they do will be helpful
void Set_Eclass_Found(qboolean);
qboolean Get_Parsing_Single();
-// .def loading, builtin module
+// .def loading, builtin module
#include "eclass_def.h"
extern CSynapseBuiltinClientDef eclass_def;
extern bool g_bHaveEClassExt;
extern _EClassTable g_EClassExtTable;
-
+
#include "iplugin.h"
// for interfaces, we require main plugin header included
#include "qerplugin.h"
extern void SaveWithRegion(char *name); // save the current map, sets the map name in the name buffer (deals with regioning)
extern void RunBsp (char *command);
extern void Map_Snapshot();
-//extern void WXY_Print();
+extern void WXY_Print();
extern void AddProp( void );
extern qboolean DoColor(int iIndex);
extern entity_t *edit_entity;