Created
October 10, 2009 10:42
-
-
Save Thomvis/206780 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Created by Thomas Visser on 10/10/2009. | |
#import "GraphicObject.h" | |
#import "LoadableDelegate.h" | |
@implementation GraphicObject | |
- (void) loadWithDelegate: (id <LoadableDelegate>) delegate { | |
// called by the Loader created in GameLayer | |
for( int i = 0; i < 100000000; i++ ) { } | |
// instead of this useless calculation, you would load sprites etc. here | |
[delegate loadable:self reportingProgress:1.0]; | |
} | |
- (BOOL) loadingUsesOpenGL { | |
return YES; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment