public void Render (DrawBatch drawBatch, CCTexture2D defaultTexture) { //device.Textures[0] = _texture ?? defaultTexture; //device.DrawUserIndexedPrimitives(PrimitiveType.TriangleList, _vertexBuffer, 0, _vertexBuffer.Length, _indexBuffer, 0, _indexBuffer.Length / 3); drawBatch.RenderBatch(PrimitiveType.TriangleList, 0, _indexBuffer.Length, _indexBuffer, 0, _vertexBuffer.Length, _vertexBuffer, _texture ?? defaultTexture); }