70QuadNode::QuadNode(
BaseNode* _parent,
71 const std::string& _name )
94 PointVector::const_iterator p_it = point_.begin(), p_end = point_.end();
96 for ( ; p_it != p_end; ++p_it )
115availableDrawModes()
const
119 drawModes |= DrawModes::WIREFRAME;
120 drawModes |= DrawModes::HIDDENLINE;
121 drawModes |= DrawModes::SOLID_FLAT_SHADED;
135 if (_drawMode & DrawModes::WIREFRAME ||
136 _drawMode & DrawModes::HIDDENLINE )
140 glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
142 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
146 if (_drawMode & DrawModes::SOLID_FLAT_SHADED ||
147 _drawMode & DrawModes::HIDDENLINE )
156 if (_drawMode & DrawModes::SOLID_FACES_COLORED)
182QuadNode::draw_faces()
189 for ( ; i < point_.size(); i += 4, j += 1 )
207QuadNode::draw_wireframe()
210 for (
unsigned int i = 0; i < point_.size(); ++i )
static void enable(GLenum _cap, bool _warnRemoved=true)
replaces glEnable, but supports locking
void pick_set_name(size_t _idx)
sets the current name/color (like glLoadName(_idx))
bool pick_set_maximum(size_t _idx)
Set the maximal number of primitives/components of your object.
static void depthRange(GLclampd _zNear, GLclampd _zFar)
replaces glDepthRange, supports locking
static void disable(GLenum _cap, bool _warnRemoved=true)
replaces glDisable, but supports locking
static void shadeModel(GLenum _mode)
replaces glShadeModel, supports locking
vector_type & maximize(const vector_type &_rhs)
maximize values: same as *this = max(*this, _rhs), but faster
vector_type & minimize(const vector_type &_rhs)
minimize values: same as *this = min(*this, _rhs), but faster
PickTarget
What target to use for picking.
Namespace providing different geometric functions concerning angles.
void glNormal(const Vec3f &_n)
Wrapper: glNormal for Vec3f.
void glVertex(const Vec2i &_v)
Wrapper: glVertex for Vec2i.
VectorT< double, 3 > Vec3d