mirror of
https://github.com/ysoftdevs/cpp-examples.git
synced 2026-01-16 16:46:50 +01:00
add sdl source code
This commit is contained in:
13
sdl/01-sdl2-init/01-sdl2-init.cpp
Normal file
13
sdl/01-sdl2-init/01-sdl2-init.cpp
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
// sdl2-sample.cpp : SDL2 example - initialize and quit
|
||||||
|
//
|
||||||
|
|
||||||
|
#include <tchar.h>
|
||||||
|
#include "SDL.h"
|
||||||
|
|
||||||
|
int _tmain(int argc, _TCHAR* argv[])
|
||||||
|
{
|
||||||
|
SDL_Init(SDL_INIT_EVERYTHING);
|
||||||
|
SDL_Quit();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,7 +1,8 @@
|
|||||||
// 02-sdl2-video.cpp : SDL2 example - initialize video and display image
|
// 02-sdl2-video.cpp : SDL2 example - initialize video and display image
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "stdafx.h"
|
#include <stdio.h>
|
||||||
|
#include <tchar.h>
|
||||||
#include "SDL.h"
|
#include "SDL.h"
|
||||||
|
|
||||||
int _tmain(int argc, _TCHAR* argv[]) {
|
int _tmain(int argc, _TCHAR* argv[]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user