DRAWING FUNCTIONS
Drawing Functions
Immediate-mode drawing helpers. Call them inside your frame callback; the frame is cleared when submitted.
- BeginFrame: Starts a new drawing frame.
- DrawBlurRect: Draws a blurred rectangle region on top of the scene.
- DrawBorderRect: Draws a rectangle border with a configurable thickness.
- DrawCircle: Draws a circle outline.
- DrawImage: Draws a loaded texture inside the given rectangle.
- DrawLine: Draws a line between two points.
- DrawRect: Draws the outline of a rectangle.
- DrawRectFilled: Draws a filled rectangle.
- DrawRectGradient: Draws a rectangle with a vertical or horizontal gradient.
- DrawRoundedRect: Draws a rectangle with rounded corners.
- DrawRoundedRectFilled: Draws a filled rectangle with rounded corners.
- DrawShadowRect: Draws a rectangle with a soft drop shadow.
- DrawText: Draws text at the given position.
- DrawTextCentered: Draws text centred on the given position.
- GetTextWidth: Measures the width of a string for the given font.
- LoadFont: Loads a font from disk and returns its handle.
- LoadFontFromBuffer: Loads a font from an in-memory buffer.
- LoadTexture: Loads an image from disk and returns a texture handle.
- LoadTextureFromBuffer: Creates a texture from an in-memory image buffer.
- PopClipRect: Restores the previous clipping rectangle.
- PopFont: Restores the previous font.
- PushClipRect: Restricts drawing to the given rectangle until popped.
- PushFont: Sets the active font for subsequent text calls.
- ReleaseTexture: Frees a texture handle returned by LoadTexture.
- ResetAllFrames: Clears every queued frame.
- ResetFrame: Clears the current frame without submitting it.
- SetAutoFrame: Enables automatic frame begin and submit.
- SubmitFrame: Submits the current frame to the renderer.
- WithClipRect: Runs a callback inside the given clipping rectangle.
- WithFrame: Runs a callback inside a new frame and submits it afterwards.
- WorldToScreen: Converts a world position to screen coordinates.