21 #include "util3d/type.h"
22 #include "util3d/glsl.h"
59 void draw(GLubyte r, GLubyte g, GLubyte b, GLubyte a);
63 static const int strmax = 64;
75 return ((typ[0] ==
'A' && typ[1] ==
'A')
76 || (typ[0] ==
'S' && typ[1] ==
'F'));
79 return ((typ[0] ==
'L' && typ[1] ==
'F')
80 || (typ[0] ==
'M' && typ[1] ==
'O')
81 || (typ[0] ==
'@' && typ[1] ==
'*')
82 || (typ[0] ==
'@' && typ[1] ==
'C'));
85 return ((typ[0] ==
'@' && typ[1] ==
'#'));
89 int scan (FILE *, label&);
90 void parse(
const std::string&);
109 std::vector<label> labels;
An scm_label renders annotations on the sphere.
Definition: scm-label.hpp:52
scm_label(const std::string &, int)
Create a new label.
Definition: scm-label.cpp:229
~scm_label()
Finalize all OpenGL state.
Definition: scm-label.cpp:374
void draw(GLubyte r, GLubyte g, GLubyte b, GLubyte a)
Draw all annotations using the given color and transparency.
Definition: scm-label.cpp:398