sgView Class Reference

#import <sgView.h>

List of all members.

Public Member Functions

(void) - startAnimation
(void) - stopAnimation
(void) - drawView:
(void) - setOrientation:

Properties

BOOL animating
NSInteger animationFrameInterval
NSTimeInterval timestep
sgRendererrenderer
sgEntityfirst_ent
sgEventseventhandler

Detailed Description

View class. The main class, which handles everything.


Member Function Documentation

- (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.

Parameters:
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.


Property Documentation

- (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.


The documentation for this class was generated from the following files:
Generated on Thu Jun 3 13:31:04 2010 for iSDGE by  doxygen 1.6.3