void hsG3DDeviceSelector::Enumerate(hsWinRef winRef) { IClear(); #ifdef HS_BUILD_FOR_WIN32 /// 9.6.2000 - Create the class to use as our temporary window class WNDCLASS tempClass; strcpy( fTempWinClass, "DSTestClass" ); memset( &tempClass, 0, sizeof( tempClass ) ); tempClass.lpfnWndProc = DefWindowProc; tempClass.hInstance = GetModuleHandle( nil ); tempClass.hbrBackground = (HBRUSH)GetStockObject( BLACK_BRUSH ); tempClass.lpszClassName = fTempWinClass; uint16_t ret = RegisterClass(&tempClass); hsAssert(ret, "Cannot create temporary window class to test for device modes" ); #endif ITryDirect3DTnL(winRef); #ifdef HS_BUILD_FOR_WIN32 /// Get rid of the class UnregisterClass( fTempWinClass, GetModuleHandle( nil ) ); #endif }
void plConvexVolume::SetNumPlanesAndClear(const uint32_t num) { IClear(); //fFlags = new uint32_t[num]; fLocalPlanes = new hsPlane3[num]; fWorldPlanes = new hsPlane3[num]; fNumPlanes = num; }
void plDistributor::Reset() { // Let stuff go... if( fSurfObjToDelete ) fSurfObjToDelete->DeleteThis(); // Then clear IClear(); }
/*---------------------------------------------------------------------------*/ static T_uezError LPC1756_Timer3_InitializeWorkspace(void *aWorkspace) { T_LPC1756_Timer_Workspace *p = (T_LPC1756_Timer_Workspace *)aWorkspace; p->iReg = (T_LPC1756_Timer_Registers *)TIM3_BASE; p->iInfo = &G_Timer3_Info; IClear(p->iCallbacks); G_Timer3_Workspace = p; return UEZ_ERROR_NONE; }
/*---------------------------------------------------------------------------* * Routine: LPC17xx_40xx_Timer2_InitializeWorkspace *---------------------------------------------------------------------------* * Description: * Setup the LPC17xx_40xx Timer1 workspace. * Inputs: * void *aW -- Particular Timer workspace * Outputs: * T_uezError -- Error code *---------------------------------------------------------------------------*/ T_uezError LPC17xx_40xx_Timer2_InitializeWorkspace(void *aWorkspace) { T_LPC17xx_40xx_Timer_Workspace *p = (T_LPC17xx_40xx_Timer_Workspace *)aWorkspace; p->iReg = (T_LPC17xx_40xx_Timer_Registers *)LPC_TIM2_BASE; p->iInfo = &G_Timer2_Info; IClear(p->iCallbacks); G_Timer2_Workspace = p; return UEZ_ERROR_NONE; }
hsG3DDeviceSelector::~hsG3DDeviceSelector() { IClear(); }
plConvexVolume::~plConvexVolume() { IClear(); }
plDistributor::plDistributor() { IClear(); fRand.SetSeed(uint32_t(this)); }
void BarPane::Clear() { while(GetFirstChild()) RemoveChild(GetFirstChild()); IClear(); }