Exemplo n.º 1
0
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;
}
Exemplo n.º 3
0
void plDistributor::Reset()
{
    // Let stuff go...
    if( fSurfObjToDelete )
        fSurfObjToDelete->DeleteThis();

    // Then clear
    IClear();
}
Exemplo n.º 4
0
/*---------------------------------------------------------------------------*/
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;
}
Exemplo n.º 5
0
/*---------------------------------------------------------------------------*
 * 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;
}
Exemplo n.º 6
0
hsG3DDeviceSelector::~hsG3DDeviceSelector()
{
    IClear();
}
plConvexVolume::~plConvexVolume()
{
    IClear();
}
Exemplo n.º 8
0
plDistributor::plDistributor()
{
    IClear();
    fRand.SetSeed(uint32_t(this));
}
Exemplo n.º 9
0
void BarPane::Clear()
{
	while(GetFirstChild())
		RemoveChild(GetFirstChild());
	IClear();
}