public GLParticleViewer(VrfGuiContext guiContext) { vrfGuiContext = guiContext; viewerControl = new GLViewerControl(); viewerControl.GLLoad += OnLoad; }
public GLMaterialViewer() { viewerControl = new GLViewerControl(); InitializeControl(); viewerControl.GLLoad += OnLoad; }
protected GLSceneViewer(VrfGuiContext guiContext, Frustum cullFrustum) { Scene = new Scene(guiContext); ViewerControl = new GLViewerControl(); lockedCullFrustum = cullFrustum; InitializeControl(); ViewerControl.AddCheckBox("Show Grid", ShowBaseGrid, (v) => ShowBaseGrid = v); ViewerControl.GLLoad += OnLoad; }
protected GLSceneViewer(VrfGuiContext guiContext) { Scene = new Scene(guiContext); ViewerControl = new GLViewerControl(); InitializeControl(); ViewerControl.AddCheckBox("Show Static Octree", showStaticOctree, (v) => showStaticOctree = v); ViewerControl.AddCheckBox("Show Dynamic Octree", showDynamicOctree, (v) => showDynamicOctree = v); ViewerControl.AddCheckBox("Lock Cull Frustum", false, (v) => { if (v) { lockedCullFrustum = Scene.MainCamera.ViewFrustum.Clone(); } else { lockedCullFrustum = null; } }); ViewerControl.GLLoad += OnLoad; }