Raylib5Backend

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

Destructor

~this
~this()
Undocumented in source.

Members

Functions

alphaImageShader
raylib.Shader alphaImageShader()

Get shader for images with the alpha format.

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.
clipboard
string clipboard(string value)
Undocumented in source. Be warned that the author may not have intended to support it.
clipboard
string clipboard()
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.
drawCircle
void drawCircle(Vector2 center, float radius, Color color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawCircleOutline
void drawCircleOutline(Vector2 center, float radius, Color color)
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)
Undocumented in source.
drawTexture
void drawTexture(fluid.backend.Texture texture, Rectangle destination, Color tint, bool alignPixels)
Undocumented in source.
drawTextureAlign
void drawTextureAlign(fluid.backend.Texture texture, Rectangle rectangle, Color tint)
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 rayTexture, fluid.backend.Image.Format format)
Undocumented in source. Be warned that the author may not have intended to support it.
fromRaylibCoords
Vector2 fromRaylibCoords(Vector2 position)
Undocumented in source. Be warned that the author may not have intended to support it.
fromRaylibCoords
Vector2 fromRaylibCoords(float x, float y)
Undocumented in source. Be warned that the author may not have intended to support it.
fromRaylibCoords
Rectangle fromRaylibCoords(Rectangle rec)
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.
palettedAlphaImageShader
raylib.Shader palettedAlphaImageShader(Color[] palette)

Get shader for images with the palettedAlpha format.

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.
tint
Color tint(Color color)
Undocumented in source. Be warned that the author may not have intended to support it.
tint
Color tint()
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

updateTexture
void updateTexture(fluid.backend.Texture texture, fluid.backend.Image image)
Undocumented in source.
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.

Manifest constants

alphaImageShaderCode
enum alphaImageShaderCode;

Shader code for alpha images.

palettedAlphaImageShaderCode
enum palettedAlphaImageShaderCode;

Shader code for palette iamges.

Inherited Members

From FluidBackend

doubleClickTime
Duration doubleClickTime()

Get system's double click time.

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.

clipboard
string clipboard(string )

Get or set system clipboard value.

clipboard
string clipboard()
Undocumented in source.
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.
updateTexture
void updateTexture(Texture texture, Image image)

Update a texture from an image. The texture must be valid and must be of the same size and format as the image.

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.

tint
Color tint(Color )

Set tint for all newly drawn shapes. The input color for every shape should be multiplied by this color.

tint
Color tint()

Get current tint color.

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.

drawCircle
void drawCircle(Vector2 center, float radius, Color color)

Draw a circle.

drawCircleOutline
void drawCircleOutline(Vector2 center, float radius, Color color)

Draw a circle, but outline only.

drawRectangle
void drawRectangle(Rectangle rectangle, Color color)

Draw a rectangle.

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

Draw a texture.

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

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

Meta