X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fimmediate.cpp;h=cf1be08ed7204209d0d572b851ce76b7c58469ff;hp=e12ac9b53ca01ec2b3d9b73a86898605d60c724d;hb=HEAD;hpb=dc1d1159a61f378bda11e5989ad694a86b9a3c77 diff --git a/source/immediate.cpp b/source/immediate.cpp deleted file mode 100644 index e12ac9b5..00000000 --- a/source/immediate.cpp +++ /dev/null @@ -1,33 +0,0 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#include "immediate.h" - -namespace Msp { -namespace GL { - -Immediate::Immediate(VertexFormat f): - PrimitiveBuilder(array), - array(f) -{ } - -void Immediate::end_() -{ - array.apply(); - draw_elements(type, indices.size(), &indices[0]); - - array.clear(); - indices.clear(); -} - -void Immediate::element_(unsigned i) -{ - indices.push_back(i); -} - -} // namespace GL -} // namespace Msp