[−][src]Crate macroquad
Re-exports
pub use megaui; |
pub use drawing::*; |
Modules
drawing | |
exec | |
log | |
rand |
Macros
debug | |
hash | |
info | |
log | |
warn |
Structs
QuadGl | |
Vec2 | A 2-dimensional vector. |
Vertex | |
Window | |
WindowParams |
Enums
KeyCode | |
MouseButton |
Functions
clear_background | |
draw_circle | |
draw_hexagon | |
draw_line | |
draw_rectangle | |
draw_rectangle_lines | |
draw_text | |
draw_texture | |
draw_texture_rec | Draw texture to x y w h position on the screen, using sx sy sw sh as a texture coordinates. Good use example: drawing an image from texture atlas. |
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 |
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_screen_coordinates | |
set_target_fps | Set target FPS (maximum) |
set_ui_style | |
update_texture | Upload image data to GPU texture |
Attribute Macros
main |