mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-19 12:55:34 +00:00
Updated documentation after 2654c52d0e
This commit is contained in:
@@ -49,6 +49,7 @@ class PlatformMacrosCheck:
|
|||||||
"__DREAMCAST__",
|
"__DREAMCAST__",
|
||||||
"__NACL__",
|
"__NACL__",
|
||||||
"__PNACL__",
|
"__PNACL__",
|
||||||
|
"__WINDOWS__",
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|||||||
@@ -938,11 +938,6 @@ The following symbols have been renamed:
|
|||||||
|
|
||||||
## SDL_platform.h
|
## SDL_platform.h
|
||||||
|
|
||||||
The following platform preprocessor macros have been removed:
|
|
||||||
* __DREAMCAST__
|
|
||||||
* __NACL__
|
|
||||||
* __PNACL__
|
|
||||||
|
|
||||||
The following platform preprocessor macros have been renamed:
|
The following platform preprocessor macros have been renamed:
|
||||||
|
|
||||||
| SDL2 | SDL3 |
|
| SDL2 | SDL3 |
|
||||||
@@ -975,13 +970,22 @@ The following platform preprocessor macros have been renamed:
|
|||||||
| `__TVOS__` | `SDL_PLATFORM_TVOS` |
|
| `__TVOS__` | `SDL_PLATFORM_TVOS` |
|
||||||
| `__unix__` | `SDL_PLATFORM_UNI` |
|
| `__unix__` | `SDL_PLATFORM_UNI` |
|
||||||
| `__VITA__` | `SDL_PLATFORM_VITA` |
|
| `__VITA__` | `SDL_PLATFORM_VITA` |
|
||||||
| `__WIN32__` | `SDL_PLATFORM_WINRT` |
|
| `__WIN32__` | `SDL_PLATFORM_WIN32` |
|
||||||
| `__WINDOWS__` | `SDL_PLATFORM_WINDOWS` |
|
|
||||||
| `__WINGDK__` | `SDL_PLATFORM_WINGDK` |
|
| `__WINGDK__` | `SDL_PLATFORM_WINGDK` |
|
||||||
| `__WINRT__` | `SDL_PLATFORM_WINRT` |
|
| `__WINRT__` | `SDL_PLATFORM_WINRT` |
|
||||||
| `__XBOXONE__` | `SDL_PLATFORM_XBOXONE` |
|
| `__XBOXONE__` | `SDL_PLATFORM_XBOXONE` |
|
||||||
| `__XBOXSERIES__` | `SDL_PLATFORM_XBOXSERIES` |
|
| `__XBOXSERIES__` | `SDL_PLATFORM_XBOXSERIES` |
|
||||||
|
|
||||||
|
You can use the Python script [rename_macros.py](https://github.com/libsdl-org/SDL/blob/main/build-scripts/rename_macros.py) to automatically rename these in your source code.
|
||||||
|
|
||||||
|
A new macro `SDL_PLATFORM_WINDOWS` has been added that is true for all Windows platforms, including Xbox, GDK, etc.
|
||||||
|
|
||||||
|
The following platform preprocessor macros have been removed:
|
||||||
|
* `__DREAMCAST__`
|
||||||
|
* `__NACL__`
|
||||||
|
* `__PNACL__`
|
||||||
|
* `__WINDOWS__`
|
||||||
|
|
||||||
## SDL_rect.h
|
## SDL_rect.h
|
||||||
|
|
||||||
The following functions have been renamed:
|
The following functions have been renamed:
|
||||||
|
|||||||
Reference in New Issue
Block a user