raylib-go/raylib
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
..
external Update C sources 2023-11-18 13:56:50 +01:00
platforms Update C sources 2023-11-18 13:56:50 +01:00
cgo.go Update cgo 2023-11-09 09:44:48 +01:00
cgo_android.go Fix Android build 2023-11-04 16:32:46 +01:00
cgo_darwin.go Add es3 build tag 2023-11-07 14:39:26 +01:00
cgo_darwin_sdl.go Add es3 build tag 2023-11-07 14:39:26 +01:00
cgo_freebsd.go Add es3 build tag 2023-11-07 14:39:26 +01:00
cgo_freebsd_sdl.go Add es3 build tag 2023-11-07 14:39:26 +01:00
cgo_linux.go Add es3 build tag 2023-11-07 14:39:26 +01:00
cgo_linux_drm.go Add SDL backend 2023-11-04 13:08:38 +01:00
cgo_linux_sdl.go Add es3 build tag 2023-11-07 14:39:26 +01:00
cgo_openbsd.go Add es3 build tag 2023-11-07 14:39:26 +01:00
cgo_openbsd_sdl.go Add es3 build tag 2023-11-07 14:39:26 +01:00
cgo_windows.go Add es3 build tag 2023-11-07 14:39:26 +01:00
cgo_windows_sdl.go Add es3 build tag 2023-11-07 14:39:26 +01:00
config.h Add new shapes functions 2023-11-08 19:34:50 +01:00
go.mod Updat purego to 192c5e846faa64025fb8a6a94532c7a77fbd8dce 2023-11-22 16:26:21 +01:00
go.sum Updat purego to 192c5e846faa64025fb8a6a94532c7a77fbd8dce 2023-11-22 16:26:21 +01:00
platform_android.c Fix Android 2020-09-03 23:22:07 +02:00
platform_android.go Fix Android build 2023-11-04 16:32:46 +01:00
platform_desktop.go Lint 2023-11-12 17:21:56 +01:00
platform_desktop_sdl.go Add SDL backend 2023-11-04 13:08:38 +01:00
platform_drm.go Add SDL backend 2023-11-04 13:08:38 +01:00
purego_windows.go implement version check 2023-11-16 13:06:56 +01:00
raudio.c Update C sources 2023-11-04 13:06:19 +01:00
raudio.go Move audio callback 2023-11-12 17:54:56 +01:00
raylib.go Add flag for borderless windowed mode 2023-11-23 22:51:51 +11:00
raylib.h Update C sources 2023-11-12 11:58:48 +01:00
raylib_purego.go fix: update purego signature to match 2023-12-29 20:42:43 -08:00
raymath.go Fix potential divide by 0 in vector2 2023-11-16 11:21:15 -05:00
raymath.h Update C sources 2023-11-04 13:06:19 +01:00
rcamera.go Lint 2023-11-12 17:21:56 +01:00
rcamera.h Update C sources 2023-11-04 13:06:19 +01:00
rcore.c Update C sources 2023-11-18 13:56:50 +01:00
rcore.go Update rcore 2023-11-12 20:43:27 +01:00
rgestures.go Add SDL backend 2023-11-04 13:08:38 +01:00
rgestures.h Update C sources 2023-11-04 13:06:19 +01:00
rlgl.go Make rlgl types public and add missung functions 2023-11-18 18:27:35 +01:00
rlgl.h Update C sources 2023-11-12 11:58:48 +01:00
rlgl_cgo.go Make rlgl types public and add missung functions 2023-11-18 18:27:35 +01:00
rlgl_purego.go Make rlgl types public and add missung functions 2023-11-18 18:27:35 +01:00
rmodels.c Update C sources 2023-11-04 13:06:19 +01:00
rmodels.go Add binding for DrawTriangle3D to rmodels.go 2023-12-06 19:51:46 -08:00
rshapes.c Update C sources 2023-11-09 14:32:33 +01:00
rshapes.go Lint 2023-11-12 17:21:56 +01:00
rtext.c Update C sources 2023-11-04 13:06:19 +01:00
rtext.go Change signature of LoadFontFromMemory in raylib/rtext.go to match with purego version 2023-12-28 16:06:40 +01:00
rtextures.c Update C sources 2023-11-09 14:32:33 +01:00
rtextures.go Align raylib-go ExportImage with C Library Behavior 2024-01-15 12:20:40 -07:00
rtextures_test.go Align raylib-go ExportImage with C Library Behavior 2024-01-15 12:20:40 -07:00
utils.c Update C sources 2023-11-04 13:06:19 +01:00
utils.go updated comments 2023-08-18 10:03:04 -07:00
utils.h Update C sources 2023-04-07 20:23:18 +02:00
utils_android.go updated comments 2023-08-18 10:03:04 -07:00
utils_log.c adding SetTraceLogCallback 2020-08-28 21:19:18 +01:00
utils_log.go Move TraceLogCallbackFun, add Vr structs 2023-11-12 22:15:19 +01:00
utils_log.h Fix warning -Wdll-attribute-on-redeclaration 2022-04-16 14:15:06 +02:00