public GLParticleViewer(VrfGuiContext guiContext)
        {
            vrfGuiContext = guiContext;

            viewerControl = new GLViewerControl();

            viewerControl.GLLoad += OnLoad;
        }
Esempio n. 2
0
        public GLMaterialViewer()
        {
            viewerControl = new GLViewerControl();

            InitializeControl();

            viewerControl.GLLoad += OnLoad;
        }
Esempio n. 3
0
        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;
        }
Esempio n. 4
0
        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;
        }