36 lines
594 B
C++
36 lines
594 B
C++
#include "quader.h"
|
|
|
|
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();
|
|
}
|