123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
-
- EXTERN SDL_Init
- Extern SDL_Quit
- Extern SDL_Delay
- Extern SDL_OpenAudio
- Extern SDL_PauseAudio
- Extern SDL_WaitEvent
- Extern SDL_GetError
- Extern SDL_CreateRGBSurface
- Extern SDL_LockSurface
- Extern SDL_UnlockSurface
- Extern SDL_UpperBlit
- %define SDL_BlitSurface SDL_UpperBlit
- Extern TTF_OpenFont
- Extern TTF_RenderText_Solid
- Extern TTF_Init
-
-
- %ifdef SDL1
- %define SDL_QUIT 0x0C
- %define SDL_DOUBLEBUF 0x40000000
- %define SDL_HWSURFACE 0x1
- Extern SDL_GetVideoSurface
- Extern SDL_SetVideoMode
- Extern SDL_Flip
- %endif
- %ifdef SDL2
- ; events
- %define SDL_QUIT 0x100
- %define SDL_AUDIODEVICEADDED 0x1100
- ; values
- %define SDL_WINDOWPOS_UNDEFINED_MASK 0x1FFF0000
- %define SDL_WINDOWPOS_UNDEFINED SDL_WINDOWPOS_UNDEFINED_MASK | 0 ; display 0
- ; function
- Extern SDL_CreateWindow
-
- extern SDL_GetWindowSurface
- extern SDL_memset
- extern SDL_UpdateWindowSurface
- %endif
- %ifdef MIX_AUDIO
- Extern SDL_MixAudio
- %define SDL_MAX_VOLUME 128
- %endif
-
- %define SDL_SWSURFACE 0
-
-
- %define AUDIO_U8 0x0008 ; Unsigned 8-bit samples
- %define AUDIO_S8 0x8008 ; Signed 8-bit samples
- %define AUDIO_U16LSB 0x0010 ; Unsigned 16-bit samples
- %define AUDIO_S16LSB 0x8010 ; Signed 16-bit samples
- %define AUDIO_U16MSB 0x1010 ; As above, but big-endian byte order
- %define AUDIO_S16MSB 0x9010 ; As above, but big-endian byte order
- %define AUDIO_U16 AUDIO_U16LSB
- %define AUDIO_S16 AUDIO_S16LSB
-
- STRUC SDL_AudioSpec_STRUC
- .freq: resw 1
- .format: resw 1
- .channels: resb 1
- .silence: resb 1
- .samples: resw 1
- .size: resw 1
- .callback: resq 1
- .userdata: resq 1
- ENDSTRUC
- %macro def_SDL_AudioSpec 1
- %define %1.freq %1+SDL_AudioSpec_STRUC.freq
- %define %1.format %1+SDL_AudioSpec_STRUC.format
- %define %1.channels %1+SDL_AudioSpec_STRUC.channels
- %define %1.silence %1+SDL_AudioSpec_STRUC.silence
- %define %1.samples %1+SDL_AudioSpec_STRUC.samples
- %define %1.size %1+SDL_AudioSpec_STRUC.size
- %define %1.callback %1+SDL_AudioSpec_STRUC.callback
- %define %1.userdata %1+SDL_AudioSpec_STRUC.userdata
- %1:
- ISTRUC SDL_AudioSpec_STRUC
- %endmacro
-
- %macro MOV_surf_w 2
- mov %1, [%2]
- mov %1, [%1 + 16]
- %endmacro
- %macro MOV_surf_h 2
- mov %1, [%2]
- mov %1, [%1 + 20]
- %endmacro
- %macro MOV_surf_pitch 2
- mov %1, [%2]
- mov %1, [%1 + 24]
- %endmacro
- %macro MOV_surf_pixels 2
- mov %1, [%2]
- mov %1, [%1 + 32]
- %endmacro
-
-
- ;fontconfig
- Extern FcInitLoadConfigAndFonts
- Extern FcPatternCreate
- Extern FcObjectSetBuild
- Extern FcFontList
- Extern FcPatternGetString
- Extern FcPatternPrint
|