Ocean
Loading...
Searching...
No Matches

The GLRendererViewController implements a view controller using the OpenGLESceneGraph renderer for iOS platform applications. More...

#include <GLRendererViewController.h>

Inheritance diagram for GLRendererViewController:

Instance Methods

(bool) - setFovX:
 Sets the horizontal field of view for this view.
 
(bool) - setBackgroundColor:
 Sets the background color of this view.
 
(void) - setViewInteractionEnabled:
 Sets whether the user can change the view's position and rotation by touch events.
 
(void) - update
 Updates the rendering engine.
 
- Instance Methods inherited from GLViewController
(void) - makeOpenGLContextCurrent
 Makes the OpenGL context of this controller the current context.
 

Protected Attributes

Ocean::Rendering::EngineRef renderingEngine_
 The rendering engine to be used.
 
Ocean::Rendering::FramebufferRef renderingFramebuffer_
 The framebuffer in which the result will be rendered.
 
Ocean::Rendering::PerspectiveViewRef renderingView_
 The rendering view.
 
float previousTouchX_
 Previous horizontal touch position.
 
float previousTouchY_
 Previous vertical touch position.
 
Ocean::Timestamp renderingStartTimestamp_
 Rendering start timestamp.
 
unsigned int renderingIterations_
 Rendering iterations.
 
bool viewInteractionEnabled_
 True, to allow the user to change the view's position and rotation by touch events; False, to disable the user interaction.
 
Ocean::Lock lock_
 View lock object.
 

Detailed Description

The GLRendererViewController implements a view controller using the OpenGLESceneGraph renderer for iOS platform applications.

Method Documentation

◆ setBackgroundColor:

- (bool) setBackgroundColor: (const Ocean::RGBAColor &)  color

Sets the background color of this view.

Parameters
colorBackground color to set
Returns
True, if succeeded

◆ setFovX:

- (bool) setFovX: (Ocean::Scalar fovx

Sets the horizontal field of view for this view.

Parameters
fovxField of view to set in radian
Returns
True, if succeeded

◆ setViewInteractionEnabled:

- (void) setViewInteractionEnabled: (bool)  enabled

Sets whether the user can change the view's position and rotation by touch events.

Parameters
enabledTrue, to allow the interaction; False, to disable the interaction

◆ update

- (void) update

Updates the rendering engine.

Field Documentation

◆ lock_

- (Lock GLRendererViewController()):
protected

View lock object.

Provided by category GLRendererViewController().

◆ previousTouchX_

- (float) previousTouchX_
protected

Previous horizontal touch position.

Provided by category GLRendererViewController().

◆ previousTouchY_

- (float) previousTouchY_
protected

Previous vertical touch position.

Provided by category GLRendererViewController().

◆ renderingEngine_

- Rendering:
protected

The rendering engine to be used.

Provided by category GLRendererViewController().

◆ renderingFramebuffer_

- Rendering:
protected

The framebuffer in which the result will be rendered.

Provided by category GLRendererViewController().

◆ renderingIterations_

- (unsigned int) renderingIterations_
protected

Rendering iterations.

Provided by category GLRendererViewController().

◆ renderingStartTimestamp_

- (Timestamp GLRendererViewController()):
protected

Rendering start timestamp.

Provided by category GLRendererViewController().

◆ renderingView_

- Rendering:
protected

The rendering view.

Provided by category GLRendererViewController().

◆ viewInteractionEnabled_

- (bool) viewInteractionEnabled_
protected

True, to allow the user to change the view's position and rotation by touch events; False, to disable the user interaction.

Provided by category GLRendererViewController().


The documentation for this class was generated from the following file: