• 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.view

LandView

land_view_new

Parameters: int x, int y, int w, int h

Returns: LandView*

Specify the view rectangle on the screen.

land_view_destroy

Parameters: LandView * self

land_view_scroll

Parameters: LandView * self, float dx, float dy

Scroll the view by the given amount of screen pixels.

land_view_scroll_to

Parameters: LandView * self, float x, float y

land_view_scale

Parameters: LandView * self, float sx, float sy

land_view_zoom

Parameters: LandView * self, float zx, float zy

land_view_scroll_center

Parameters: LandView * self, float x, float y

Given two absolute map coordinates, make them the center of the view.

land_view_scroll_center_on_screen

Parameters: LandView * self, float x, float y

Given an on-screen position, make it the new center of the view.

land_view_ensure_visible

Parameters: LandView * self, float x, float y, float bx, float by

Given an absolute map position, scroll the view so it is not within bx/by pixels to the view’s border.

land_view_ensure_visible_on_screen

Parameters: LandView * self, float x, float y, float bx, float by

land_view_ensure_visible, but the given position is in screen coordinates.

land_view_ensure_inside_grid

Parameters: LandView * self, LandGrid * grid

For a non-wrapped grid, move the view so it lies within the grid.

For a wrapped grid, where the view always is inside the grid, this function
only normalizes the scroll position to lie within the "first quadrant".

land_view_clip

Parameters: LandView * self

land_view_to_world

Parameters: LandView * self, float vx, float vy, float * wx, float * wy

land_world_to_view

Parameters: LandView * self, float wx, float wy, float * vx, float * vy


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