equal
deleted
inserted
replaced
411 * \brief Set a texture as the current rendering target. |
411 * \brief Set a texture as the current rendering target. |
412 * |
412 * |
413 * \param texture The targeted texture, which must be created with the SDL_TEXTUREACCESS_TARGET flag, or NULL for the default render target |
413 * \param texture The targeted texture, which must be created with the SDL_TEXTUREACCESS_TARGET flag, or NULL for the default render target |
414 * |
414 * |
415 * \return 0 on success, or -1 on error |
415 * \return 0 on success, or -1 on error |
|
416 * |
|
417 * \sa SDL_GetRenderTarget() |
416 */ |
418 */ |
417 extern DECLSPEC int SDLCALL SDL_SetRenderTarget(SDL_Renderer *renderer, |
419 extern DECLSPEC int SDLCALL SDL_SetRenderTarget(SDL_Renderer *renderer, |
418 SDL_Texture *texture); |
420 SDL_Texture *texture); |
|
421 |
|
422 /** |
|
423 * \brief Get the current render target or NULL for the default render target. |
|
424 * |
|
425 * \return The current render target |
|
426 * |
|
427 * \sa SDL_SetRenderTarget() |
|
428 */ |
|
429 extern DECLSPEC SDL_Texture * SDLCALL SDL_GetRenderTarget(SDL_Renderer *renderer); |
419 |
430 |
420 /** |
431 /** |
421 * \brief Set device independent resolution for rendering |
432 * \brief Set device independent resolution for rendering |
422 * |
433 * |
423 * \param w The width of the logical resolution |
434 * \param w The width of the logical resolution |