//--------------------------------------------------------------------------------- // Draw Window //--------------------------------------------------------------------------------- void CFuiTBROS::Draw() { //---Refresh texture if changed ------------------------- VIEW_PORT vp; xCNV->GetViewPort(vp); UpdatePosition(); UpdateGround(); RefreshOPT(); CFuiWindow::Draw(); Cam->Projection(vp,inf.xOBJ); }
void cScenarioBallRL::Update(double time_elapsed) { if (time_elapsed > 0) { mBall.Update(time_elapsed); UpdateGround(); if (mBall.IsNewCycle()) { NewCycleUpdate(); } } }