config working, commented out the line throwing error for closing window. will fix soon
This commit is contained in:
parent
81b3ed9144
commit
c5bef3bd16
5 changed files with 12 additions and 274 deletions
|
|
@ -29,7 +29,7 @@ void ARC_EngineData_Create(ARC_EngineData **data){
|
|||
return;
|
||||
}
|
||||
|
||||
windowInfo = (ARC_WindowInfo){ "title", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 1280, 720, 0 };
|
||||
windowInfo = (ARC_WindowInfo){ "title", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 2560, 1440, 0 };
|
||||
#endif // ARC_SDL
|
||||
|
||||
ARC_Window_Create(&((*data)->window), &windowInfo);
|
||||
|
|
@ -59,11 +59,11 @@ void ARC_Engine_Run(ARC_EngineData *data){
|
|||
#endif // ARC_SDL
|
||||
|
||||
while(1){
|
||||
// currentTime = SDL_GetTicks();
|
||||
// data->dt = currentTime - lastTime;
|
||||
// lastTime = currentTime;
|
||||
|
||||
#ifdef ARC_SDL
|
||||
currentTime = SDL_GetTicks();
|
||||
data->dt = currentTime - lastTime;
|
||||
lastTime = currentTime;
|
||||
|
||||
while(SDL_PollEvent(&event)){
|
||||
if(event.type == SDL_QUIT){ return; }
|
||||
if(event.type == SDL_KEYDOWN && event.key.keysym.sym == SDLK_ESCAPE){ return; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue