Public Member Functions

VgEAGLView Class Reference

This class wraps the CAEAGLLayer from CoreAnimation into a convenient UIView subclass its superclass VgEAGLBaseView contains most important methods. More...

Inheritance diagram for VgEAGLView:
Inheritance graph
[legend]
Collaboration diagram for VgEAGLView:
Collaboration graph
[legend]

List of all members.

Public Member Functions

(id) - initWithFrame:
 Creates a new VgEAGLView and as well as setting itself as the current context.
(id) - initWithFrame:pixelFormat:
(id) - initWithFrame:pixelFormat:depthFormat:preserveBackbuffer:
(void) - startAnimation
 Responsible for creating the VisioDevKit application.

Detailed Description

This class wraps the CAEAGLLayer from CoreAnimation into a convenient UIView subclass its superclass VgEAGLBaseView contains most important methods.

The view content is basically an EAGL surface you render your OpenGL scene into.


Member Function Documentation

- (id) initWithFrame: (CGRect)  frame

Creates a new VgEAGLView and as well as setting itself as the current context.

By default multiple touch support on the view is enabled. The default orientation is UIInterfaceOrientationPortrait.

Note:
If not stipulated, the following defaults are used; pixel format set to kEAGLColorFormatRGBA8, depth format set to GL_DEPTH_COMPONENT16_OES and the preserve back buffer is disabled.
Parameters:
frame- default frame size of the view
Returns:
A newly initialized VgEAGLView.
- (id) initWithFrame: (CGRect)  frame
pixelFormat: (NSString *)  format 
- (id) initWithFrame: (CGRect)  frame
pixelFormat: (NSString *)  format
depthFormat: (unsigned int)  depth
preserveBackbuffer: (BOOL)  retained 
- (void) startAnimation

Responsible for creating the VisioDevKit application.

This means it will call VgApplication::VgIApplication::createApplication on your behalf as well as initiating the animation timer responsible for invoking the render scene.

Implements VgEAGLBaseView.


The documentation for this class was generated from the following file:
VisioDevKit 2.0, Visioglobe® 2013