MCPcopy Create free account
hub / github.com/assimp/assimp / OnSetupMaterialView

Method OnSetupMaterialView

tools/assimp_view/Display.cpp:959–975  ·  view source on GitHub ↗

-------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

957}
958//-------------------------------------------------------------------------------
959int CDisplay::OnSetupMaterialView(MaterialInfo* pcNew)
960{
961 ai_assert(nullptr != pcNew);
962
963 if (m_pcCurrentMaterial == pcNew)return 2;
964
965 if (VIEWMODE_NODE == m_iViewMode)
966 ShowNormalUIComponents();
967
968 m_pcCurrentMaterial = pcNew;
969 SetViewMode(VIEWMODE_MATERIAL);
970
971 // redraw the color fields in the UI --- their purpose has possibly changed
972 UpdateColorFieldsInUI();
973 UpdateWindow(g_hDlg);
974 return 1;
975}
976//-------------------------------------------------------------------------------
977int CDisplay::OnSetupTextureView(TextureInfo* pcNew)
978{

Callers

nothing calls this directly

Calls 2

ShowNormalUIComponentsFunction · 0.85
UpdateColorFieldsInUIFunction · 0.85

Tested by

no test coverage detected