parin.backend.rl

fn activateSound beginBlend beginCamera beginClip beginDrawing beginDroppedPaths beginViewport clearBackground closeWindow deactivateSound deltaMouse deltaTime deltaWheel dequeuePressedKey dequeuePressedRune drawCirc drawLine drawRect drawRune drawSurface drawTexture drawViewport droppedPaths elapsedTicks elapsedTime endBlend endCamera endClip endDrawing endDroppedPaths endViewport fontCount fontFilter fontFree fontGlyphInfo fontIsValid fontLineSpacing fontRuneSpacing fontSetFilter fontSetLineSpacing fontSetRuneSpacing fontSetWrap fontSize fontWrap fps fpsMax freeAllFonts freeAllSounds freeAllTextures freeAllViewports isBackendNull isCursorVisible isDown isFullscreen isPressed isReleased isWindowCloseButtonPressed isWindowResized loadFont loadSound loadSurface loadTexture loadViewport masterVolume matrixRotate matrixScale matrixTranslate mouse openUrl openWindow pauseSound playSound popMatrix pumpEvents pushMatrix randf randi randomize resourceIsNull resumeSound screenHeight screenWidth setFpsMax setIsCursorVisible setIsFullscreen setMasterVolume setRandomSeed setVsync setWindowIconFromFiles setWindowMaxSize setWindowMinSize setWindowTitle soundCanRepeat soundCount soundDuration soundFree soundIsActive soundIsPaused soundIsValid soundPan soundPitch soundPitchVariance soundPitchVarianceBase soundProgress soundSetCanRepeat soundSetPan soundSetPitch soundSetPitchVariance soundSetPitchVarianceBase soundSetVolume soundTime soundVolume startSound stopSound takeScreenshot takeScreenshotAndUseAsTexture textureCount textureFilter textureFree textureHeight textureIsValid textureSetFilter textureSetWrap textureSize textureWidth textureWrap toCanvasPoint toPr toRl toRlKey toScenePoint updateIsFullscreen updateSound updateSoundPitchVariance updateVsync updateWindow viewportBlend viewportColor viewportCount viewportFilter viewportFree viewportHeight viewportIsAttached viewportIsFirstUse viewportIsValid viewportResize viewportSetBlend viewportSetColor viewportSetFilter viewportSetWrap viewportSize viewportWidth viewportWrap vsync windowHeight windowWidth

Types 16

aliasBasicContainer(T) = FixedList!(T, defaultBackendResourcesCapacity)
aliasSparseContainer(T) = FixedList!(SparseListItem!T, defaultBackendResourcesCapacity)
aliasRlFilter = int

Raylib texture filter modes.

aliasRlWrap = int

Raylib texture wrapping modes.

aliasRlBlend = int

Raylib texture blending modes.

aliasRlKey = int

Raylib input key.

structRlTexture

A raylib texture.

Fields
Filter filter
Wrap wrap
structRlFont

A raylib font.

Fields
rl.Font data
int runeSpacing
int lineSpacing
Filter filter
Wrap wrap
structRlSound

A raylib sound.

Fields
float volume
float pan
float pitch
float pitchVariance
float pitchVarianceBase
bool canRepeat
bool isActive
bool isPaused

A raylib viewport.

Fields
Rgba color
bool isAttached
Filter filter
Wrap wrap
Blend blend
bool isFirstUse
Fields
GenList!(TexturesData.Item.Item, TexturesData, GenData) textures
GenList!(FontsData.Item.Item, FontsData, GenData) fonts
GenList!(SoundsData.Item.Item, SoundsData, GenData) sounds
GenList!(ViewportsData.Item.Item, ViewportsData, GenData) viewports
BasicContainer!IStr droppedPaths
RlTexture[defaultBackendMaxSurfaceCount] surfaceTextureBuffers
IVec2 surfaceCursor
int surfaceRowHeight
int surfaceCurrentSlot
uint elapsedTicks
int fpsMax
Vec2 mouseBuffer
bool isCursorVisible
bool windowIsChanging
float windowChangeTime
int windowPreviousWindowWidth
int windowPreviousWindowHeight
bool vsyncIsChanging
bool vsync

Functions 175

fnvoid updateWindow(alias loop)()Updates the window every frame with the given function. Returns when the given function returns true.
fnvoid openWindow(int width, int height, IStr title, bool vsync, int fpsMax, int windowMinWidth, int windowMinHeight)
fnvoid closeWindow()
fnMaybe!Surface loadSurface(IStr path, IStr file = __FILE__, Sz line = __LINE__)
fnMaybe!Surface loadSurface(const(ubyte)[] memory, IStr ext = ".png", IStr file = __FILE__, Sz line = __LINE__)
fnMaybe!ResourceId loadTexture(const(ubyte)[] memory, IStr ext = ".png")
fnMaybe!ResourceId loadFont(IStr path, int size, int runeSpacing, int lineSpacing, IStr32 runes)
fnMaybe!ResourceId loadFont(const(ubyte)[] memory, int size, int runeSpacing, int lineSpacing, IStr32 runes, IStr ext = ".ttf")
fnMaybe!ResourceId loadFont(ResourceId texture, int tileWidth, int tileHeight)
fnMaybe!ResourceId loadViewport(int width, int height, Rgba color, Blend blend)
fnMaybe!ResourceId loadSound(IStr path, float volume, float pitch, bool canRepeat, float pitchVariance = 1.0f)
fnbool isBackendNull()
fnvoid freeAllTextures(bool canSkipFirst)
fnvoid freeAllFonts(bool canSkipFirst, bool canSkipSecond /* LOL */)
fnvoid freeAllSounds(bool canSkipFirst)
fnvoid freeAllViewports(bool canSkipFirst)
fnvoid textureSetWrap(ResourceId id, Wrap value)
fnvoid fontSetFilter(ResourceId id, Filter value)
fnvoid fontSetWrap(ResourceId id, Wrap value)
fnvoid fontSetRuneSpacing(ResourceId id, int value)
fnvoid fontSetLineSpacing(ResourceId id, int value)
fnvoid fontFree(ResourceId id)
fnvoid soundSetVolume(ResourceId id, float value)
fnfloat soundPan(ResourceId id)
fnvoid soundSetPan(ResourceId id, float value)
fnvoid soundSetPitch(ResourceId id, float value, bool canUpdatePitchVarianceBase)
fnvoid soundSetPitchVariance(ResourceId id, float value)
fnvoid soundSetPitchVarianceBase(ResourceId id, float value)
fnvoid soundSetCanRepeat(ResourceId id, bool value)
fnfloat soundTime(ResourceId id)
fnvoid viewportSetWrap(ResourceId id, Wrap value)
fnvoid viewportSetColor(ResourceId id, Rgba value)
fnvoid viewportResize(ResourceId id, int newWidth, int newHeight)
fnint screenWidth()
fnint screenHeight()
fnint windowWidth()
fnint windowHeight()
fnbool isFullscreen()
fnvoid setIsFullscreen(bool value)
fnvoid setWindowMinSize(int width, int height)
fnvoid setWindowMaxSize(int width, int height)
fnvoid setWindowTitle(IStr value)
fnFault takeScreenshot(IStr path, ResourceId canvasViewportId, bool hasAlpha)
fnMaybe!ResourceId takeScreenshotAndUseAsTexture(ResourceId canvasViewportId, bool hasAlpha)
fnvoid openUrl(IStr url)
fnint fps()
fnint fpsMax()
fnvoid setFpsMax(int value)
fndouble elapsedTime()
fnfloat deltaTime()
fnvoid setRandomSeed(int value)
fnvoid randomize()
fnint randi()
fnfloat randf()
fnVec2 toCanvasPoint(Vec2 point, Camera camera, Vec2 canvasSize)
fnVec2 toScenePoint(Vec2 point, Camera camera, Vec2 canvasSize)
fnulong elapsedTicks()
fnbool vsync()
fnvoid setVsync(bool value)
fnvoid updateVsync()
fnvoid setIsCursorVisible(bool value)
fnvoid pumpEvents()
fnbool isDown(char key)
fnbool isDown(Keyboard key)
fnbool isDown(Mouse key)
fnbool isDown(Gamepad key, int id = 0)
fnbool isPressed(char key)
fnbool isPressed(Keyboard key)
fnbool isPressed(Mouse key)
fnbool isPressed(Gamepad key, int id = 0)
fnbool isReleased(char key)
fnbool isReleased(Keyboard key)
fnbool isReleased(Mouse key)
fnbool isReleased(Gamepad key, int id = 0)
fnfloat deltaWheel()
fnfloat masterVolume()
fnvoid setMasterVolume(float value)
fnvoid beginDrawing()
fnvoid endDrawing()
fnvoid beginCamera(ref Camera camera, Vec2 canvasSize, Rounding type)
fnvoid endCamera(ref Camera camera)
fnvoid beginBlend(Blend blend)
fnvoid endBlend()
fnvoid beginClip(Rect area)
fnvoid endClip()
fnvoid clearBackground(Rgba color)
fnvoid pushMatrix()
fnvoid matrixTranslate(float x, float y, float z)
fnvoid matrixRotate(float angle, float x, float y, float z)
fnvoid matrixScale(float x, float y, float z)
fnvoid popMatrix()
fnvoid drawRect(Rect area, Rgba color, float thickness)
fnvoid drawCirc(Circ area, Rgba color, float thickness)
fnvoid drawLine(Line area, Rgba color, float thickness)
fnvoid drawSurface(ref Surface surface, Rect area, Rect target, Vec2 origin, float rotation, Rgba color)
fnvoid drawTexture(ResourceId id, Rect area, Rect target, Vec2 origin, float rotation, Rgba color)
fnvoid drawViewport(ResourceId id, Rect area, Rect target, Vec2 origin, float rotation, Rgba color)
fnvoid drawRune(ResourceId id, int rune, Vec2 position, Rgba color)
fnrl.Camera2D toRl(Camera from, Vec2 canvasSize, Rounding type)
fnRlWrap toRl(Wrap from)
fnRlKey toRlKey(char from)
fnRlKey toRl(Mouse from)

Variables 3

varBackendState * _backendState
enumvardefaultBackendMaxSurfaceCount = 4
enumvardefaultBackendMaxSurfaceSide = 1024