libsegl/quader.cpp

40 lines
633 B
C++
Raw Normal View History

#include "quader.h"
namespace segl {
void Quader::clean() {
a.set(0.0f, 0.0f, 0.0f);
b = c = d = e = f = g = h = a;
}
void Quader::render() {
glBegin(GL_LINES);
glVertexP3D(a);
glVertexP3D(b);
glVertexP3D(b);
glVertexP3D(c);
glVertexP3D(c);
glVertexP3D(d);
glVertexP3D(d);
glVertexP3D(a);
glVertexP3D(e);
glVertexP3D(f);
glVertexP3D(f);
glVertexP3D(g);
glVertexP3D(g);
glVertexP3D(h);
glVertexP3D(h);
glVertexP3D(e);
glVertexP3D(a);
glVertexP3D(e);
glVertexP3D(b);
glVertexP3D(f);
glVertexP3D(c);
glVertexP3D(g);
glVertexP3D(d);
glVertexP3D(h);
glEnd();
}
} // namespace segl