Structs§
- Camera2D
- Camera3D
- Color
- Unpremultiplied RGBA floating-point channels. No implicit gamma conversion.
- Conf
- Font
- Mat4
- Column-major 4x4 matrix acting on column vectors:
translation * rotation * scale. - Mesh
- PostFx
- Authored post-processing settings. Start from a preset and adjust with the builder methods. Values are sanitized when applied: non-finite numbers use the neutral value and every field is clamped to its documented range.
- Quat
- Quaternion stored as vector part
(x,y,z)followed by scalar partw. - Rect
- Axis-aligned 2D rectangle. Width and height should be nonnegative.
- Text
Dimensions - Text
Params - Touch
- Vec2
- Vec3
- Vec4
- Vertex
Enums§
Constants§
Traits§
Functions§
- clear_
background - draw_
circle - draw_
circle_ lines - draw_
cube - Draws an axis-aligned resident cuboid.
- draw_
ellipse - Filled ellipse of radii
rx/ryrotated byrotationdegrees, as a 32-segment fan (96 vertices). The rim directions come from a shared table. - draw_
line - draw_
line_ 3d - draw_
mesh - draw_
mesh_ transformed - draw_
poly - draw_
rectangle - draw_
rectangle_ lines - draw_
text - draw_
text_ ex - Draws classic 5×7 bitmap text with its baseline at
y: one quad per horizontal run of lit font pixels in each glyph row, each exactly one font pixel tall. Coverage is identical to one quad per lit pixel with fewer vertices. Usetext::draw_text_styledwithtext::FontFace::Classicfor the same letters with vertically merged geometry, shadows and outlines. - draw_
triangle - get_
default_ font - get_
frame_ time - get_
screen_ data - get_
time - is_
key_ down - is_
key_ pressed - is_
mouse_ button_ down - is_
mouse_ button_ pressed - measure_
text - mouse_
delta_ position - mouse_
position - mouse_
wheel - next_
frame - post_
fx_ hud_ begin - Mark the world/HUD boundary explicitly. Draws after this call go straight to the screen on top of the post-processed world. Returns true when this call recorded the frame’s boundary; false if post-processing is off or a boundary already exists in this frame.
- screen_
dpi_ scale - screen_
height - screen_
width - set_
camera - set_
cursor_ grab - set_
default_ camera - Restore the screen-space HUD camera. After a world camera this is also the
post-processing HUD boundary; see
post. - set_
post_ fx - Replace the sticky post-processing settings. Takes effect for the current
frame’s composite; use
PostFx::off()to return to direct rendering. - show_
mouse - simulate_
mouse_ with_ touch - touches
- vec2
- vec3
- vec4