Esempio n. 1
0
        // --------------------------------------------------------------------

        protected override void OnHandleDestroyed(EventArgs e)
        {
            base.OnHandleDestroyed(e);

            mPreview.Dispose();
            mPreview = null;
        }
Esempio n. 2
0
        // --------------------------------------------------------------------

        protected override Bitmap GeneratePreview(int guid)
        {
            SingleMeshPreviewRenderer meshPreview = (SingleMeshPreviewRenderer)mPreview;

            meshPreview.SetMesh(guid);
            meshPreview.SetFloorActive(false);
            meshPreview.Render();
            return(meshPreview.AsBitmap());
        }
Esempio n. 3
0
        // --------------------------------------------------------------------

        protected override Bitmap GeneratePreview(int guid)
        {
            SingleMeshPreviewRenderer meshPreview = (SingleMeshPreviewRenderer)mPreview;

            meshPreview.SetMaterial(guid);
            meshPreview.Render();
            Bitmap preview = meshPreview.AsBitmap();

            return(preview);
        }
Esempio n. 4
0
        // --------------------------------------------------------------------

        private void MaterialViewList_Load(object sender, EventArgs e)
        {
            if (!DesignMode)
            {
                mPreview = new SingleMeshPreviewRenderer();
                mPreview.Init(mPreviewSize, mPreviewSize, this.Handle);
                mPreview.Render();
                UpdateMaterialList(0, true);
            }
        }