Changeset 533 for abuse/trunk/src/seq.h
- Timestamp:
- Apr 22, 2011, 7:32:13 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/seq.h
r527 r533 30 30 int next_frame(short ¤t) { current++; if (current>=total) { current=0; return 0; } return 1; } 31 31 int last_frame(short ¤t) { current--; if (current<0) { current=total-1; return 0; } return 1; } 32 trans_image *get_frame(short current, int direction)32 TImage *get_frame(short current, int direction) 33 33 { if (direction>0) return cache.fig(seq[current])->forward; 34 34 else return cache.fig(seq[current])->backward; }
Note: See TracChangeset
for help on using the changeset viewer.