Skip to content

Instantly share code, notes, and snippets.

View YukiSnowy's full-sized avatar

Pathomporn Niamraksa YukiSnowy

  • Thailand
  • 22:38 (UTC +07:00)
View GitHub Profile
@YukiSnowy
YukiSnowy / main.cpp
Last active September 14, 2024 04:53
example SDL2 Direct3D9 application
// g++ *.cpp -o d3d9 -lmingw32 -lSDL2main -lSDL2 -I/dxsdk/include -L/dxsdk/lib -DUNICODE -ld3d9 -ld3dx9
// http://blog.fourthwoods.com/2011/08/11/setting-up-mingw-for-directx/
// http://www.directxtutorial.com/Lesson.aspx?lessonid=9-4-4
#include <iostream>
using namespace std;
#include <SDL2/SDL.h>
#include <windows.h>
@YukiSnowy
YukiSnowy / main.cpp
Last active October 19, 2024 01:28
example SDL2 Vulkan application
// Windows
// g++ *.cpp -o vulkan -lSDL2main -lSDL2 -lvulkan-1
// Linux
// g++ *.cpp -o vulkan -lSDL2main -lSDL2 -lvulkan
// https://vulkan-tutorial.com/
#include <iostream>
using namespace std;
#include <SDL2/SDL.h>