Commit graph

823 commits

Author SHA1 Message Date
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
Milan Nikolic
0b93fbfb6f
Merge pull request #382 from JFAexe/cgo-waittime
Add missing WaitTime
2024-05-07 11:00:21 +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
Milan Nikolic
f406ea403b
Merge pull request #379 from gabriel-marques/master
Added custom frame control functions to rcore.go
2024-04-24 19:27:46 +02: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
Milan Nikolic
278df68f40
Merge pull request #377 from JupiterRider/fix-return-values
Don't use struct return values
2024-04-21 21:10:56 +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
Milan Nikolic
9548fadb54
Merge pull request #375 from alessandrojcm/master
feat: add DrawTextPro
2024-04-18 17:02:28 +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
53f26d8a08
Merge pull request #371 from jdbann/fix-scroll-panel-view
Fix ScrollPanel view binding
2024-04-08 15:05:34 +02:00
John Bannister
0b4f8b1cc0 Fix ScrollPanel view binding
The values on the view parameter of ScrollPanel() should be updated with
the values set by the C method.
2024-04-07 14:12:03 +01:00
Milan Nikolic
c3665eb9ab
Add x11 build tag 2024-02-27 12:46:48 +01:00
Milan Nikolic
00f5f785e6
Update android example 2024-02-27 07:54:10 +01:00
Milan Nikolic
069b39e688
Fix android build 2024-02-27 07:48:19 +01:00
Milan Nikolic
468523fda4
Update README.md 2024-02-26 09:45:57 +01:00
Milan Nikolic
3889376dd3
Update actions 2024-02-26 09:38:46 +01:00
Milan Nikolic
cc776abd3b
Update actions 2024-02-26 09:35:31 +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
Milan Nikolic
0b7f0bb776
Merge pull request #352 from uprun/only-changes-2024-02-24
added LoadFontExByRunesNumber
2024-02-25 13:24:01 +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
Milan Nikolic
83d871a38f
Merge pull request #348 from unklnik/master
Update README.md
2024-01-25 12:10:08 +01:00
unkl nik
a5d0d71e50 Update README.md 2024-01-25 12:55:45 +02:00
Milan Nikolic
0e9c277161
Merge pull request #345 from shellfu/Issue-343
Add Compute Shader and SSBO Functions to raylib-go in `rlgl_purego.go`
2024-01-23 19:00:55 +01:00
ShellFu
74450e33c1
Merge pull request #1 from JupiterRider/Issue-343
Fixed  types and typos
2024-01-23 10:32:55 -07: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
Milan Nikolic
5cc3226b35
Merge pull request #344 from shellfu/Issue-343
Add Compute Shader and SSBO Functions to raylib-go
2024-01-22 14:23:02 +01: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
Milan Nikolic
49aab27a9b
Merge pull request #342 from shellfu/Issue-341
Align raylib-go ExportImage with C Library Behavior
2024-01-16 13:05:07 +01: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
Milan Nikolic
483e94e4d9
Merge pull request #339 from pierrec/master
add ImageFromImage()
2024-01-10 11:28:18 +01:00
Pierre Curto
b63c9257c5 add ImageFromImage() 2024-01-10 10:22:54 +01:00
Milan Nikolic
b32467e017
Merge pull request #337 from JupiterRider/master
physics.GetBodies: return only non nil (active) bodies
2024-01-09 17:17:35 +01:00
JupiterRider
381d68b2a3 physics.GetBodies: return only non nil (active) bodies 2024-01-09 16:54:02 +01:00
Milan Nikolic
17ce081452
Merge pull request #332 from Gamerfiend/master
feat: update rtextures.go to have the func LoadTextureCubemap.
2023-12-30 16:04:16 +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
Milan Nikolic
6f8b5ec246
Merge pull request #334 from JupiterRider/master
Change signature of LoadFontFromMemory in raylib/rtext.go
2023-12-29 14:48:53 +01:00
JupiterRider
6656db4829 Change signature of LoadFontFromMemory in raylib/rtext.go to match with purego version 2023-12-28 16:06:40 +01:00