Commit graph

515 commits

Author SHA1 Message Date
Kyle
4a4f1ef82e
Remove purego implementation 2024-05-22 09:55:19 -05:00
JupiterRider
9fe64ac4bd Fix MatrixToFloat 2024-05-22 16:23:31 +02:00
JupiterRider
86d08a7b86 MultMatrix for purego added 2024-05-22 15:37:00 +02:00
Kyle
426bcb3529
Fix typo 2024-05-22 07:12:22 -05:00
Kyle
b56bfca1e8
Update rlgl_purego.go correctly 2024-05-21 15:31:37 -05:00
JupiterRider
4c0391d217 comment fixed 2024-05-14 23:22:31 +02:00
JupiterRider
fa7e76c6a6 implement va_list for tracelog callbacks in purego 2024-05-14 23:17:31 +02:00
JupiterRider
6fd7907d31 Use fmt.Sprintf for TraceLog to match with cgo 2024-05-14 23:09:47 +02:00
JupiterRider
ac27873749 MAX_TRACELOG_BUFFER_SIZE is 256 since raylib 4.5 2024-05-14 22:49:48 +02:00
Kyle
49242a59c9
Update rlgl_purego.go 2024-05-13 07:15:11 -05:00
Kyle Rockman
da79f1d8b6 fix function to actually work 2024-05-11 19:38:23 -05:00
Kyle
032352a5ba
Update rlgl_cgo.go 2024-05-11 19:16:35 -05:00
Milan Nikolic
f68049cf26
Update darwin flags 2024-05-09 17:21:52 +02:00
Milan Nikolic
4b3ab504c8
Update RGFW 2024-05-09 17:21:05 +02:00
Milan Nikolic
9b53342ac0
Fix Android internal storage, issue #365 2024-05-09 08:27:51 +02:00
Milan Nikolic
21775d2dee
Silence warnings 2024-05-08 11:26:39 +02:00
Milan Nikolic
451c14ce9f
Comment redefinitions 2024-05-08 11:25:08 +02:00
Milan Nikolic
45279d6d25
Silence warnings 2024-05-08 11:19:01 +02:00
Milan Nikolic
8a207901da
Fix DRM build 2024-05-08 10:50:08 +02:00
Milan Nikolic
6fa153fa53
Update dependencies 2024-05-08 10:31:41 +02:00
Milan Nikolic
7810550d63
Add RGFW backend 2024-05-08 10:30:05 +02:00
Milan Nikolic
1868520849
Update C sources 2024-05-07 21:54:39 +02:00
Milan Nikolic
2a66186c7d
Merge pull request #381 from ajsosa/borderless
Expose ToggleBorderlessWindowed() to golang.
2024-05-07 11:00:38 +02:00
JFAexe
19429cd00d Add missing WaitTime 2024-05-05 10:21:22 +03:00
ajsosa
1c9f65903d
Expose ToggleBorderlessWindowed() to golang. 2024-04-28 18:30:46 -05:00
Gabriel Da Silva Marques
4523bcd71d Added custom frame control functions to rcore.go
Added SwapScreenBuffer() and PollInputEvents into rcore.go with corresponding comments
To use them it's necessary to build with CGO_CFLAGS="-DSUPPORT_CUSTOM_FRAME_CONTROL=1"
Also added more info in the raylib_purego.go file for theses two functions in order to inform that the dll must be recompiled
2024-04-24 18:10:35 +02:00
JupiterRider
8545220e18
Don't use struct return values
This fixes https://github.com/gen2brain/raylib-go/issues/376
2024-04-21 20:27:15 +02:00
Alessandro Cuppari
e717485867 fix: args should be pointers 2024-04-18 13:59:55 +01:00
Alessandro Cuppari
39b56ef013 feat: add DrawTextPro 2024-04-16 21:55:35 +01:00
Milan Nikolic
c3665eb9ab
Add x11 build tag 2024-02-27 12:46:48 +01:00
Milan Nikolic
069b39e688
Fix android build 2024-02-27 07:48:19 +01:00
Milan Nikolic
caf96ad1c0
Update cgo 2024-02-26 09:29:23 +01:00
Milan Nikolic
83c4beb421
Add wayland files 2024-02-26 09:26:41 +01:00
Milan Nikolic
5abcc8b79c
Update wayland script 2024-02-26 09:26:12 +01:00
Milan Nikolic
8596a5db72
Rename wayland functions 2024-02-26 09:25:40 +01:00
Milan Nikolic
ce43cc1f10
Remove deps 2024-02-26 09:24:04 +01:00
Milan Nikolic
9a0e172ca7
Update GLFW 2024-02-26 09:23:08 +01:00
Oleksandr Kryvonos
a870a09894 variadic parameter for runesNumber in LoadFontEx 2024-02-25 12:18:39 +01:00
Oleksandr Kryvonos
a490f10c86 copied only changes 2024-02-24 20:39:33 +01:00
JupiterRider
3bc33ec8b7 Update rlgl_cgo.go 2024-01-23 17:58:33 +01:00
JupiterRider
2a08e83ca4 Fix typo and data-types 2024-01-23 17:56:50 +01:00
Daniel 'ShellFu' Kendrick
0b58bcbe1b Add Compute Shader and SSBO Functions to raylib-go in rlgl_purego.go
This commit introduces functions related to compute shaders and
Shader Buffer Storage Objects (SSBOs) in raylib-go. It adds
bindings for loading, dispatching, and managing compute shaders
and SSBOs, aligning raylib-go more closely with the raylib C
library's capabilities. Specifically, the functions added are
`LoadComputeShaderProgram`, `ComputeShaderDispatch`, `LoadShaderBuffer`,
`UnloadShaderBuffer`, `UpdateShaderBuffer`, `BindShaderBuffer`,
`ReadShaderBuffer`, and `CopyShaderBuffer`. These additions enhance
raylib-go's utility for more advanced GPU operations.
2024-01-22 16:19:55 -07:00
Daniel 'ShellFu' Kendrick
5c31cc3104 Add Compute Shader and SSBO Functions to raylib-go
This commit introduces functions related to compute shaders and
Shader Buffer Storage Objects (SSBOs) in raylib-go. It adds
bindings for loading, dispatching, and managing compute shaders
and SSBOs, aligning raylib-go more closely with the raylib C
library's capabilities. Specifically, the functions added are
`LoadComputeShaderProgram`, `ComputeShaderDispatch`, `LoadShaderBuffer`,
`UnloadShaderBuffer`, `UpdateShaderBuffer`, `BindShaderBuffer`,
`ReadShaderBuffer`, and `CopyShaderBuffer`. These additions enhance
raylib-go's utility for more advanced GPU operations.
2024-01-21 11:08:17 -07:00
Daniel 'ShellFu' Kendrick
1f80c1e4c2 Removed test per maintainer instruction, added back in ImageFromImage and LoadTextureCubemap 2024-01-15 13:20:45 -07:00
Daniel 'ShellFu' Kendrick
509ad7da5c Align raylib-go ExportImage with C Library Behavior
The original raylib C library's ExportImage function returns a boolean to
indicate the success or failure of the export operation. This behavior was
missing in the raylib-go implementation, which provided no return value,
thereby limiting error handling capabilities.

This commit updates the ExportImage function in raylib-go to return a boolean
or an error, aligning it with its C counterpart and enabling idiomatic Go
error handling. The change includes updates to the function and tests to
reflect the new return type. This enhancement increases robustness and clarity
in error handling for Go developers using raylib-go.

The test suite has been updated and run to ensure the correct functioning of
the modified ExportImage function, with results confirming the expected
behavior in both successful and unsuccessful scenarios.

- Daniel "ShellFu" Kendrick
2024-01-15 12:20:40 -07:00
Pierre Curto
b63c9257c5 add ImageFromImage() 2024-01-10 10:22:54 +01:00
Snowminx
48241c48d2
fix: update purego signature to match 2023-12-29 20:42:43 -08:00
Snowminx
9553e2fd26
Merge branch 'gen2brain:master' into master 2023-12-29 20:40:08 -08:00
JupiterRider
6656db4829 Change signature of LoadFontFromMemory in raylib/rtext.go to match with purego version 2023-12-28 16:06:40 +01:00
Snowminx
5c6d0848aa
Merge branch 'gen2brain:master' into master 2023-12-24 19:22:17 -08:00