// -------------------------------------------------------------------- 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.SetMesh(guid); meshPreview.SetFloorActive(false); meshPreview.Render(); return(meshPreview.AsBitmap()); }
// -------------------------------------------------------------------- protected override Bitmap GeneratePreview(int guid) { SingleMeshPreviewRenderer meshPreview = (SingleMeshPreviewRenderer)mPreview; meshPreview.SetMaterial(guid); meshPreview.Render(); Bitmap preview = meshPreview.AsBitmap(); return(preview); }
// -------------------------------------------------------------------- private void MaterialViewList_Load(object sender, EventArgs e) { if (!DesignMode) { mPreview = new SingleMeshPreviewRenderer(); mPreview.Init(mPreviewSize, mPreviewSize, this.Handle); mPreview.Render(); UpdateMaterialList(0, true); } }
// -------------------------------------------------------------------- private Bitmap GenerateMeshPreview(int guid) { mPreview.SetMesh(guid); mPreview.Render(); return(mPreview.AsBitmap()); }