Ocean
|
The OpenGLViewController implements a view controller that is mainly able to display medium objects. More...
Instance Methods | |
(void) | - setFrameMedium: |
Sets or changes the frame medium to be displayed. More... | |
(void) | - setFrameMedium:withRotation: |
Sets or changes the frame medium to be displayed. More... | |
(Ocean::Media::FrameMediumRef) | - frameMedium |
Returns the current frame medium. More... | |
(CGPoint) | - view2medium: |
Converts a 2D location defined in the view's coordinate system to a location defined in the coordinate system of the medium (an image frame). More... | |
Instance Methods inherited from OpenGLViewController | |
(void) | - makeOpenGLContextCurrent |
Makes the OpenGL context of this controller the current context. More... | |
The OpenGLViewController implements a view controller that is mainly able to display medium objects.
The view controller is derived from an OpenGLES view controller so that we can ensure the best performance possible.
This class can be seen as a FrameMediumView equivalent using OpenGLES.
- Media: |
Returns the current frame medium.
- (void) setFrameMedium: | (const Ocean::Media::FrameMediumRef &) | frameMedium |
Sets or changes the frame medium to be displayed.
frameMedium | The frame medium to be displayed, must be valid |
- (void) setFrameMedium: | (const Ocean::Media::FrameMediumRef &) | frameMedium | |
withRotation: | (const Ocean::Quaternion &) | display_R_medium | |
Sets or changes the frame medium to be displayed.
frameMedium | The frame medium to be displayed, must be valid |
display_R_medium | Explicit rotation between medium and display, and invalid rotation to use the medium's and framebuffer's transformations to determine the rotation |
- (CGPoint) view2medium: | (CGPoint) | viewPoint |
Converts a 2D location defined in the view's coordinate system to a location defined in the coordinate system of the medium (an image frame).
viewPoint | The 2D location within this view |