display entity boxes as [/]. Second line not needed.
This commit is contained in:
parent
fa0fce3cfa
commit
71271751d1
|
|
@ -104,11 +104,12 @@ inline void aabb_testselect(const AABB& aabb, SelectionTest& test, SelectionInte
|
||||||
|
|
||||||
inline void aabb_draw_wire(const Vector3 points[8])
|
inline void aabb_draw_wire(const Vector3 points[8])
|
||||||
{
|
{
|
||||||
unsigned int indices[32] = {
|
unsigned int indices[26] = {
|
||||||
0, 1, 1, 2, 2, 3, 3, 0,
|
0, 1, 1, 2, 2, 3, 3, 0,
|
||||||
4, 5, 5, 6, 6, 7, 7, 4,
|
4, 5, 5, 6, 6, 7, 7, 4,
|
||||||
0, 4, 1, 5, 2, 6, 3, 7,
|
0, 4, 1, 5, 2, 6, 3, 7,
|
||||||
0, 6, 1, 7, 2, 4, 3, 5 // X cross
|
// 0, 6, 1, 7, 2, 4, 3, 5 // X cross
|
||||||
|
1, 7 // diagonal line (connect mins to maxs corner)
|
||||||
};
|
};
|
||||||
#if 1
|
#if 1
|
||||||
glVertexPointer(3, GL_FLOAT, 0, points);
|
glVertexPointer(3, GL_FLOAT, 0, points);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user