Splat::Splat() { #ifdef SHOW_3DMAPS_WITH_2D texHandle = NULL; #endif subTex[0] = subTex[1] = NULL; pblock = NULL; xyzGen = NULL; // paramDlg = NULL; mapOn[0] = mapOn[1] = 1; splatCD.MakeAutoParamBlocks(this); // make and intialize paramblock2 Init(); fileVersion = 0; }
// This method gets called when the material or texture is to be displayed // in the material editor parameters area. ParamDlg* Splat::CreateParamDlg(HWND hwMtlEdit, IMtlParams *imp) { // Allocate a new instance of ParamDlg to manage the UI. This will // create the rollup page in the materials editor. // SplatDlg *splatDlg = new SplatDlg(hwMtlEdit, imp, this); // Update the dialog display with the proper values of the texture. // splatDlg->LoadDialog(); // paramDlg = splatDlg; // return splatDlg; xyzGenDlg = xyzGen->CreateParamDlg(hwMtlEdit, imp); IAutoMParamDlg* masterDlg = splatCD.CreateParamDlgs(hwMtlEdit, imp, this); // add the secondary dialogs to the master masterDlg->AddDlg(xyzGenDlg); splat_param_blk.SetUserDlgProc(new SplatDlgProc(this)); return masterDlg; }
Splat::Splat() { #ifdef SHOW_3DMAPS_WITH_2D texHandle = NULL; #endif subTex[0] = subTex[1] = NULL; pblock = NULL; xyzGen = NULL; // paramDlg = NULL; mapOn[0] = mapOn[1] = 1; splatCD.MakeAutoParamBlocks(this); // make and intialize paramblock2 Init(); fileVersion = 0; MaxSDK::TexmapThreadSafe* pTexmapThreadSafe = static_cast<MaxSDK::TexmapThreadSafe*>(GetInterface(ITEXMAP_THREAD_SAFE)); DbgAssert(pTexmapThreadSafe != nullptr); pTexmapThreadSafe->SetFunctionFlag(MaxSDK::TexmapThreadSafe::FunctionEvalMono, true); pTexmapThreadSafe->SetFunctionFlag(MaxSDK::TexmapThreadSafe::FunctionEvalColor, true); }
void Splat::Reset() { splatCD.Reset(this, TRUE); // reset all pb2's DeleteReference(2); DeleteReference(3); Init(); }