Add initial O3DEngine and O3DRenderer
Only supports querying resolutions so far. FossilOrigin-Name: c504ea5dd9a25bfe49c16f256d64f3bf8c16fc78fa03c2cad2561fbbb10eb720
This commit is contained in:
parent
1c7dfe8b27
commit
3902165c96
8 changed files with 355 additions and 0 deletions
|
@ -15,6 +15,8 @@
|
|||
|
||||
#import <ObjFW/ObjFW.h>
|
||||
|
||||
#import "O3DEngine.h"
|
||||
|
||||
@interface TestsAppDelegate: OFObject <OFApplicationDelegate>
|
||||
@end
|
||||
|
||||
|
@ -23,6 +25,15 @@ OF_APPLICATION_DELEGATE(TestsAppDelegate)
|
|||
@implementation TestsAppDelegate
|
||||
- (void)applicationDidFinishLaunching: (OFNotification *)notification
|
||||
{
|
||||
Class <O3DRenderer> renderer =
|
||||
[O3DEngine availableRenderers].firstObject;
|
||||
O3DEngine *engine =
|
||||
[[[O3DEngine alloc] initWithRenderer: renderer
|
||||
options: nil] autorelease];
|
||||
|
||||
[OFStdOut writeFormat: @"Available resolutions: %@",
|
||||
engine.renderer.availableResolutions];
|
||||
|
||||
[OFApplication terminate];
|
||||
}
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue