Rev 1 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1 | Rev 8 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /* |
1 | /* |
2 | Simple DirectMedia Layer |
2 | Simple DirectMedia Layer |
3 | Copyright (C) 1997- |
3 | Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org> |
4 | 4 | ||
5 | This software is provided 'as-is', without any express or implied |
5 | This software is provided 'as-is', without any express or implied |
6 | warranty. In no event will the authors be held liable for any damages |
6 | warranty. In no event will the authors be held liable for any damages |
7 | arising from the use of this software. |
7 | arising from the use of this software. |
8 | 8 | ||
Line 896... | Line 896... | ||
896 | * |
896 | * |
897 | * \return 0 on success, or -1 if the operation is not supported |
897 | * \return 0 on success, or -1 if the operation is not supported |
898 | */ |
898 | */ |
899 | extern DECLSPEC int SDLCALL SDL_GL_UnbindTexture(SDL_Texture *texture); |
899 | extern DECLSPEC int SDLCALL SDL_GL_UnbindTexture(SDL_Texture *texture); |
900 | 900 | ||
- | 901 | /** |
|
- | 902 | * \brief Get the CAMetalLayer associated with the given Metal renderer |
|
- | 903 | * |
|
- | 904 | * \param renderer The renderer to query |
|
- | 905 | * |
|
- | 906 | * \return CAMetalLayer* on success, or NULL if the renderer isn't a Metal renderer |
|
- | 907 | * |
|
- | 908 | * \sa SDL_RenderGetMetalCommandEncoder() |
|
- | 909 | */ |
|
- | 910 | extern DECLSPEC void *SDLCALL SDL_RenderGetMetalLayer(SDL_Renderer * renderer); |
|
- | 911 | ||
- | 912 | /** |
|
- | 913 | * \brief Get the Metal command encoder for the current frame |
|
- | 914 | * |
|
- | 915 | * \param renderer The renderer to query |
|
- | 916 | * |
|
- | 917 | * \return id<MTLRenderCommandEncoder> on success, or NULL if the renderer isn't a Metal renderer |
|
- | 918 | * |
|
- | 919 | * \sa SDL_RenderGetMetalLayer() |
|
- | 920 | */ |
|
- | 921 | extern DECLSPEC void *SDLCALL SDL_RenderGetMetalCommandEncoder(SDL_Renderer * renderer); |
|
901 | 922 | ||
902 | /* Ends C function definitions when using C++ */ |
923 | /* Ends C function definitions when using C++ */ |
903 | #ifdef __cplusplus |
924 | #ifdef __cplusplus |
904 | } |
925 | } |
905 | #endif |
926 | #endif |