Skip to content

Commit e7a0a58

Browse files
authored
raymath is autogenerated by the API definition file (#156)
* raymath is autogenerated * update bindings * v24.48.0
1 parent e554896 commit e7a0a58

16 files changed

Lines changed: 2664 additions & 4239 deletions

docs/raylib.html

Lines changed: 1500 additions & 1466 deletions
Large diffs are not rendered by default.

docs/raymath.html

Lines changed: 945 additions & 746 deletions
Large diffs are not rendered by default.

docs/rcamera.html

Lines changed: 2 additions & 339 deletions
Large diffs are not rendered by default.

docs/reasings.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ <h1><a class="toc-backref" href="#12">Procs</a></h1>
602602
<div class="twelve-columns footer">
603603
<span class="nim-sprite"></span>
604604
<br>
605-
<small style="color: var(--hint);">Made with Nim. Generated: 2024-11-18 10:09:56 UTC</small>
605+
<small style="color: var(--hint);">Made with Nim. Generated: 2024-11-23 12:19:27 UTC</small>
606606
</div>
607607
</div>
608608
</div>

docs/rlgl.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4192,7 +4192,7 @@ <h1><a class="toc-backref" href="#18">Templates</a></h1>
41924192
<div class="twelve-columns footer">
41934193
<span class="nim-sprite"></span>
41944194
<br>
4195-
<small style="color: var(--hint);">Made with Nim. Generated: 2024-11-18 10:09:55 UTC</small>
4195+
<small style="color: var(--hint);">Made with Nim. Generated: 2024-11-23 12:19:25 UTC</small>
41964196
</div>
41974197
</div>
41984198
</div>

docs/rmem.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ <h1><a class="toc-backref" href="#7">Types</a></h1>
240240
<dd>
241241

242242

243-
<a href="https://github.com/planetis-m/naylib/tree/main/src/rmem.nim#L289" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
244-
<a href="https://github.com/planetis-m/naylib/edit/main/src/rmem.nim#L289" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
243+
<a href="https://github.com/planetis-m/naylib/tree/main/src/rmem.nim#L286" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
244+
<a href="https://github.com/planetis-m/naylib/edit/main/src/rmem.nim#L286" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
245245

246246
</dd>
247247
</div>
@@ -296,8 +296,8 @@ <h1><a class="toc-backref" href="#12">Procs</a></h1>
296296
<dd>
297297

298298

299-
<a href="https://github.com/planetis-m/naylib/tree/main/src/rmem.nim#L324" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
300-
<a href="https://github.com/planetis-m/naylib/edit/main/src/rmem.nim#L324" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
299+
<a href="https://github.com/planetis-m/naylib/tree/main/src/rmem.nim#L321" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
300+
<a href="https://github.com/planetis-m/naylib/edit/main/src/rmem.nim#L321" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
301301

302302
</dd>
303303
</div>
@@ -387,8 +387,8 @@ <h1><a class="toc-backref" href="#12">Procs</a></h1>
387387
<dd>
388388

389389

390-
<a href="https://github.com/planetis-m/naylib/tree/main/src/rmem.nim#L321" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
391-
<a href="https://github.com/planetis-m/naylib/edit/main/src/rmem.nim#L321" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
390+
<a href="https://github.com/planetis-m/naylib/tree/main/src/rmem.nim#L318" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
391+
<a href="https://github.com/planetis-m/naylib/edit/main/src/rmem.nim#L318" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
392392

393393
</dd>
394394
</div>
@@ -397,8 +397,8 @@ <h1><a class="toc-backref" href="#12">Procs</a></h1>
397397
<dd>
398398

399399

400-
<a href="https://github.com/planetis-m/naylib/tree/main/src/rmem.nim#L295" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
401-
<a href="https://github.com/planetis-m/naylib/edit/main/src/rmem.nim#L295" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
400+
<a href="https://github.com/planetis-m/naylib/tree/main/src/rmem.nim#L292" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
401+
<a href="https://github.com/planetis-m/naylib/edit/main/src/rmem.nim#L292" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
402402

403403
</dd>
404404
</div>
@@ -420,8 +420,8 @@ <h1><a class="toc-backref" href="#12">Procs</a></h1>
420420
<dd>
421421

422422

423-
<a href="https://github.com/planetis-m/naylib/tree/main/src/rmem.nim#L336" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
424-
<a href="https://github.com/planetis-m/naylib/edit/main/src/rmem.nim#L336" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
423+
<a href="https://github.com/planetis-m/naylib/tree/main/src/rmem.nim#L333" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
424+
<a href="https://github.com/planetis-m/naylib/edit/main/src/rmem.nim#L333" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
425425

426426
</dd>
427427
</div>
@@ -516,7 +516,7 @@ <h1><a class="toc-backref" href="#12">Procs</a></h1>
516516
<div class="twelve-columns footer">
517517
<span class="nim-sprite"></span>
518518
<br>
519-
<small style="color: var(--hint);">Made with Nim. Generated: 2024-11-18 10:09:57 UTC</small>
519+
<small style="color: var(--hint);">Made with Nim. Generated: 2024-11-23 12:19:28 UTC</small>
520520
</div>
521521
</div>
522522
</div>

naylib.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Package
22

3-
version = "24.47.1"
3+
version = "24.48.0"
44
author = "Antonis Geralis"
55
description = "Raylib Nim wrapper"
66
license = "MIT"

src/raylib.nim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,8 @@ proc getWindowScaleDPI*(): Vector2 {.importc: "GetWindowScaleDPI", sideEffect.}
882882
proc getMonitorNameImpl(monitor: int32): cstring {.importc: "GetMonitorName", sideEffect.}
883883
proc setClipboardTextImpl(text: cstring) {.importc: "SetClipboardText", sideEffect.}
884884
proc getClipboardTextImpl(): cstring {.importc: "GetClipboardText", sideEffect.}
885+
proc getClipboardImage*(): Image {.importc: "GetClipboardImage", sideEffect.}
886+
## Get clipboard image content
885887
proc enableEventWaiting*() {.importc: "EnableEventWaiting", sideEffect.}
886888
## Enable waiting for events on EndDrawing(), no automatic event polling
887889
proc disableEventWaiting*() {.importc: "DisableEventWaiting", sideEffect.}

src/raylib/platforms/rcore_web.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,8 +771,11 @@ Vector2 GetWindowPosition(void)
771771
// Get window scale DPI factor for current monitor
772772
Vector2 GetWindowScaleDPI(void)
773773
{
774-
TRACELOG(LOG_WARNING, "GetWindowScaleDPI() not implemented on target platform");
775-
return (Vector2){ 1.0f, 1.0f };
774+
// NOTE: Returned scale is relative to the current monitor where the browser window is located
775+
Vector2 scale = { 1.0f, 1.0f };
776+
scale.x = (float)EM_ASM_DOUBLE( { return window.devicePixelRatio; } );
777+
scale.y = scale.x;
778+
return scale;
776779
}
777780

778781
// Set clipboard text content

src/raylib/raylib.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**********************************************************************************************
22
*
3-
* raylib v5.5 - A simple and easy-to-use library to enjoy videogames programming (www.raylib.com)
3+
* raylib v5.6-dev - A simple and easy-to-use library to enjoy videogames programming (www.raylib.com)
44
*
55
* FEATURES:
66
* - NO external dependencies, all required libraries included with raylib
@@ -88,9 +88,9 @@
8888
#include <stdarg.h> // Required for: va_list - Only used by TraceLogCallback
8989

9090
#define RAYLIB_VERSION_MAJOR 5
91-
#define RAYLIB_VERSION_MINOR 5
91+
#define RAYLIB_VERSION_MINOR 6
9292
#define RAYLIB_VERSION_PATCH 0
93-
#define RAYLIB_VERSION "5.5"
93+
#define RAYLIB_VERSION "5.6-dev"
9494

9595
// Function specifiers in case library is build/used as a shared library
9696
// NOTE: Microsoft specifiers to tell compiler that symbols are imported/exported from a .dll

0 commit comments

Comments
 (0)