Commit graph

32 commits

Author SHA1 Message Date
JupiterRider
8d97c05afb IsRenderTextureReady has been renamed 2024-11-24 14:46:58 +01:00
JupiterRider
dbf9ed2bff IsTextureReady has been renamed 2024-11-24 14:44:41 +01:00
JupiterRider
d81d956c18 ImageDrawTriangle*-functions added 2024-11-24 14:41:13 +01:00
JupiterRider
07d2a6efde ImageDrawLineEx function added 2024-11-24 12:45:32 +01:00
JupiterRider
19bdd59547 ImageKernelConvolution function added 2024-11-24 12:39:13 +01:00
JupiterRider
bf03596ee4 ImageFromChannel function added 2024-11-24 12:28:19 +01:00
JupiterRider
23f1ab19b7 Update LoadImageAnim to match purego signature 2024-11-24 12:20:06 +01:00
JupiterRider
4da4ec54eb LoadImageAnimFromMemory function added 2024-11-24 12:17:59 +01:00
JupiterRider
873552f31a IsImageReady() is now IsImageValid() 2024-11-23 21:43:16 +01:00
JupiterRider
05860b8650 LoadImageSvg() has been removed 2024-11-23 21:40:07 +01:00
imprity
2053879bfb Fix NewImageFromImage color converting
Old version of NewImageFromImage converted colors incorrectly.
This commit fixes the issue.
2024-09-15 09:54:51 +09: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
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
Snowminx
4bb9631420
feat: update rtextures.go to have the func LoadTextureCubemap. 2023-12-24 12:40:03 -08:00
Milan Nikolic
f953e65a3a
Move functions 2023-11-09 08:55:58 +01:00
Milan Nikolic
42fa435e0f
Add new textures functions 2023-11-08 19:08:52 +01:00
Milan Nikolic
af9daf8452
Add SDL backend 2023-11-04 13:08:38 +01:00
Allen Ray
fac9477f84 Add UnloadImageColors 2023-10-21 12:15:35 -04:00
JupiterRider
bb7c8b3f3b Add more new functions 2023-05-11 16:36:48 +02:00
JupiterRider
896586af0d Add new functions 2023-05-09 20:15:53 +02:00
JupiterRider
9e86471b2f Remove deprecaded functions, fix build errors/warnings 2023-04-07 21:22:05 +02:00
Alessandro Cuppari
971b452217 Fixed signature of ImageDrawLineV 2022-10-31 14:19:58 +00:00
Alessandro Cuppari
4ff5b2cdc8 Added ImageDrawLine and ImageDrawLineV 2022-10-31 14:07:32 +00:00
Milan Nikolic
faa881fe83
Add new functions 2022-10-23 14:50:15 +02:00
Milan Nikolic
cf628212a1
Add new functions 2022-08-27 16:51:14 +02:00
Milan Nikolic
7b9bbbba96
Add DrawTextureTiled, fixes #170 2022-03-23 14:09:10 +01:00
Milan Nikolic
29ba3cc508
Use color.RGBA, fixes 144 2021-11-14 12:16:02 +01:00
Milan Nikolic
914ca1ffdc
Add new functions 2021-11-11 18:34:45 +01:00
Milan Nikolic
2013bc4628
Update/add Go functions 2021-11-11 16:34:15 +01:00
Renamed from raylib/textures.go (Browse further)