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 ());
        }
Example #2
0
        public OpenGLGraphics(IOpenGLRenderProvider provider)
        {
            if (provider == null) throw new ArgumentNullException ("provider");

            _provider = provider;
            _store = new OpenGLShapeStore (_provider);

            _buffers.Add (new OpenGLBuffer ());
        }