Ejemplo n.º 1
0
void nuiSWF::Play()
{
  NGL_ASSERT(mpMovie && mpMovieInterface);
  mpMovieInterface->set_play_state(gameswf::character::PLAY);
  mLastTime = -1;
  StartAutoDraw();
}
Ejemplo n.º 2
0
void nuiSWF::SetFrameRate(float fps)
{
  NGL_ASSERT(mpMovie && mpMovieInterface);
  mFPS = fps;
  if (IsPlaying())
  {
    StopAutoDraw();
    StartAutoDraw();
  }
}
Ejemplo n.º 3
0
/////////////////////////////////////////////
// class nuiSpriteView : public nuiSimpleContainer
nuiSpriteView::nuiSpriteView()
{
  mLastTime = 0;
  if (SetObjectClass(_T("nuiSpriteView")))
  {
    // Init attributes
  }
  
  StartAutoDraw();
}
Ejemplo n.º 4
0
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();
}