added new screens and getting ready for networking, looking at SDL_net for cross platfrom networking so i dont have to touch windows

This commit is contained in:
2026-01-24 19:12:36 -06:00
parent a698c0eb41
commit 3aaf5021cc
468 changed files with 262023 additions and 59 deletions

19
include/err_check.h Normal file
View File

@@ -0,0 +1,19 @@
//Troy Rosin
#ifndef __err_check_h__
#define __err_check_h__
//pass TEX is an SDL_Texture pointer, rend is the renderer
// and path is the path to the texture to load.
#define IMG_GETANDCHECK(TEX, REND, PATH)\
TEX = IMG_LoadTexture(REND, PATH);\
if(!TEX){\
printf("IMG_LoadTexture error: %s\n", IMG_GetError());\
}
#endif