Files Classes Functions Hierarchy
#include <gobj.h>
Public Member Functions | |
| gobjglColor3f (floatc x_, floatc y_, floatc z_) | |
| gobjglColor3f (stringc &arg) | |
| Construct from string. | |
| boolc | serializeInverse (stringc &arg) |
| Construct from string. | |
| void | draw () |
| Draw the object. | |
Public Attributes | |
| float | x |
| The x coordinate. | |
| float | y |
| The y coordinate. | |
| float | z |
| The z coordinate. | |
Definition at line 73 of file gobj.h.
| gobjglColor3f::gobjglColor3f | ( | stringc & | arg | ) |
Construct from string.
Definition at line 235 of file gobj.cpp.
References asserteval, and serializeInverse().
00236 { 00237 asserteval(serializeInverse(arg)); 00238 }
| void gobjglColor3f::draw | ( | ) | [inline, virtual] |
Draw the object.
Implements gobj.
Definition at line 103 of file gobj.h.
References GOBJDEBUGCODE, x, y, and z.
Referenced by tessD2draw02mesh< TESS, PT, INDX >::draw().
00104 { GOBJDEBUGCODE glColor3f(x,y,z); }
Construct from string.
Definition at line 218 of file gobj.cpp.
References tokenizer::reset(), tokenizer::seq, stringfrom(), tokenizer::tokenize(), x, y, and z.
Referenced by gobjglColor3f().
00219 { 00220 tokenizer ss(arg); 00221 ss.tokenize(); 00222 if (ss.seq.size()!=3) 00223 return false; 00224 00225 ss.reset(); 00226 stringfrom(x,ss()); 00227 ++ss; 00228 stringfrom(y,ss()); 00229 ++ss; 00230 stringfrom(z,ss()); 00231 00232 return true; 00233 }
| float gobjglColor3f::x |
The x coordinate.
Definition at line 79 of file gobj.h.
Referenced by draw(), and serializeInverse().
| float gobjglColor3f::y |
The y coordinate.
Definition at line 81 of file gobj.h.
Referenced by draw(), and serializeInverse().
| float gobjglColor3f::z |
The z coordinate.
Definition at line 83 of file gobj.h.
Referenced by draw(), and serializeInverse().
1.5.8