Skip to content

Commit

Permalink
raymath is autogenerated by the API definition file (#156)
Browse files Browse the repository at this point in the history
* raymath is autogenerated

* update bindings

* v24.48.0
  • Loading branch information
planetis-m authored Nov 23, 2024
1 parent e554896 commit e7a0a58
Show file tree
Hide file tree
Showing 16 changed files with 2,664 additions and 4,239 deletions.
2,966 changes: 1,500 additions & 1,466 deletions docs/raylib.html

Large diffs are not rendered by default.

1,691 changes: 945 additions & 746 deletions docs/raymath.html

Large diffs are not rendered by default.

341 changes: 2 additions & 339 deletions docs/rcamera.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/reasings.html
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ <h1><a class="toc-backref" href="#12">Procs</a></h1>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-11-18 10:09:56 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-11-23 12:19:27 UTC</small>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/rlgl.html
Original file line number Diff line number Diff line change
Expand Up @@ -4192,7 +4192,7 @@ <h1><a class="toc-backref" href="#18">Templates</a></h1>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-11-18 10:09:55 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-11-23 12:19:25 UTC</small>
</div>
</div>
</div>
Expand Down
22 changes: 11 additions & 11 deletions docs/rmem.html
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ <h1><a class="toc-backref" href="#7">Types</a></h1>
<dd>


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

</dd>
</div>
Expand Down Expand Up @@ -296,8 +296,8 @@ <h1><a class="toc-backref" href="#12">Procs</a></h1>
<dd>


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

</dd>
</div>
Expand Down Expand Up @@ -387,8 +387,8 @@ <h1><a class="toc-backref" href="#12">Procs</a></h1>
<dd>


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

</dd>
</div>
Expand All @@ -397,8 +397,8 @@ <h1><a class="toc-backref" href="#12">Procs</a></h1>
<dd>


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

</dd>
</div>
Expand All @@ -420,8 +420,8 @@ <h1><a class="toc-backref" href="#12">Procs</a></h1>
<dd>


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

</dd>
</div>
Expand Down Expand Up @@ -516,7 +516,7 @@ <h1><a class="toc-backref" href="#12">Procs</a></h1>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-11-18 10:09:57 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2024-11-23 12:19:28 UTC</small>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion naylib.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "24.47.1"
version = "24.48.0"
author = "Antonis Geralis"
description = "Raylib Nim wrapper"
license = "MIT"
Expand Down
2 changes: 2 additions & 0 deletions src/raylib.nim
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,8 @@ proc getWindowScaleDPI*(): Vector2 {.importc: "GetWindowScaleDPI", sideEffect.}
proc getMonitorNameImpl(monitor: int32): cstring {.importc: "GetMonitorName", sideEffect.}
proc setClipboardTextImpl(text: cstring) {.importc: "SetClipboardText", sideEffect.}
proc getClipboardTextImpl(): cstring {.importc: "GetClipboardText", sideEffect.}
proc getClipboardImage*(): Image {.importc: "GetClipboardImage", sideEffect.}
## Get clipboard image content
proc enableEventWaiting*() {.importc: "EnableEventWaiting", sideEffect.}
## Enable waiting for events on EndDrawing(), no automatic event polling
proc disableEventWaiting*() {.importc: "DisableEventWaiting", sideEffect.}
Expand Down
7 changes: 5 additions & 2 deletions src/raylib/platforms/rcore_web.c
Original file line number Diff line number Diff line change
Expand Up @@ -771,8 +771,11 @@ Vector2 GetWindowPosition(void)
// Get window scale DPI factor for current monitor
Vector2 GetWindowScaleDPI(void)
{
TRACELOG(LOG_WARNING, "GetWindowScaleDPI() not implemented on target platform");
return (Vector2){ 1.0f, 1.0f };
// NOTE: Returned scale is relative to the current monitor where the browser window is located
Vector2 scale = { 1.0f, 1.0f };
scale.x = (float)EM_ASM_DOUBLE( { return window.devicePixelRatio; } );
scale.y = scale.x;
return scale;
}

// Set clipboard text content
Expand Down
6 changes: 3 additions & 3 deletions src/raylib/raylib.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**********************************************************************************************
*
* raylib v5.5 - A simple and easy-to-use library to enjoy videogames programming (www.raylib.com)
* raylib v5.6-dev - A simple and easy-to-use library to enjoy videogames programming (www.raylib.com)
*
* FEATURES:
* - NO external dependencies, all required libraries included with raylib
Expand Down Expand Up @@ -88,9 +88,9 @@
#include <stdarg.h> // Required for: va_list - Only used by TraceLogCallback

#define RAYLIB_VERSION_MAJOR 5
#define RAYLIB_VERSION_MINOR 5
#define RAYLIB_VERSION_MINOR 6
#define RAYLIB_VERSION_PATCH 0
#define RAYLIB_VERSION "5.5"
#define RAYLIB_VERSION "5.6-dev"

// Function specifiers in case library is build/used as a shared library
// NOTE: Microsoft specifiers to tell compiler that symbols are imported/exported from a .dll
Expand Down
1 change: 1 addition & 0 deletions src/raylib/rtext.c
Original file line number Diff line number Diff line change
Expand Up @@ -1339,6 +1339,7 @@ Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing
int GetGlyphIndex(Font font, int codepoint)
{
int index = 0;
if (!IsFontValid(font)) return index;

#define SUPPORT_UNORDERED_CHARSET
#if defined(SUPPORT_UNORDERED_CHARSET)
Expand Down
Loading

0 comments on commit e7a0a58

Please sign in to comment.