/[enigma]/enigma/src/d_models.cc
ViewVC logotype

Diff of /enigma/src/d_models.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by dheck, Thu Mar 13 17:58:33 2003 UTC revision 1.6 by dheck, Tue May 13 18:55:05 2003 UTC
# Line 263  void Line 263  void
263  display::DefineShadedModel (  display::DefineShadedModel (
264      const char *name,      const char *name,
265      const char *model,      const char *model,
266      const char *shade)      const char *shadow)
267  {  {
268      DefineModel(name, new ShadedModel(MakeModel(model),      DefineModel(name, new ShadowModel(MakeModel(model),
269                                         MakeModel(shade)));                                        MakeModel(shadow)));
270  }  }
271    
272    
# Line 349  AliasModel::clone() Line 349  AliasModel::clone()
349  }  }
350    
351  Anim2d::Anim2d(AnimRep *r)  Anim2d::Anim2d(AnimRep *r)
352      : rep(r), curframe(0), frametime(0),  : rep(r), curframe(0), frametime(0),
353        finishedp(false), changedp(false), reversep(false),    finishedp(false), changedp(false), reversep(false),
354        is_sprite(false),    is_sprite(false),
355        callback(0)    callback(0)
356  {  {
357      rep->refcount++;      rep->refcount++;
358  }  }
# Line 368  void Anim2d::add_frame(Model *m, double Line 368  void Anim2d::add_frame(Model *m, double
368      rep->frames.push_back(new AnimFrame(m, duration));      rep->frames.push_back(new AnimFrame(m, duration));
369  }  }
370    
 double Anim2d::duration() const  
 {  
     return rep->duration();  
 }  
   
371  void Anim2d::draw(px::GC &gc, int x, int y)  void Anim2d::draw(px::GC &gc, int x, int y)
372  {  {
373      if (!finishedp) {      if (!finishedp) {
# Line 383  void Anim2d::draw(px::GC &gc, int x, int Line 378  void Anim2d::draw(px::GC &gc, int x, int
378  }  }
379                    
380  void  void
381  Anim2d::draw_shade (px::GC &gc, int x, int y)  Anim2d::draw_shadow (px::GC &gc, int x, int y)
382  {  {
383      if (!finishedp) {      if (!finishedp) {
384          AnimFrame *f =rep->frames[curframe];          AnimFrame *f =rep->frames[curframe];
385          f->model->draw_shade(gc,x,y);          f->model->draw_shadow(gc,x,y);
386      }      }
387  }  }
388    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26