From: Rudolf Polzer Date: Thu, 29 Jul 2010 16:57:08 +0000 (+0200) Subject: add more vertexes to the entity display to make it more visible (paint an X in its... X-Git-Tag: xonotic-v0.5.0~245^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a40dc77dd9d5bb6babd688ca4e756053fc5ad029;p=xonotic%2Fnetradiant.git add more vertexes to the entity display to make it more visible (paint an X in its middle) --- diff --git a/libs/entitylib.h b/libs/entitylib.h index 6602357b..2612ac2b 100644 --- a/libs/entitylib.h +++ b/libs/entitylib.h @@ -104,10 +104,11 @@ inline void aabb_testselect(const AABB& aabb, SelectionTest& test, SelectionInte inline void aabb_draw_wire(const Vector3 points[8]) { - unsigned int indices[24] = { + unsigned int indices[32] = { 0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7, + 0, 6, 1, 7, 2, 4, 3, 5 // X cross }; #if 1 glVertexPointer(3, GL_FLOAT, 0, points);