Mercurial > hg > orthanc-stone
comparison Applications/Sdl/SdlEngine.cpp @ 214:1c5a47dda299
SdlOrthancSurface
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 01 Jun 2018 18:33:34 +0200 |
parents | 5412adf19980 |
children | 84844649a8fd |
comparison
equal
deleted
inserted
replaced
213:f753a7e15a73 | 214:1c5a47dda299 |
---|---|
267 | 267 |
268 // Small delay to avoid using 100% of CPU | 268 // Small delay to avoid using 100% of CPU |
269 SDL_Delay(1); | 269 SDL_Delay(1); |
270 } | 270 } |
271 } | 271 } |
272 | |
273 | |
274 void SdlEngine::GlobalInitialize() | |
275 { | |
276 SDL_Init(SDL_INIT_VIDEO); | |
277 } | |
278 | |
279 | |
280 void SdlEngine::GlobalFinalize() | |
281 { | |
282 SDL_Quit(); | |
283 } | |
284 } | 272 } |
285 | 273 |
286 #endif | 274 #endif |