void nuiSWF::Play() { NGL_ASSERT(mpMovie && mpMovieInterface); mpMovieInterface->set_play_state(gameswf::character::PLAY); mLastTime = -1; StartAutoDraw(); }
void nuiSWF::SetFrameRate(float fps) { NGL_ASSERT(mpMovie && mpMovieInterface); mFPS = fps; if (IsPlaying()) { StopAutoDraw(); StartAutoDraw(); } }
///////////////////////////////////////////// // class nuiSpriteView : public nuiSimpleContainer nuiSpriteView::nuiSpriteView() { mLastTime = 0; if (SetObjectClass(_T("nuiSpriteView"))) { // Init attributes } StartAutoDraw(); }
guiOscillo::guiOscillo(const std::vector<std::vector<float> >& rData) : nuiWidget(), mrData(rData) { // Setting the object class is not mandatory here. // We use it in the css stylesheet to apply a decoration to the guiOscillo object. // We could set the object name instead (SetObjectName), it's nearly the same for that purpose // (except that, in that case, in the css stylesheet, the "guiOscillo" reference should be put between quotes. // Have a look to Gui.css, you've got some examples.) SetObjectClass(_T("guiOscillo")); StartAutoDraw(); }