Add vsync.

This commit is contained in:
Jonathan Schleifer 2012-08-26 17:11:32 +02:00
parent a819fe0b81
commit 569fcf994b
3 changed files with 10 additions and 2 deletions

View file

@ -87,7 +87,9 @@ OF_APPLICATION_DELEGATE(TestMain)
- (void)applicationDidFinishLaunching
{
ogk_display_flags_t flags = OGK_DISPLAY_FLAGS_RESIZABLE;
ogk_display_flags_t flags =
OGK_DISPLAY_FLAGS_RESIZABLE |
OGK_DISPLAY_FLAGS_VSYNC;
display = [[OGKDisplay alloc] initWithSize: of_dimension(640, 480)
position: of_point(200, 200)