1. void CSlotWindow::SetSlotLevelImage(DWORD dwIndex, CGraphicImage * levelImage)
  2. {
  3. TSlot * pSlot;
  4. if (!GetSlotPointer(dwIndex, &pSlot) || !levelImage)
  5. return;
  6. assert(NULL == pSlot->pInstanceLevel);
  7. pSlot->pInstanceLevel = CGraphicImageInstance::New();
  8. pSlot->pInstanceLevel->SetDiffuseColor(1.0, 1.0, 1.0, 1.0);
  9. pSlot->pInstanceLevel->SetImagePointer(levelImage);
  10. }