Skip to content

Commit

Permalink
Sync SDL3_image header -> wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
SDLWikiBot committed May 15, 2024
1 parent 648d19f commit f764046
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 9 deletions.
23 changes: 23 additions & 0 deletions SDL3_image/IMG_Version.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
###### (This function is part of SDL_image, a separate library from SDL.)
# IMG_Version

This function gets the version of the dynamically linked SDL_image library.

## Header File

Defined in SDL_image.h

## Syntax

```c
int IMG_Version(void);

```
## Return Value
Returns SDL_image version
----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)
2 changes: 1 addition & 1 deletion SDL3_image/SDL_IMAGE_MAJOR_VERSION.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###### (This function is part of SDL_image, a separate library from SDL.)
# SDL_IMAGE_MAJOR_VERSION

Printable format: "%d.%d.%d", MAJOR, MINOR, PATCHLEVEL
Printable format: "%d.%d.%d", MAJOR, MINOR, MICRO

## Header File

Expand Down
10 changes: 3 additions & 7 deletions SDL3_image/SDL_IMAGE_VERSION.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###### (This function is part of SDL_image, a separate library from SDL.)
# SDL_IMAGE_VERSION

This macro can be used to fill a version structure with the compile-time version of the SDL_image library.
This is the version number macro for the current SDL_image version.

## Header File

Expand All @@ -10,12 +10,8 @@ Defined in SDL_image.h
## Syntax

```c
#define SDL_IMAGE_VERSION(X) \
{ \
(X)->major = SDL_IMAGE_MAJOR_VERSION; \
(X)->minor = SDL_IMAGE_MINOR_VERSION; \
(X)->patch = SDL_IMAGE_PATCHLEVEL; \
}
#define SDL_IMAGE_VERSION \
SDL_VERSIONNUM(SDL_IMAGE_MAJOR_VERSION, SDL_IMAGE_MINOR_VERSION, SDL_IMAGE_MICRO_VERSION)
```
----
Expand Down
2 changes: 1 addition & 1 deletion SDL3_image/SDL_IMAGE_VERSION_ATLEAST.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Defined in SDL_image.h
#define SDL_IMAGE_VERSION_ATLEAST(X, Y, Z) \
((SDL_IMAGE_MAJOR_VERSION >= X) && \
(SDL_IMAGE_MAJOR_VERSION > X || SDL_IMAGE_MINOR_VERSION >= Y) && \
(SDL_IMAGE_MAJOR_VERSION > X || SDL_IMAGE_MINOR_VERSION > Y || SDL_IMAGE_PATCHLEVEL >= Z))
(SDL_IMAGE_MAJOR_VERSION > X || SDL_IMAGE_MINOR_VERSION > Y || SDL_IMAGE_MICRO_VERSION >= Z))
```
----
Expand Down

0 comments on commit f764046

Please sign in to comment.