Skip to content

Commit 54209b2

Browse files
committed
update raylib
1 parent d273b2e commit 54209b2

45 files changed

Lines changed: 7625 additions & 4148 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/raylib.html

Lines changed: 1160 additions & 1139 deletions
Large diffs are not rendered by default.

docs/raymath.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2777,7 +2777,7 @@ <h1><a class="toc-backref" href="#19">Exports</a></h1>
27772777
<div class="twelve-columns footer">
27782778
<span class="nim-sprite"></span>
27792779
<br>
2780-
<small style="color: var(--hint);">Made with Nim. Generated: 2025-09-12 16:57:17 UTC</small>
2780+
<small style="color: var(--hint);">Made with Nim. Generated: 2025-10-18 10:47:41 UTC</small>
27812781
</div>
27822782
</div>
27832783
</div>

docs/rcamera.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ <h1><a class="toc-backref" href="#19">Exports</a></h1>
418418
<div class="twelve-columns footer">
419419
<span class="nim-sprite"></span>
420420
<br>
421-
<small style="color: var(--hint);">Made with Nim. Generated: 2025-09-12 16:57:19 UTC</small>
421+
<small style="color: var(--hint);">Made with Nim. Generated: 2025-10-18 10:47:42 UTC</small>
422422
</div>
423423
</div>
424424
</div>

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: 2025-09-12 16:57:18 UTC</small>
605+
<small style="color: var(--hint);">Made with Nim. Generated: 2025-10-18 10:47:42 UTC</small>
606606
</div>
607607
</div>
608608
</div>

docs/rlgl.html

Lines changed: 514 additions & 433 deletions
Large diffs are not rendered by default.

docs/rmem.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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: 2025-09-12 16:57:19 UTC</small>
519+
<small style="color: var(--hint);">Made with Nim. Generated: 2025-10-18 10:47:42 UTC</small>
520520
</div>
521521
</div>
522522
</div>

manual/alternatives_table.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ SaveFileData writeFile seq[byte] overload
1414
LoadFileText readFile
1515
SaveFileText writeFile string overload
1616
FileExists os.fileExists
17+
FileRename os.moveFile Use moveFile for renaming
18+
FileRemove os.removeFile Use removeFile to delete
19+
FileCopy os.copyFile Use copyFile
20+
FileMove os.moveFile Use moveFile
21+
FileTextReplace strutils.replace Use replace from strutils
22+
FileTextFindIndex strutils.find Use find from strutils
1723
DirectoryExists os.dirExists
1824
IsFileExtension strutils.endsWith
1925
GetFileExtension os.splitFile, os.searchExtPos
@@ -46,6 +52,9 @@ TextLength len
4652
TextFormat strutils.format, strformat.`&`
4753
TextSubtext substr
4854
TextReplace strutils.replace, strutils.multiReplace
55+
TextRemoveSpaces strutils.strip, strutils.multiReplace Use strip or multiReplace to remove spaces
56+
GetTextBetween Manual implementation Need to write a custom function
57+
TextReplaceBetween Manual implementation Need to write a custom function
4958
TextInsert insert
5059
TextJoin strutils.join
5160
TextSplit strutils.split, unicode.split
@@ -92,6 +101,7 @@ DecodeDataBase64 base64.decode
92101
ComputeCRC32 crunchy.crc32 External package
93102
ComputeMD5 checksums.md5 External package
94103
ComputeSHA1 checksums.sha1 External package
104+
ComputeSHA256 checksums.sha256 External package
95105
================== ===================== ================
96106

97107
Misc

src/raylib.nim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,6 +1144,8 @@ proc drawLine*(startPos: Vector2, endPos: Vector2, thick: float32, color: Color)
11441144
proc drawLineStripImpl(points: ptr UncheckedArray[Vector2], pointCount: int32, color: Color) {.importc: "DrawLineStrip", sideEffect.}
11451145
proc drawLineBezier*(startPos: Vector2, endPos: Vector2, thick: float32, color: Color) {.importc: "DrawLineBezier", sideEffect.}
11461146
## Draw line segment cubic-bezier in-out interpolation
1147+
proc drawLineDashed*(startPos: Vector2, endPos: Vector2, dashSize: int32, spaceSize: int32, color: Color) {.importc: "DrawLineDashed", sideEffect.}
1148+
## Draw a dashed line
11471149
proc drawCircle*(centerX: int32, centerY: int32, radius: float32, color: Color) {.importc: "DrawCircle", sideEffect.}
11481150
## Draw a color-filled circle
11491151
proc drawCircleSector*(center: Vector2, radius: float32, startAngle: float32, endAngle: float32, segments: int32, color: Color) {.importc: "DrawCircleSector", sideEffect.}

src/raylib/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ else()
6969
endif()
7070

7171
if (${PLATFORM} MATCHES "Web")
72-
target_link_options(raylib PUBLIC "-sUSE_GLFW=3")
72+
target_link_options(raylib PUBLIC "-sUSE_GLFW=3" -sEXPORTED_RUNTIME_METHODS=ccall)
7373
if(${GRAPHICS} MATCHES "GRAPHICS_API_OPENGL_ES3")
7474
target_link_options(raylib PUBLIC "-sMIN_WEBGL_VERSION=2")
7575
target_link_options(raylib PUBLIC "-sMAX_WEBGL_VERSION=2")
@@ -92,6 +92,7 @@ if (BUILD_SHARED_LIBS)
9292
endif ()
9393

9494
target_link_libraries(raylib PRIVATE $<BUILD_INTERFACE:${LIBS_PRIVATE}>)
95+
target_link_libraries(raylib PUBLIC ${LIBS_PUBLIC})
9596

9697
# Sets some compile time definitions for the pre-processor
9798
# If CUSTOMIZE_BUILD option is on you will not use config.h by default

src/raylib/Makefile

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -235,20 +235,22 @@ endif
235235
# NOTE: By default use OpenGL 3.3 on desktop platforms
236236
ifeq ($(TARGET_PLATFORM),PLATFORM_DESKTOP_GLFW)
237237
GRAPHICS ?= GRAPHICS_API_OPENGL_33
238-
#GRAPHICS = GRAPHICS_API_OPENGL_11 # Uncomment to use OpenGL 1.1
239-
#GRAPHICS = GRAPHICS_API_OPENGL_21 # Uncomment to use OpenGL 2.1
240-
#GRAPHICS = GRAPHICS_API_OPENGL_43 # Uncomment to use OpenGL 4.3
241-
#GRAPHICS = GRAPHICS_API_OPENGL_ES2 # Uncomment to use OpenGL ES 2.0 (ANGLE)
238+
#GRAPHICS = GRAPHICS_API_OPENGL_11_SOFTWARE # Uncomment to use software rendering
239+
#GRAPHICS = GRAPHICS_API_OPENGL_11 # Uncomment to use OpenGL 1.1
240+
#GRAPHICS = GRAPHICS_API_OPENGL_21 # Uncomment to use OpenGL 2.1
241+
#GRAPHICS = GRAPHICS_API_OPENGL_43 # Uncomment to use OpenGL 4.3
242+
#GRAPHICS = GRAPHICS_API_OPENGL_ES2 # Uncomment to use OpenGL ES 2.0 (ANGLE)
242243
endif
243244
ifeq ($(TARGET_PLATFORM),PLATFORM_DESKTOP_SDL)
244245
GRAPHICS ?= GRAPHICS_API_OPENGL_33
245246
endif
246247
ifeq ($(TARGET_PLATFORM),PLATFORM_DESKTOP_RGFW)
247248
GRAPHICS ?= GRAPHICS_API_OPENGL_33
248-
#GRAPHICS = GRAPHICS_API_OPENGL_11 # Uncomment to use OpenGL 1.1
249-
#GRAPHICS = GRAPHICS_API_OPENGL_21 # Uncomment to use OpenGL 2.1
250-
#GRAPHICS = GRAPHICS_API_OPENGL_43 # Uncomment to use OpenGL 4.3
251-
#GRAPHICS = GRAPHICS_API_OPENGL_ES2 # Uncomment to use OpenGL ES 2.0 (ANGLE)
249+
#GRAPHICS = GRAPHICS_API_OPENGL_11_SOFTWARE # Uncomment to use software rendering
250+
#GRAPHICS = GRAPHICS_API_OPENGL_11 # Uncomment to use OpenGL 1.1
251+
#GRAPHICS = GRAPHICS_API_OPENGL_21 # Uncomment to use OpenGL 2.1
252+
#GRAPHICS = GRAPHICS_API_OPENGL_43 # Uncomment to use OpenGL 4.3
253+
#GRAPHICS = GRAPHICS_API_OPENGL_ES2 # Uncomment to use OpenGL ES 2.0 (ANGLE)
252254
endif
253255
ifeq ($(TARGET_PLATFORM),PLATFORM_DRM)
254256
# On DRM OpenGL ES 2.0 must be used
@@ -517,7 +519,7 @@ endif
517519
#------------------------------------------------------------------------------------------------
518520
LDFLAGS = $(CUSTOM_LDFLAGS) -L. -L$(RAYLIB_RELEASE_PATH)
519521

520-
ifeq ($(TARGET_PLATFORM),PLATFORM_DESKTOP_GLFW)
522+
ifeq ($(TARGET_PLATFORM),$(filter $(TARGET_PLATFORM),PLATFORM_DESKTOP_GLFW PLATFORM_DESKTOP_SDL PLATFORM_DESKTOP_RGFW))
521523
ifeq ($(PLATFORM_OS),WINDOWS)
522524
ifneq ($(CC), tcc)
523525
LDFLAGS += -Wl,--out-implib,$(RAYLIB_RELEASE_PATH)/lib$(RAYLIB_LIB_NAME)dll.a
@@ -534,7 +536,6 @@ ifeq ($(TARGET_PLATFORM),PLATFORM_DESKTOP_GLFW)
534536
endif
535537
endif
536538
ifeq ($(TARGET_PLATFORM),PLATFORM_DESKTOP_SDL)
537-
LDFLAGS += -Wl,-soname,lib$(RAYLIB_LIB_NAME).so.$(RAYLIB_API_VERSION)
538539
LDFLAGS += -L$(SDL_LIBRARY_PATH)
539540
endif
540541
ifeq ($(TARGET_PLATFORM),$(filter $(TARGET_PLATFORM),PLATFORM_WEB PLATFORM_WEB_RGFW))

0 commit comments

Comments
 (0)