small change to display list

This commit is contained in:
Mikko Mononen 2010-02-16 08:48:21 +00:00
parent f02c123001
commit e0fe72ebb0
2 changed files with 5 additions and 1 deletions

View File

@ -147,7 +147,7 @@ public:
virtual void begin(duDebugDrawPrimitives prim, float size = 1.0f); virtual void begin(duDebugDrawPrimitives prim, float size = 1.0f);
virtual void vertex(const float x, const float y, const float z, unsigned int color); virtual void vertex(const float x, const float y, const float z, unsigned int color);
virtual void vertex(const float* pos, unsigned int color); virtual void vertex(const float* pos, unsigned int color);
virtual void end() {} virtual void end();
void clear(); void clear();
void draw(struct duDebugDraw* dd); void draw(struct duDebugDraw* dd);
}; };

View File

@ -460,6 +460,10 @@ void duDisplayList::vertex(const float* pos, unsigned int color)
vertex(pos[0],pos[1],pos[2],color); vertex(pos[0],pos[1],pos[2],color);
} }
void duDisplayList::end()
{
}
void duDisplayList::draw(struct duDebugDraw* dd) void duDisplayList::draw(struct duDebugDraw* dd)
{ {
if (!m_size) if (!m_size)