[][src]Crate macroquad

Re-exports

pub use megaui;
pub use quad_rand as rand;

Modules

drawing

this is legacy and going to disappear soon

exec
log

Macros

debug
hash
info
log
warn

Structs

Camera2D
Camera3D
ClipboardObject
Color
DrawTextureParams
GlPipeline
Image

Image, data stored in CPU memory

PipelineParams
QuadGl
Rect
Texture2D

Texture, data stored in GPU memory

Vec2

A 2-dimensional vector.

Vertex
Window
WindowParams

Enums

Comparison

A pixel-wise comparison function.

KeyCode
MouseButton
Projection

Constants

BEIGE
BLACK
BLANK
BLUE
BROWN
DARKBLUE
DARKBROWN
DARKGRAY
DARKGREEN
DARKPURPLE
GOLD
GRAY
GREEN
LIGHTGRAY
LIME
MAGENTA
MAROON
ORANGE
PINK
PURPLE
RED
SKYBLUE
VIOLET
WHITE
YELLOW

Traits

Camera

Functions

clear_background
draw_circle
draw_circle_lines
draw_cube
draw_cube_wires
draw_grid

Draw a grid centered at (0, 0, 0)

draw_hexagon
draw_line
draw_line_3d
draw_plane
draw_rectangle
draw_rectangle_lines
draw_sphere
draw_text
draw_texture
draw_texture_ex
draw_texture_recDeprecated
draw_window
get_fps

Returns current FPS

get_frame_time

Returns time in seconds for last frame drawn

get_internal_gl
get_time

Returns elapsed time in seconds since start

gl_make_pipeline
gl_use_default_pipeline
gl_use_pipeline
is_key_down
is_mouse_button_down
load_texture
load_texture_from_image
mouse_over_ui
mouse_position
mouse_wheel
next_frame
screen_height
screen_width
set_camera

Set active 2D or 3D camera

set_default_camera

Reset default 2D camera mode

set_target_fps

Set target FPS (maximum)

set_texture_filter
set_ui_style
update_texture

Upload image data to GPU texture

vec2

Attribute Macros

main