Commit graph

887 commits

Author SHA1 Message Date
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
Snowminx
5c6d0848aa
Merge branch 'gen2brain:master' into master 2023-12-24 19:22:17 -08:00
Snowminx
1cee1d0534
fix: pass by value to c function 2023-12-24 19:21:57 -08:00
Snowminx
656b4a4a8d
fix: update to convert params to cgo 2023-12-24 18:36:56 -08:00
Milan Nikolic
6c3c38896e
Merge pull request #330 from Fluffy-Bean/master
Fix Grid mouseCell not updaing value
2023-12-25 03:18:19 +01:00
Milan Nikolic
ac28b4b4f1
Merge pull request #329 from CollCaz/master
Updated link to physac.h
2023-12-25 03:18:11 +01:00
Milan Nikolic
03d38e920f
Merge pull request #325 from jpgleeson/add-triangle-3d-binding
Add binding for DrawTriangle3D to rmodels.go
2023-12-25 03:18:02 +01:00
Snowminx
4bb9631420
feat: update rtextures.go to have the func LoadTextureCubemap. 2023-12-24 12:40:03 -08:00
Michał
cf285a20a1
Fix mouseCell pointer not updaing value 2023-12-19 14:38:36 +00:00
Yassen Tombokti
69512c77d6
Merge pull request #1 from CollCaz/CollCaz-patch-1
Updated the link to physac.h to point to the correct location.
2023-12-18 22:03:41 +00:00
Yassen Tombokti
2bee857547
Update README.md 2023-12-18 21:59:40 +00:00
jack gleeson
19dc46f86c Add binding for DrawTriangle3D to rmodels.go 2023-12-06 19:51:46 -08:00
Milan Nikolic
48309e2407
Merge pull request #322 from swazzles/master
Add flag for borderless windowed mode
2023-11-23 18:44:46 +01:00
Milan Nikolic
7ef92adf08
Merge pull request #321 from JupiterRider/master
Update purego
2023-11-23 18:39:35 +01:00
swazzles
34ea0cc7f5 Add flag for borderless windowed mode 2023-11-23 22:51:51 +11:00
JupiterRider
a5d2760b16 Remove obsolete comment 2023-11-22 19:06:35 +01:00
JupiterRider
f537de6ed9 go mod tidy 2023-11-22 16:29:10 +01:00
JupiterRider
f239fe2f67 Updat purego to 192c5e846faa64025fb8a6a94532c7a77fbd8dce 2023-11-22 16:26:21 +01:00
Milan Nikolic
a9659ea9c9
Merge pull request #318 from JupiterRider/master
Purego rlgl implemented
2023-11-18 19:18:07 +01:00
JupiterRider
db3e0be60e go mod tidy examples 2023-11-18 19:06:12 +01:00
JupiterRider
43d0a14b92
Merge branch 'master' into master 2023-11-18 18:56:48 +01:00
JupiterRider
2be56088ed Update modules 2023-11-18 18:50:49 +01:00
JupiterRider
fdd3d616da Update purego 2023-11-18 18:41:43 +01:00
JupiterRider
79286ba625 Make rlgl types public and add missung functions 2023-11-18 18:27:35 +01:00
JupiterRider
251b88bcb4 Purego rlgl implemented 2023-11-18 15:11:00 +01:00
Milan Nikolic
fed470e445
Update modules 2023-11-18 14:12:54 +01:00
Milan Nikolic
a1c890e8cb
Update C sources 2023-11-18 13:56:50 +01:00
Milan Nikolic
7637a03441
Update README.md 2023-11-17 08:09:16 +01:00
Milan Nikolic
c4b65589c7
Update README.md 2023-11-16 17:42:19 +01:00
Milan Nikolic
f09d79e85e
Merge pull request #315 from dusk125/v2-divide-by-0
Fix potential divide by 0 in vector2
2023-11-16 17:40:50 +01:00
Milan Nikolic
8c380e0735
Merge pull request #308 from JupiterRider/master
First approach for purego
2023-11-16 17:39:04 +01:00
Allen Ray
a70feefe17 Fix potential divide by 0 in vector2 2023-11-16 11:21:15 -05:00
JupiterRider
90f0980286 Remove comments. Change build tag. 2023-11-16 17:14:20 +01:00
JupiterRider
0e067872f8 Remove file/io functions. Make purego and CGO API match. 2023-11-16 17:05:29 +01:00
JupiterRider
3219556f38 Change functions to match with raylib-go (cgo version) 2023-11-16 14:35:55 +01:00
JupiterRider
81be9a803b Update README.md 2023-11-16 13:22:48 +01:00
JupiterRider
072413410f Update README.md 2023-11-16 13:18:54 +01:00