Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Variables
obj.hpp File Reference
#include "inexor/model/vertmodel.hpp"

Go to the source code of this file.

Classes

struct  obj
 
struct  obj::objmeshgroup
 

Macros

#define STARTMESH
 
#define FLUSHMESH
 

Variables

vertcommands< objobjcommands
 

Macro Definition Documentation

#define FLUSHMESH
Value:
do { \
curmesh->numverts = verts.length(); \
if(verts.length()) \
{ \
curmesh->verts = new vert[verts.length()]; \
memcpy(curmesh->verts, verts.getbuf(), verts.length()*sizeof(vert)); \
curmesh->tcverts = new tcvert[verts.length()]; \
memcpy(curmesh->tcverts, tcverts.getbuf(), tcverts.length()*sizeof(tcvert)); \
} \
curmesh->numtris = tris.length(); \
if(tris.length()) \
{ \
curmesh->tris = new tri[tris.length()]; \
memcpy(curmesh->tris, tris.getbuf(), tris.length()*sizeof(tri)); \
} \
if(attrib[2].empty()) \
{ \
if(smooth <= 1) curmesh->smoothnorms(smooth); \
else curmesh->buildnorms(); \
} \
} while(0)
void smooth()
Definition: octaedit.cpp:1942
if(NOT DEFINED PROJECT_ARCH) message(FATAL_ERROR"You are generating from the wrong folder! \"Where is the Source
Definition: CMakeLists.txt:2
struct sphere::vert * verts
static void attrib(T x)
Definition: glemu.hpp:106

Referenced by obj::objmeshgroup::load().

#define STARTMESH
Value:
do { \
vertmesh &m = *new vertmesh; \
m.group = this; \
m.name = meshname[0] ? newstring(meshname) : NULL; \
meshes.add(&m); \
curmesh = &m; \
verthash.clear(); \
verts.setsize(0); \
tcverts.setsize(0); \
tris.setsize(0); \
} while(0)
#define NULL
Definition: cube_types.hpp:35
struct sphere::vert * verts
char * newstring(size_t l)
Definition: cube_tools.hpp:71

Referenced by obj::objmeshgroup::load().

Variable Documentation

vertcommands<obj> objcommands