Skip to content

Instantly share code, notes, and snippets.

@Thomvis
Created October 10, 2009 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Thomvis/206780 to your computer and use it in GitHub Desktop.
Save Thomvis/206780 to your computer and use it in GitHub Desktop.
// 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