no message

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@508 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2006-11-06 20:13:56 +00:00
parent f26e54566d
commit f495f8e833
4 changed files with 8 additions and 19 deletions
+5 -2
View File
@@ -15,10 +15,13 @@ void setarraypointers()
// leaves of all these functions, and are part of the cpu bottleneck on really slow
// machines, hence the macros.
#define vertf(v1, v2, v3, ls, t1, t2) { vertex &v = verts.add(); \
#define vertf(v1, v2, v3, ls, t1, t2) { \
vertex *buf = verts.getbuf(), &v = verts.add(); \
if(buf!=verts.getbuf()) setarraypointers(); \
v.u = t1; v.v = t2; \
v.x = v1; v.y = v2; v.z = v3; \
v.r = ls->r; v.g = ls->g; v.b = ls->b; v.a = 255; };
v.r = ls->r; v.g = ls->g; v.b = ls->b; v.a = 255; \
};
#define vert(v1, v2, v3, ls, t1, t2) { vertf((float)(v1), (float)(v2), (float)(v3), ls, t1, t2); }