Exemple #1
0
        // --------------------------------------------------------------------

        private Bitmap GenerateMaterialPreview(int guid)
        {
            mPreview.SetMaterial(guid);
            mPreview.Render();
            Bitmap preview = mPreview.AsBitmap();

            return(preview);
        }
        // --------------------------------------------------------------------

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

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

            return(preview);
        }