public void setViewport()
        {
            GodzUtil.AddViewport(pictureBox1.Handle);

            TabPanelData data = mMainForm.getTabPanel();

            data.mActiveLayer   = data.mWorld.addLayer("Default");
            data.mPrimaryCamera = data.mActiveLayer.spawnCamera(ref zero, ref zero);
            data.mPrimaryCamera.GrabFocus(); //make this camera primary
        }
        public void setViewport()
        {
            GodzUtil.AddViewport(pictureBox1.Handle);
            GodzUtil.SetBackgroundColor(pictureBox1.Handle, 162, 162, 162);

            TabPanelData data = mMainForm.getTabPanel();

            data.mActiveLayer   = data.mWorld.addLayer("Default");
            data.mPrimaryCamera = data.mActiveLayer.spawnCamera(ref zero, ref zero);
            data.mPrimaryCamera.GrabFocus(); //make this camera primary
            mSceneCamera = data.mPrimaryCamera;

            data.mSun = (GodzGlue.SunLight)data.mActiveLayer.spawnActor("WSunLight", ref zero, ref zero);

            Vector3 sunspot = new Vector3(0.08508922f, -0.4238535f, 0.9017249f);

            data.mSun.setLookAt(sunspot);

            // Hide the sunlight icon in this scene
            data.mSun.hideEditorMaterial();
            data.mSun.setSunLight();
        }
        private void submitChanges()
        {
            TabPanelData       data = mMainForm.getTabPanel();
            DatabaseObjectInfo inf  = DatabaseObjectRegistry.get(data.mSelectedEntity);

            if (inf.locked)
            {
                //Update the database entry for this item
                Editor.UpdateEntity(data.mSelectedEntity.getLayer().getName(), data.mSelectedEntity);

                //remove from the modified actors list
                modifiedActorList.Remove(data.mSelectedEntity);
            }
            else
            {
                MessageBox.Show("Changes cannot be submitted for an unlocked object");
            }
        }