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 loopFunc)() @trustedUpdates 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) @trusted nothrow
fnvoid closeWindow() @trusted nothrow
fnMaybe!Surface loadSurface(IStr path, IStr file = __FILE__, Sz line = __LINE__) @trusted nothrow
fnMaybe!Surface loadSurface(const(ubyte)[] memory, IStr ext = ".png", IStr file = __FILE__, Sz line = __LINE__) @trusted nothrow
fnMaybe!ResourceId loadTexture(IStr path) @trusted nothrow
fnMaybe!ResourceId loadTexture(const(ubyte)[] memory, IStr ext = ".png") @trusted nothrow
fnMaybe!ResourceId loadFont(IStr path, int size, int runeSpacing, int lineSpacing, IStr32 runes) @trusted nothrow
fnMaybe!ResourceId loadFont(const(ubyte)[] memory, int size, int runeSpacing, int lineSpacing, IStr32 runes, IStr ext = ".ttf") @trusted nothrow
fnMaybe!ResourceId loadFont(ResourceId texture, int tileWidth, int tileHeight) @trusted nothrow
fnMaybe!ResourceId loadViewport(int width, int height, Rgba color, Blend blend) @trusted nothrow
fnMaybe!ResourceId loadSound(IStr path, float volume, float pitch, bool canRepeat, float pitchVariance = 1.0f) @trusted nothrow
fnbool isBackendNull() @trusted nothrow @nogc
fnvoid freeAllTextures(bool canSkipFirst) @trusted nothrow @nogc
fnvoid freeAllFonts(bool canSkipFirst, bool canSkipSecond /* LOL */) @trusted nothrow @nogc
fnvoid freeAllSounds(bool canSkipFirst) @trusted nothrow @nogc
fnvoid freeAllViewports(bool canSkipFirst) @trusted nothrow @nogc
fnSz textureCount() @trusted nothrow @nogc
fnSz fontCount() @trusted nothrow @nogc
fnSz soundCount() @trusted nothrow @nogc
fnSz viewportCount() @trusted nothrow @nogc
fnbool resourceIsNull(ResourceId id) @trusted nothrow @nogc
fnbool textureIsValid(ResourceId id) @trusted nothrow @nogc
fnFilter textureFilter(ResourceId id) @trusted nothrow @nogc
fnvoid textureSetFilter(ResourceId id, Filter value) @trusted nothrow @nogc
fnWrap textureWrap(ResourceId id) @trusted nothrow @nogc
fnvoid textureSetWrap(ResourceId id, Wrap value) @trusted nothrow @nogc
fnint textureWidth(ResourceId id) @trusted nothrow @nogc
fnint textureHeight(ResourceId id) @trusted nothrow @nogc
fnVec2 textureSize(ResourceId id) @trusted nothrow @nogc
fnvoid textureFree(ResourceId id) @trusted nothrow @nogc
fnbool fontIsValid(ResourceId id) @trusted nothrow @nogc
fnFilter fontFilter(ResourceId id) @trusted nothrow @nogc
fnvoid fontSetFilter(ResourceId id, Filter value) @trusted nothrow @nogc
fnWrap fontWrap(ResourceId id) @trusted nothrow @nogc
fnvoid fontSetWrap(ResourceId id, Wrap value) @trusted nothrow @nogc
fnint fontSize(ResourceId id) @trusted nothrow @nogc
fnint fontRuneSpacing(ResourceId id) @trusted nothrow @nogc
fnvoid fontSetRuneSpacing(ResourceId id, int value) @trusted nothrow @nogc
fnint fontLineSpacing(ResourceId id) @trusted nothrow @nogc
fnvoid fontSetLineSpacing(ResourceId id, int value) @trusted nothrow @nogc
fnGlyphInfo fontGlyphInfo(ResourceId id, int rune) @trusted nothrow @nogc
fnvoid fontFree(ResourceId id) @trusted nothrow @nogc
fnbool soundIsValid(ResourceId id) @trusted nothrow @nogc
fnfloat soundVolume(ResourceId id) @trusted nothrow @nogc
fnvoid soundSetVolume(ResourceId id, float value) @trusted nothrow @nogc
fnfloat soundPan(ResourceId id) @trusted nothrow @nogc
fnvoid soundSetPan(ResourceId id, float value) @trusted nothrow @nogc
fnfloat soundPitch(ResourceId id) @trusted nothrow @nogc
fnvoid soundSetPitch(ResourceId id, float value, bool canUpdatePitchVarianceBase) @trusted nothrow @nogc
fnfloat soundPitchVariance(ResourceId id) @trusted nothrow @nogc
fnvoid soundSetPitchVariance(ResourceId id, float value) @trusted nothrow @nogc
fnfloat soundPitchVarianceBase(ResourceId id) @trusted nothrow @nogc
fnvoid soundSetPitchVarianceBase(ResourceId id, float value) @trusted nothrow @nogc
fnbool soundCanRepeat(ResourceId id) @trusted nothrow @nogc
fnvoid soundSetCanRepeat(ResourceId id, bool value) @trusted nothrow @nogc
fnbool soundIsActive(ResourceId id) @trusted nothrow @nogc
fnbool soundIsPaused(ResourceId id) @trusted nothrow @nogc
fnfloat soundTime(ResourceId id) @trusted nothrow @nogc
fnfloat soundDuration(ResourceId id) @trusted nothrow @nogc
fnfloat soundProgress(ResourceId id) @trusted nothrow @nogc
fnvoid soundFree(ResourceId id) @trusted nothrow @nogc
fnbool viewportIsValid(ResourceId id) @trusted nothrow @nogc
fnFilter viewportFilter(ResourceId id) @trusted nothrow @nogc
fnvoid viewportSetFilter(ResourceId id, Filter value) @trusted nothrow @nogc
fnWrap viewportWrap(ResourceId id) @trusted nothrow @nogc
fnvoid viewportSetWrap(ResourceId id, Wrap value) @trusted nothrow @nogc
fnBlend viewportBlend(ResourceId id) @trusted nothrow @nogc
fnvoid viewportSetBlend(ResourceId id, Blend value) @trusted nothrow @nogc
fnRgba viewportColor(ResourceId id) @trusted nothrow @nogc
fnvoid viewportSetColor(ResourceId id, Rgba value) @trusted nothrow @nogc
fnint viewportWidth(ResourceId id) @trusted nothrow @nogc
fnint viewportHeight(ResourceId id) @trusted nothrow @nogc
fnVec2 viewportSize(ResourceId id) @trusted nothrow @nogc
fnbool viewportIsFirstUse(ResourceId id) @trusted nothrow @nogc
fnbool viewportIsAttached(ResourceId id) @trusted nothrow @nogc
fnvoid viewportResize(ResourceId id, int newWidth, int newHeight) @trusted nothrow @nogc
fnvoid viewportFree(ResourceId id) @trusted nothrow @nogc
fnvoid beginDroppedPaths() @trusted nothrow @nogc
fnvoid endDroppedPaths() @trusted nothrow @nogc
fnIStr[] droppedPaths() @trusted nothrow @nogc
fnint screenWidth() @trusted nothrow @nogc
fnint screenHeight() @trusted nothrow @nogc
fnint windowWidth() @trusted nothrow @nogc
fnint windowHeight() @trusted nothrow @nogc
fnbool isFullscreen() @trusted nothrow @nogc
fnvoid setIsFullscreen(bool value) @trusted nothrow @nogc
fnvoid updateIsFullscreen() @trusted nothrow @nogc
fnbool isWindowCloseButtonPressed() @trusted nothrow @nogc
fnbool isWindowResized() @trusted nothrow @nogc
fnvoid setWindowMinSize(int width, int height) @trusted nothrow @nogc
fnvoid setWindowMaxSize(int width, int height) @trusted nothrow @nogc
fnvoid setWindowTitle(IStr value) @trusted nothrow @nogc
fnFault setWindowIconFromFiles(IStr path) @trusted nothrow @nogc
fnFault takeScreenshot(IStr path, ResourceId canvasViewportId, bool hasAlpha) @trusted nothrow @nogc
fnMaybe!ResourceId takeScreenshotAndUseAsTexture(ResourceId canvasViewportId, bool hasAlpha) @trusted nothrow @nogc
fnvoid openUrl(IStr url) @trusted nothrow @nogc
fnint fps() @trusted nothrow @nogc
fnint fpsMax() @trusted nothrow @nogc
fnvoid setFpsMax(int value) @trusted nothrow @nogc
fndouble elapsedTime() @trusted nothrow @nogc
fnfloat deltaTime() @trusted nothrow @nogc
fnvoid setRandomSeed(int value) @trusted nothrow @nogc
fnvoid randomize() @trusted nothrow @nogc
fnint randi() @trusted nothrow @nogc
fnfloat randf() @trusted nothrow @nogc
fnVec2 toCanvasPoint(Vec2 point, Camera camera, Vec2 canvasSize) @trusted nothrow @nogc
fnVec2 toScenePoint(Vec2 point, Camera camera, Vec2 canvasSize) @trusted nothrow @nogc
fnulong elapsedTicks() @trusted nothrow @nogc
fnbool vsync() @trusted nothrow @nogc
fnvoid setVsync(bool value) @trusted nothrow @nogc
fnvoid updateVsync() @trusted nothrow @nogc
fnbool isCursorVisible() @trusted nothrow @nogc
fnvoid setIsCursorVisible(bool value) @trusted nothrow @nogc
fnvoid pumpEvents() @trusted nothrow @nogc
fnbool isDown(char key) @trusted nothrow @nogc
fnbool isDown(Keyboard key) @trusted nothrow @nogc
fnbool isDown(Mouse key) @trusted nothrow @nogc
fnbool isDown(Gamepad key, int id = 0) @trusted nothrow @nogc
fnbool isPressed(char key) @trusted nothrow @nogc
fnbool isPressed(Keyboard key) @trusted nothrow @nogc
fnbool isPressed(Mouse key) @trusted nothrow @nogc
fnbool isPressed(Gamepad key, int id = 0) @trusted nothrow @nogc
fnbool isReleased(char key) @trusted nothrow @nogc
fnbool isReleased(Keyboard key) @trusted nothrow @nogc
fnbool isReleased(Mouse key) @trusted nothrow @nogc
fnbool isReleased(Gamepad key, int id = 0) @trusted nothrow @nogc
fnVec2 mouse() @trusted nothrow @nogc
fnVec2 deltaMouse() @trusted nothrow @nogc
fnfloat deltaWheel() @trusted nothrow @nogc
fnKeyboard dequeuePressedKey() @trusted nothrow @nogc
fndchar dequeuePressedRune() @trusted nothrow @nogc
fnfloat masterVolume() @trusted nothrow @nogc
fnvoid setMasterVolume(float value) @trusted nothrow @nogc
fnvoid updateSoundPitchVariance(ResourceId id) @trusted nothrow @nogc
fnvoid activateSound(ResourceId id) @trusted nothrow @nogc
fnvoid deactivateSound(ResourceId id) @trusted nothrow @nogc
fnvoid playSound(ResourceId id) @trusted nothrow @nogc
fnvoid stopSound(ResourceId id) @trusted nothrow @nogc
fnvoid startSound(ResourceId id) @trusted nothrow @nogc
fnvoid pauseSound(ResourceId id) @trusted nothrow @nogc
fnvoid resumeSound(ResourceId id) @trusted nothrow @nogc
fnvoid updateSound(ResourceId id) @trusted nothrow @nogc
fnvoid beginDrawing() @trusted nothrow @nogc
fnvoid endDrawing() @trusted nothrow @nogc
fnvoid beginCamera(ref Camera camera, Vec2 canvasSize, Rounding type) @trusted nothrow @nogc
fnvoid endCamera(ref Camera camera) @trusted nothrow @nogc
fnvoid beginViewport(ResourceId id) @trusted nothrow @nogc
fnvoid endViewport(ResourceId id) @trusted nothrow @nogc
fnvoid beginBlend(Blend blend) @trusted nothrow @nogc
fnvoid endBlend() @trusted nothrow @nogc
fnvoid beginClip(Rect area) @trusted nothrow @nogc
fnvoid endClip() @trusted nothrow @nogc
fnvoid clearBackground(Rgba color) @trusted nothrow @nogc
fnvoid pushMatrix() @trusted nothrow @nogc
fnvoid matrixTranslate(float x, float y, float z) @trusted nothrow @nogc
fnvoid matrixRotate(float angle, float x, float y, float z) @trusted nothrow @nogc
fnvoid matrixScale(float x, float y, float z) @trusted nothrow @nogc
fnvoid popMatrix() @trusted nothrow @nogc
fnvoid drawRect(Rect area, Rgba color, float thickness) @trusted nothrow @nogc
fnvoid drawCirc(Circ area, Rgba color, float thickness) @trusted nothrow @nogc
fnvoid drawLine(Line area, Rgba color, float thickness) @trusted nothrow @nogc
fnvoid drawSurface(ref Surface surface, Rect area, Rect target, Vec2 origin, float rotation, Rgba color) @trusted nothrow @nogc
fnvoid drawTexture(ResourceId id, Rect area, Rect target, Vec2 origin, float rotation, Rgba color) @trusted nothrow @nogc
fnvoid drawViewport(ResourceId id, Rect area, Rect target, Vec2 origin, float rotation, Rgba color) @trusted nothrow @nogc
fnvoid drawRune(ResourceId id, int rune, Vec2 position, Rgba color) @trusted nothrow @nogc
fnrl.Camera2D toRl(Camera from, Vec2 canvasSize, Rounding type) @trusted nothrow @nogc
fnRlFilter toRl(Filter from) @trusted nothrow @nogc
fnRlWrap toRl(Wrap from) @trusted nothrow @nogc
fnRlBlend toRl(Blend from) @trusted nothrow @nogc
fnRlKey toRlKey(char from) @trusted nothrow @nogc
fnRlKey toRl(Keyboard from) @trusted nothrow @nogc
fnKeyboard toPr(RlKey from) @trusted nothrow @nogc
fnRlKey toRl(Mouse from) @trusted nothrow @nogc
fnRlKey toRl(Gamepad from) @trusted nothrow @nogc

Variables 3

varBackendState * _backendState
enumvardefaultBackendMaxSurfaceCount = 4
enumvardefaultBackendMaxSurfaceSide = 1024