API Functions

 

 


   animation is a set of bitmaps that replaces itself according
   to a given time sequence.
   A polygon can have a regular bitmap or it can have an animation.
   The idea is that one can just give a list of bitmaps with time sequence
   and the engine deals with all the rest.
   Animations are very useful when used on a rotated polygons.
   You can then define animation  sequences from 8 sides
   and the graphic engine sees that the right bitmap is
   shown each time.
   Each animation can include up to 8 different bitmap sequences
   This is used for representing a rotated polygon from 8 different sides.
   actually there are only 5 bitmaps sequences (the rest are figured automatically
   by the engine by mirroring some bitmaps)
   Here are the 5 constants that represent the 5 different list
#define  BITMAP_LIST_FRONT 1    a list of bitmaps representing the view from the front
#define  BITMAP_LIST_FRONT_SIDED 2    a list of bitmaps representing the view from the front-side (45 degrees) angle
#define  BITMAP_LIST_SIDE 3    a list of bitmaps representing the view from the side
#define  BITMAP_LIST_BACK_SIDED 4    a list of bitmaps representing the view from the back-side (135 degrees) angle
#define  BITMAP_LIST_BACK 5    a list of bitmaps representing the view from the back
  
   To understand animation better, just look at one of the sample worlds
   that contain an animation. Try playing with the list of bitmaps and the other params.


   

1. STATE_animation_is_animation

2. STATE_animation_get_handle

3. STATE_animation_get_first_animation

4. STATE_animation_get_next

5. STATE_animation_create

6. STATE_animation_add_bitmap

7. STATE_animation_remove_bitmap

8. STATE_animation_get_bitmap

9. STATE_animation_set_times

10. STATE_animation_get_times

11. STATE_animation_get_frame_time

12. STATE_animation_set_frame_time

13. STATE_animation_get_name

14. STATE_animation_set_name

15. STATE_animation_factor_speed

16. STATE_animation_set_speed

17. STATE_animation_delete_all

18. STATE_animation_delete

19. STATE_animation_set_save_flag

20. STATE_animation_get_save_flag

21. STATE_animation_get_number_of_frames

22. STATE_animation_get_number_of_bitmaps

23. STATE_animation_get_all_bitmaps

24. STATE_animation_is_part_of_the_last_world

25. STATE_animation_get_number_of_polygons_with_animation

26. STATE_animation_duplicate

27. STATE_animation_set_bitmap

28. STATE_animation_get_frame_bitmap_name

29. STATE_animation_get_frame_transparent_index

 

 

Go to page 1     Select API

 

Copyright © 2007 3DSTATE Corporation. www.3dstate.com