1#ifndef _ZFI_ZFImpl_sys_SDL_ZF_impl_h_
2#define _ZFI_ZFImpl_sys_SDL_ZF_impl_h_
5#include "ZFImpl_sys_SDL.h"
35#define ZFImpl_sys_SDL_zfblockedDestroySurface(sdlSurface) \
36 _ZFP_ZFImpl_sys_SDL_zfblockedDestroySurface ZFUniqueName(sdl_surface)(sdlSurface)
39 _ZFP_ZFImpl_sys_SDL_zfblockedDestroySurface(
ZF_IN SDL_Surface *sdlSurface)
43 ~_ZFP_ZFImpl_sys_SDL_zfblockedDestroySurface(
void) {
45 SDL_DestroySurface(d);
55#define ZFImpl_sys_SDL_zfblockedDestroyTexture(sdlTexture) \
56 _ZFP_ZFImpl_sys_SDL_zfblockedDestroyTexture ZFUniqueName(sdl_texture)(sdlTexture)
59 _ZFP_ZFImpl_sys_SDL_zfblockedDestroyTexture(
ZF_IN SDL_Texture *sdlTexture)
63 ~_ZFP_ZFImpl_sys_SDL_zfblockedDestroyTexture(
void) {
65 SDL_DestroyTexture(d);
75#define ZFImpl_sys_SDL_zfblockedRenderTarget(success, sdlRenderer, sdlTexture) \
76 _ZFP_ZFImpl_sys_SDL_zfblockedRenderTarget success(sdlRenderer, sdlTexture)
79 _ZFP_ZFImpl_sys_SDL_zfblockedRenderTarget(
80 ZF_IN SDL_Renderer *sdlRenderer
81 ,
ZF_IN SDL_Texture *sdlTexture
83 : _sdlRenderer(sdlRenderer)
84 , _sdlTextureSaved(SDL_GetRenderTarget(sdlRenderer))
86 _success = SDL_SetRenderTarget(sdlRenderer, sdlTexture);
88 ~_ZFP_ZFImpl_sys_SDL_zfblockedRenderTarget(
void) {
90 SDL_SetRenderTarget(_sdlRenderer, _sdlTextureSaved);
93 operator zfbool (
void)
const {
98 SDL_Renderer *_sdlRenderer;
99 SDL_Texture *_sdlTextureSaved;
header file for ZFCore module
#define ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:180
#define zfclassNotPOD
shows the class is not a POD type, you should not memset it or declare it in stack or copy value by c...
Definition ZFCoreTypeDef_ClassType.h:48
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
global header for ZF_impl module
#define ZFLIB_ZF_impl
used to export symbols
Definition ZFImpl_ZF_impl.h:15
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
general output callback
Definition ZFIOCallback_output.h:37