/SDL-Tutorial

Personal SDL notes

Primary LanguageC++

Notes on SDL

General commands

General Command

Window creation

Window Creation

Useful Habits

Useful Habits

Image Load

Image Load

Userfull information:

  • For timing in render loop use: std::chrono, SDL_GetPerformanceFrequency(); or SDL_GetPerformanceCounter();.
  • If the cpu and gpu usage are hight insert a delay in the render loop SDL_Delay(1); or activate freesync in the renderer.

More resources: