#import <sgView.h>
Public Member Functions | |
(void) | - startAnimation |
(void) | - stopAnimation |
(void) | - drawView: |
(void) | - setOrientation: |
Properties | |
BOOL | animating |
NSInteger | animationFrameInterval |
NSTimeInterval | timestep |
sgRenderer * | renderer |
sgEntity * | first_ent |
sgEvents * | eventhandler |
View class. The main class, which handles everything.
- (void) drawView: | (id) | sender |
Draw view. Called automatically every frame and draws everything. Just donĀ“t touch it.
- (void) setOrientation: | (unsigned int) | interfaceOrientation |
Set orientation. Call this to set a new interface orientation.
interfaceOrientation | the new orientation 0 = portrait, 1 = flipped portrait, 2 = landscape right, 3 = landscape left |
- (void) startAnimation |
Start animation. Starts the rendering loop.
- (void) stopAnimation |
Stop animation. Stops the rendering loop.
- (sgEvents *) eventhandler [read, assign] |
Event handler. Set this to a custom sgEvent class to handle events.
- (sgEntity *) first_ent [read, assign] |
First entity. Create all your entities from this one.
- (sgRenderer *) renderer [read, assign] |
Renderer. Pointer to the renderer.