Changeset 541 for abuse/trunk/src/seq.h
- Timestamp:
- Apr 24, 2011, 10:33:40 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/seq.h
r533 r541 13 13 14 14 #include "image.h" 15 #include "transimage.h" 15 16 #include "items.h" 16 #include "timage.h"17 17 #include "cache.h" 18 18 19 #include <stdarg.h> 19 20 … … 30 31 int next_frame(short ¤t) { current++; if (current>=total) { current=0; return 0; } return 1; } 31 32 int last_frame(short ¤t) { current--; if (current<0) { current=total-1; return 0; } return 1; } 32 T Image *get_frame(short current, int direction)33 TransImage *get_frame(short current, int direction) 33 34 { if (direction>0) return cache.fig(seq[current])->forward; 34 35 else return cache.fig(seq[current])->backward; }
Note: See TracChangeset
for help on using the changeset viewer.