OSDN Git Service

SDL_HINT_RENDER_DRIVER metalを追加した https://wiki.libsdl.org/SDL_HINT_RENDER_DRIVER...
[sdl2referencejp/sdl2referencejp.git] / SDLNet_Init.html
index 2bd32b8..b471272 100644 (file)
 <p>
 \96ß\82è\92l: \90¬\8c÷\82Ì\82Æ\82«0, \8e¸\94s\82Ì\82Æ\82«-1
 </p>
+<h2>\83T\83\93\83v\83\8b\83R\81[\83h</h2>
+<code>
+<pre>
+if(SDL_Init(0)==-1) {
+    printf("SDL_Init: %s\n", SDL_GetError());
+    exit(1);
+}
+if(SDLNet_Init()==-1) {
+    printf("SDLNet_Init: %s\n", SDLNet_GetError());
+    exit(2);
+}
+</pre>
+</code>
 <h2>\8eQ\8fÆ</h2>
 <a href="SDLNet_Quit.html">SDLNet_Quit</a>
 <h2>\8c´\95\82Ö\82Ì\83\8a\83\93\83N</h2>