void CellTex::Reset(){ cellTexCD.Reset(this, TRUE); // reset all pb2's DeleteReference(3); DeleteReference(4); DeleteReference(5); Init(); }
CellTex::CellTex() { // paramDlg = NULL; #ifdef SHOW_3DMAPS_WITH_2D texHandle = NULL; #endif pblock = NULL; xyzGen = NULL; texout = NULL; subTex[0] = subTex[1] = subTex[2] = NULL; cellTexCD.MakeAutoParamBlocks(this); // make and intialize paramblock2 Init(); InitializeCriticalSection(&csect); ivalid.SetEmpty(); }
ParamDlg* CellTex::CreateParamDlg(HWND hwMtlEdit, IMtlParams *imp) { // paramDlg = new CellTexParamDlg(this,imp,hwMtlEdit); // return paramDlg; // create the rollout dialogs xyzGenDlg = xyzGen->CreateParamDlg(hwMtlEdit, imp); IAutoMParamDlg* masterDlg = cellTexCD.CreateParamDlgs(hwMtlEdit, imp, this); texoutDlg = texout->CreateParamDlg(hwMtlEdit, imp); // add the secondary dialogs to the master masterDlg->AddDlg(xyzGenDlg); masterDlg->AddDlg(texoutDlg); // celTex_param_blk.SetUserDlgProc(new NoiseDlgProc(this)); return masterDlg; }
CellTex::CellTex() { // paramDlg = NULL; #ifdef SHOW_3DMAPS_WITH_2D texHandle = NULL; #endif pblock = NULL; xyzGen = NULL; texout = NULL; subTex[0] = subTex[1] = subTex[2] = NULL; cellTexCD.MakeAutoParamBlocks(this); // make and intialize paramblock2 Init(); InitializeCriticalSection(&csect); ivalid.SetEmpty(); mapValid.SetEmpty(); 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); }