glu/sgi: Initialize member of struct GridVertex.

This commit is contained in:
Vinson Lee 2009-12-29 20:45:24 -08:00
parent 5169775345
commit 97b899374c

View file

@ -38,7 +38,7 @@
struct GridVertex {
long gparam[2];
GridVertex( void ) {}
GridVertex( void ) { gparam[0] = 0, gparam[1] = 0; }
GridVertex( long u, long v ) { gparam[0] = u, gparam[1] = v; }
void set( long u, long v ) { gparam[0] = u, gparam[1] = v; }
long nextu() { return gparam[0]++; }