1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
void wireframe(HDC hdc){
//vertices coordinates:
const int verticescount = 8;
Vertex vertices[verticescount] = {Vertex(-5.0f, -5.0f, 5.0f, 1.0f),
Vertex(5.0f, -5.0f, 5.0f, 1.0f),
Vertex(5.0f, 5.0f, 5.0f, 1.0f),
Vertex(-5.0f, 5.0f, 5.0f, 1.0f),
Vertex(-5.0f, -5.0f, -5.0f, 1.0f),
Vertex(5.0f, -5.0f, -5.0f, 1.0f),
Vertex(5.0f, 5.0f, -5.0f, 1.0f),
Vertex(-5.0f, 5.0f, -5.0f, 1.0f)};
}
|