Raylib5Backend

Undocumented in source.
version(Have_raylib_d)
@safe
class Raylib5Backend : FluidBackend {}

Members

Functions

area
Rectangle area(Rectangle rect)
Undocumented in source. Be warned that the author may not have intended to support it.
area
Rectangle area()
Undocumented in source. Be warned that the author may not have intended to support it.
deltaTime
float deltaTime()
Undocumented in source. Be warned that the author may not have intended to support it.
dpi
Vector2 dpi()
Undocumented in source. Be warned that the author may not have intended to support it.
drawLine
void drawLine(Vector2 start, Vector2 end, Color color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawRectangle
void drawRectangle(Rectangle rectangle, Color color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawTexture
void drawTexture(fluid.backend.Texture texture, Rectangle rectangle, Color tint, string alt)
Undocumented in source.
drawTexture
void drawTexture(fluid.backend.Texture texture, Rectangle destination, Color tint, string alt, bool alignPixels)
Undocumented in source.
drawTextureAlign
void drawTextureAlign(fluid.backend.Texture texture, Rectangle rectangle, Color tint, string alt)
Undocumented in source.
drawTriangle
void drawTriangle(Vector2 a, Vector2 b, Vector2 c, Color color)
Undocumented in source. Be warned that the author may not have intended to support it.
fromRaylib
fluid.backend.Texture fromRaylib(raylib.Texture texture)
Undocumented in source. Be warned that the author may not have intended to support it.
hasJustResized
bool hasJustResized()
Undocumented in source. Be warned that the author may not have intended to support it.
inputCharacter
dchar inputCharacter()
Undocumented in source. Be warned that the author may not have intended to support it.
isDown
bool isDown(MouseButton button)
Undocumented in source. Be warned that the author may not have intended to support it.
isDown
bool isDown(KeyboardKey key)
Undocumented in source. Be warned that the author may not have intended to support it.
isDown
int isDown(GamepadButton button)
Undocumented in source. Be warned that the author may not have intended to support it.
isPressed
bool isPressed(MouseButton button)
Undocumented in source. Be warned that the author may not have intended to support it.
isPressed
bool isPressed(KeyboardKey key)
Undocumented in source. Be warned that the author may not have intended to support it.
isPressed
int isPressed(GamepadButton button)
Undocumented in source. Be warned that the author may not have intended to support it.
isReleased
bool isReleased(MouseButton button)
Undocumented in source. Be warned that the author may not have intended to support it.
isReleased
bool isReleased(KeyboardKey key)
Undocumented in source. Be warned that the author may not have intended to support it.
isReleased
int isReleased(GamepadButton button)
Undocumented in source. Be warned that the author may not have intended to support it.
isRepeated
bool isRepeated(KeyboardKey key)
Undocumented in source. Be warned that the author may not have intended to support it.
isRepeated
int isRepeated(GamepadButton button)
Undocumented in source. Be warned that the author may not have intended to support it.
isUp
bool isUp(MouseButton button)
Undocumented in source. Be warned that the author may not have intended to support it.
isUp
bool isUp(KeyboardKey key)
Undocumented in source. Be warned that the author may not have intended to support it.
isUp
int isUp(GamepadButton button)
Undocumented in source. Be warned that the author may not have intended to support it.
loadTexture
fluid.backend.Texture loadTexture(fluid.backend.Image image)
Undocumented in source. Be warned that the author may not have intended to support it.
loadTexture
fluid.backend.Texture loadTexture(string filename)
Undocumented in source. Be warned that the author may not have intended to support it.
mouseCursor
FluidMouseCursor mouseCursor(FluidMouseCursor cursor)
Undocumented in source. Be warned that the author may not have intended to support it.
mouseCursor
FluidMouseCursor mouseCursor()
Undocumented in source. Be warned that the author may not have intended to support it.
mousePosition
Vector2 mousePosition(Vector2 position)
Undocumented in source. Be warned that the author may not have intended to support it.
mousePosition
Vector2 mousePosition()
Undocumented in source. Be warned that the author may not have intended to support it.
reaper
TextureReaper* reaper()
Undocumented in source. Be warned that the author may not have intended to support it.
restoreArea
void restoreArea()
Undocumented in source. Be warned that the author may not have intended to support it.
scale
float scale()
Undocumented in source. Be warned that the author may not have intended to support it.
scale
float scale(float value)
Undocumented in source. Be warned that the author may not have intended to support it.
scroll
Vector2 scroll()
Undocumented in source. Be warned that the author may not have intended to support it.
toFluidCoords
Vector2 toFluidCoords(Vector2 position)
Undocumented in source. Be warned that the author may not have intended to support it.
toFluidCoords
Vector2 toFluidCoords(float x, float y)
Undocumented in source. Be warned that the author may not have intended to support it.
toFluidCoords
Rectangle toFluidCoords(Rectangle rec)
Undocumented in source. Be warned that the author may not have intended to support it.
toRaylibCoords
Vector2 toRaylibCoords(Vector2 position)
Undocumented in source. Be warned that the author may not have intended to support it.
toRaylibCoords
Rectangle toRaylibCoords(Rectangle rec)
Undocumented in source. Be warned that the author may not have intended to support it.
unloadTexture
void unloadTexture(uint id)

Destroy a texture

windowSize
Vector2 windowSize(Vector2 size)
Undocumented in source. Be warned that the author may not have intended to support it.
windowSize
Vector2 windowSize()
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From FluidBackend

isPressed
bool isPressed(MouseButton )

Check if the given mouse button has just been pressed/released or, if it's held down or not (up).

isReleased
bool isReleased(MouseButton )
Undocumented in source.
isDown
bool isDown(MouseButton )
Undocumented in source.
isUp
bool isUp(MouseButton )
Undocumented in source.
isPressed
bool isPressed(KeyboardKey )

Check if the given keyboard key has just been pressed/released or, if it's held down or not (up).

isReleased
bool isReleased(KeyboardKey )
Undocumented in source.
isDown
bool isDown(KeyboardKey )
Undocumented in source.
isUp
bool isUp(KeyboardKey )
Undocumented in source.
isRepeated
bool isRepeated(KeyboardKey )

If true, the given keyboard key has been virtually pressed again, through a long-press.

inputCharacter
dchar inputCharacter()

Get next queued character from user's input. The queue should be cleared every frame. Return null if no character was pressed.

isPressed
int isPressed(GamepadButton button)

Check if the given gamepad button has been pressed/released or, if it's held down or not (up) on any of the connected gamepads.

isReleased
int isReleased(GamepadButton button)
Undocumented in source.
isDown
int isDown(GamepadButton button)
Undocumented in source.
isUp
int isUp(GamepadButton button)
Undocumented in source.
isRepeated
int isRepeated(GamepadButton button)

If true, the given gamepad button has been virtually pressed again, through a long-press.

mousePosition
Vector2 mousePosition(Vector2 )

Get/set mouse position

mousePosition
Vector2 mousePosition()
Undocumented in source.
scroll
Vector2 scroll()

Get scroll value on both axes.

deltaTime
float deltaTime()

Get time elapsed since last frame in seconds.

hasJustResized
bool hasJustResized()

True if the user has just resized the window.

windowSize
Vector2 windowSize(Vector2 )

Get or set the size of the window.

windowSize
Vector2 windowSize()
Undocumented in source.
scale
float scale()
float scale(float )

Set scale to apply to whatever is drawn next.

dpi
Vector2 dpi()

Get horizontal and vertical DPI of the window.

hidpiScale
Vector2 hidpiScale()

Get the DPI value for the window as a scale relative to 96 DPI.

area
Rectangle area(Rectangle rect)

Set area within the window items will be drawn to; any pixel drawn outside will be discarded.

area
Rectangle area()
Undocumented in source.
restoreArea
void restoreArea()

Restore the capability to draw anywhere in the window.

mouseCursor
FluidMouseCursor mouseCursor(FluidMouseCursor )

Get or set mouse cursor icon.

mouseCursor
FluidMouseCursor mouseCursor()
Undocumented in source.
reaper
TextureReaper* reaper()

Texture reaper used by this backend. May be null.

loadTexture
Texture loadTexture(Image image)

Load a texture from memory or file.

loadTexture
Texture loadTexture(string filename)
Undocumented in source.
unloadTexture
void unloadTexture(uint id)
void unloadTexture(Texture texture)

Destroy a texture created by this backend. Always use texture.destroy() to ensure thread safety and invoking the correct backend.

drawLine
void drawLine(Vector2 start, Vector2 end, Color color)

Draw a line.

drawTriangle
void drawTriangle(Vector2 a, Vector2 b, Vector2 c, Color color)

Draw a triangle, consisting of 3 vertices with counter-clockwise winding.

drawRectangle
void drawRectangle(Rectangle rectangle, Color color)

Draw a rectangle.

drawTexture
void drawTexture(Texture texture, Rectangle rectangle, Color tint, string altText)

Draw a texture.

drawTextureAlign
void drawTextureAlign(Texture texture, Rectangle rectangle, Color tint, string altText)

Draw a texture, but ensure it aligns with pixel boundaries, recommended for text.

Meta