/// <summary>Create a new OpenGlRenderer ready to start rendering a model.</summary> /// <param name="modelContext">OpenGL model context instance containing details about the OpenGL state.</param> public OpenGlRenderer(OpenGlModelContext modelContext) { this.modelContext = modelContext; this.modelRoot = null; this.currentObject = null; this.currentObjectHasOwnCommands = false; this.materialDefs = new Dictionary <int, OpenGlMaterial>(); }