Exemplo n.º 1
0
 // performance benchmarks show rendering directly not much slower than VertexArray or VBO)
 // (but we really ought to think about using at least a vertexarray, or ideally a vbo)
 public void Render()
 {
     g.PushMatrix();
     texture1.Apply();
     RenderUnitPart(unit.unitpart);
     g.PopMatrix();
     g.Bind2DTexture(0);
 }