cSDL_image/README.md

25 lines
821 B
Markdown
Raw Normal View History

2022-08-30 13:05:31 +02:00
# Simple DirectMedia Layer SDL sublibrary SDL_image 1.2.12 repository for CASIO fx-CG 10/20 (a.k.a. PRIZM) and fx-CG 50 (or Graph 90+E)
2022-05-05 22:05:33 +02:00
Need to have a fully working gcc toolchain for SH3/SH4 architecture, such as fxSDK
2022-08-30 13:05:31 +02:00
You can use the `giteapc install Slyvtt/cSDL_image` command to get an automatic install
2022-05-05 22:05:33 +02:00
2022-08-30 13:05:31 +02:00
## Using in a program
2022-05-05 22:05:33 +02:00
2022-08-30 13:05:31 +02:00
With CMake
2022-05-05 22:05:33 +02:00
2022-08-30 13:05:31 +02:00
```cmake
find_package(cSDL_image 1.2.12 REQUIRED)
target_link_libraries(<TARGET> PRIVATE cSDL_image::cSDL_image)
```
2022-05-05 22:05:33 +02:00
2022-08-30 13:05:31 +02:00
With make, the following steps are not automatically done, so please proceed with the following manipulations :
* copy the library `libcSDL_image.a` into your SH3/SH4 compiler lib folder
* copy all header files `*.h` in the include folder `include/SDL` of the SH3/SH4 compiler
* link with `-lcSDL_image`
2022-05-05 22:05:33 +02:00
2022-08-30 13:05:31 +02:00
In the C/C++ sources `#include <SDL/SDL_image.h>`