im trying to setup a game loop but without using an actual window:
i was wondering, is there any disadvantages to the method i use? in all the directx examples ive seen, they set up a window.. but since my program doesnt need a window, i figured this way would be alot better?Code:
int APIENTRY WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR CmdLine, int CmdShow)
HWND hInvisible = CreateWindow("Static", "", 0, 0, 0, 0, 0, 0, 0, hInst, 0);
//Init with hInvisible as window
when i run the program, it immediately goes to fullscreen instead of showing a window, and i handle all the keys (alt + f4 and esc.. etc) in my game loop...