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

Go to the source code of this file.

Classes

struct  vertmodel
 
struct  vertmodel::vert
 
struct  vertmodel::vvert
 
struct  vertmodel::vvertn
 
struct  vertmodel::vvertbump
 
struct  vertmodel::tcvert
 
struct  vertmodel::bumpvert
 
struct  vertmodel::tri
 
struct  vertmodel::vbocacheentry
 
struct  vertmodel::vertmesh
 
struct  vertmodel::tag
 
struct  vertmodel::vertmeshgroup
 
struct  vertloader< MDL >
 
struct  vertcommands< MDL >
 

Macros

#define ipvert(attrib)   v.attrib.lerp(vert1[i].attrib, vert2[i].attrib, as.cur.t)
 
#define ipbvert(attrib, type)   v.attrib.lerp(bvert1[i].attrib, bvert2[i].attrib, as.cur.t)
 
#define ipvertp(attrib)   v.attrib.lerp(pvert1[i].attrib, pvert2[i].attrib, as.prev.t).lerp(vec().lerp(vert1[i].attrib, vert2[i].attrib, as.cur.t), as.interp)
 
#define ipbvertp(attrib, type)   v.attrib.lerp(type().lerp(bpvert1[i].attrib, bpvert2[i].attrib, as.prev.t), type().lerp(bvert1[i].attrib, bvert2[i].attrib, as.cur.t), as.interp)
 
#define iploop(type, body)
 
#define FILLVDATA(type)
 
#define GENVBO(type)
 

Class Documentation

struct vertmodel::vert
Class Members
vec norm
vec pos
struct vertmodel::tcvert
Class Members
vec2 tc
struct vertmodel::bumpvert
Class Members
vec4 tangent
struct vertmodel::tri
Class Members
ushort vert[3]

Macro Definition Documentation

#define FILLVDATA (   type)
Value:
do { \
loopv(meshes) ((vertmesh *)meshes[i])->fillverts((type *)vdata); \
} while(0)
#define loopv(v)
Definition: cube_loops.hpp:21

Referenced by vertmodel::vertmeshgroup::genvbo().

#define GENVBO (   type)
Value:
do { \
vector<type> vverts; \
loopv(meshes) vlen += ((vertmesh *)meshes[i])->genvbo(idxs, vlen, vverts, htdata, htlen); \
glBufferData_(GL_ARRAY_BUFFER, vverts.length()*sizeof(type), vverts.getbuf(), GL_STATIC_DRAW); \
} while(0)
GLintptr GLsizeiptr length
Definition: glexts.hpp:354
PFNGLBUFFERDATAPROC glBufferData_
Definition: rendergl.cpp:126
int vverts
Definition: octarender.cpp:1235
void genvbo(int type, void *buf, int len, vtxarray **vas, int numva)
Definition: octarender.cpp:80
#define loopv(v)
Definition: cube_loops.hpp:21

Referenced by vertmodel::vertmeshgroup::genvbo().

#define ipbvert (   attrib,
  type 
)    v.attrib.lerp(bvert1[i].attrib, bvert2[i].attrib, as.cur.t)
#define ipbvertp (   attrib,
  type 
)    v.attrib.lerp(type().lerp(bpvert1[i].attrib, bpvert2[i].attrib, as.prev.t), type().lerp(bvert1[i].attrib, bvert2[i].attrib, as.cur.t), as.interp)
#define iploop (   type,
  body 
)
Value:
{ \
type &v = ((type * RESTRICT)vdata)[i]; \
body; \
}
int numverts
Definition: explosion.cpp:35
else loopi(numargs)
Definition: command.cpp:3019
#define RESTRICT
Definition: cube_tools.hpp:18

Referenced by vertmodel::vertmesh::interpverts().

#define ipvert (   attrib)    v.attrib.lerp(vert1[i].attrib, vert2[i].attrib, as.cur.t)
#define ipvertp (   attrib)    v.attrib.lerp(pvert1[i].attrib, pvert2[i].attrib, as.prev.t).lerp(vec().lerp(vert1[i].attrib, vert2[i].attrib, as.cur.t), as.interp)