We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae3228e commit cbb3a56Copy full SHA for cbb3a56
src/SDL2TTF.php
@@ -73,9 +73,23 @@ public static function create(
73
$pre = clone $pre;
74
75
$pre->add('SDL.h', <<<'CPP'
76
+ typedef enum { SDL_FALSE = 0, SDL_TRUE = 1 } SDL_bool;
77
78
+ typedef uint16_t Uint16;
79
+ typedef uint32_t Uint32;
80
+
81
+ typedef struct SDL_version SDL_version;
82
+ typedef struct SDL_RWops SDL_RWops;
83
+ typedef struct SDL_Surface SDL_Surface;
84
+ typedef struct SDL_Color SDL_Color;
85
CPP);
86
87
+ $pre->add('begin_code.h', '');
88
+ $pre->add('close_code.h', '');
89
90
+ $pre->define('DECLSPEC', '');
91
+ $pre->define('SDLCALL', '');
92
93
if (!$version instanceof VersionInterface) {
94
$version = Version::create($version);
95
}
0 commit comments