Add -[O3DRenderer createWithResolution:]
FossilOrigin-Name: eb5ac4e75ec321429073f4975efc2c7a9f7eb304f52cdfb598649b4c51914726
This commit is contained in:
parent
bee59f3938
commit
3ffafe1164
4 changed files with 121 additions and 8 deletions
|
@ -34,6 +34,13 @@ OF_APPLICATION_DELEGATE(TestsAppDelegate)
|
|||
[OFStdOut writeFormat: @"Available resolutions: %@\n",
|
||||
engine.renderer.availableResolutions];
|
||||
|
||||
O3DResolution resolution = [OFPair
|
||||
pairWithFirstObject: [OFValue valueWithSize: OFMakeSize(640, 480)]
|
||||
secondObject: [OFNumber numberWithFloat: 60]];
|
||||
[engine.renderer createWithResolution: resolution];
|
||||
|
||||
[OFThread sleepForTimeInterval: 5];
|
||||
|
||||
[OFApplication terminate];
|
||||
}
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue