• allegro5.a5_display
  • allegro5.a5_file
  • allegro5.a5_font
  • allegro5.a5_image
  • allegro5.a5_joystick
  • allegro5.a5_main
  • allegro5.a5_misc
  • allegro5.a5_opengl
  • allegro5.a5_shader
  • allegro5.a5_sound
  • allegro5.a5_thread
  • allegro5.a5_triangles
  • animation
  • array
  • atlas
  • buffer
  • color
  • common
  • csg.csg_aabb
  • csg.csg
  • csg.csg_octree
  • csg.csg_shapes
  • csg.csg_test
  • data
  • display
  • exception
  • file
  • font
  • glsl
  • grid
  • hash
  • image
  • image_op
  • index
  • ini
  • isometric
  • joystick
  • keyboard
  • land
  • layer
  • list
  • log
  • main
  • map
  • mem
  • mouse
  • net
  • noise
  • openglutil
  • perlin
  • pixelmask
  • plasma
  • pool
  • protobuf
  • queue
  • random
  • runner
  • shader
  • sound
  • sprite
  • thread
  • tilegrid
  • triangles
  • util2d
  • util3d
  • util
  • view
  • voronoi
  • widget.base
  • widget.board
  • widget.book
  • widget.box
  • widget.button
  • widget.checkbox
  • widget.container
  • widget.edit
  • widget.gul
  • widget.hbox
  • widget.layout
  • widget
  • widget.menu
  • widget.mover
  • widget.panel
  • widget.scrollbar
  • widget.scrolling
  • widget.sizer
  • widget.slider
  • widget.spin
  • widget.text
  • widget.theme
  • widget.vbox
  • widget.widget_list
  • yaml.external
  • yaml.internal
  • yaml
  • yaml.xml

land.animation

LandAnimation

land_animation_new

Parameters: LandArray * frames

Returns: LandAnimation*

Ownership of the frames array is transferred to the animation - destroying the animation later will destroy the array.

land_animation_destroy

Parameters: LandAnimation * self

land_animation_get_frame

Parameters: LandAnimation * self, int i

Returns: LandImage*

land_animation_length

Parameters: LandAnimation * self

Returns: int

land_animation_add_frame

Parameters: LandAnimation * self, LandImage * frame

land_animation_load_cb

Parameters: char const * pattern, void(* cb)(LandImage * image, void * data), void * data

Returns: LandAnimation*

Create a new animation from all files matching the pattern, sorted alphabetically. The callback function, if present, is called on each frame.

land_animation_draw_frame

Parameters: LandAnimation * self, int i, float x, float y

land_animation_draw_frame_rotated

Parameters: LandAnimation * self, int i, float x, float y, float angle

land_animation_draw_frame_scaled_rotated

Parameters: LandAnimation * self, int i, float x, float y, float xs, float ys, float angle

land_animation_mirror

Parameters: LandAnimation * self

Assuming the animation is like this make it -> like this: 1 -> 1 1 2 -> 1 2 1 2 3 -> 1 2 3 2 1 2 3 4 -> 1 2 3 4 3 2 1 2 3 4 5 -> 1 2 3 4 5 4 3 2 …

land_animation_load_on_demand

Parameters: LandAnimation * self

land_animation_load_async

Parameters: LandAnimation * self


Generated: Thu 27 Feb 2020 10:49:37 PM EST