ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libgender/entity.C
(Generate patch)

Comparing libgender/entity.C (file contents):
Revision 1.52 by root, Fri Oct 29 22:32:49 2004 UTC vs.
Revision 1.53 by root, Fri Oct 29 23:19:08 2004 UTC

425 425
426#define SIZE 33 426#define SIZE 33
427 427
428struct geometry_heightfield::node 428struct geometry_heightfield::node
429{ 429{
430 vertex_t2f_n3f_v3f v[SIZE*SIZE];
431 gl::vertex_buffer vb; 430 gl::vertex_buffer vb;
432 gl::index_buffer ib; 431 gl::index_buffer ib;
432 GLushort *ibp;
433
434 node (vertex_t2f_n3f_v3f v[SIZE * SIZE]);
433}; 435};
436
437geometry_heightfield::node::node (vertex_t2f_n3f_v3f v[SIZE * SIZE])
438{
439 vb.set (v, SIZE * SIZE);
440 ib.set (SIZE * SIZE * 4);
441 ibp = (GLushort *)ib.map ();
442}
434 443
435geometry_heightfield::geometry_heightfield () 444geometry_heightfield::geometry_heightfield ()
436{ 445{
437 update (); 446 update ();
438} 447}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines