public OpenGLGraphics(IOpenGLRenderProvider provider) { if (provider == null) throw new ArgumentNullException ("provider"); _provider = provider; _store = new OpenGLShapeStore (_provider); _buffers.Add (new OpenGLBuffer ()); }
public OpenGLGraphics(OpenGLShapeStore store, IOpenGLRenderProvider renderProvider) { if (store == null) throw new ArgumentNullException ("store"); if (renderProvider == null) throw new ArgumentNullException ("renderProvider"); _provider = renderProvider; _store = store; _buffers.Add (new OpenGLBuffer ()); }
public OpenGLShapeStore(IOpenGLRenderProvider provider) { _provider = provider; var numShapeTypes = 7; _shapesByType = new List<OpenGLShape> [numShapeTypes]; for (var i = 0; i < numShapeTypes; i++) { _shapesByType [i] = new List<OpenGLShape> (); } _textures = new List<OpenGLTexture> (); }