This page has been translated automatically.
Getting Started
Migrating to UNIGINE 2.0
C++ API Migration
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Usage Examples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

gui_02

This article describes the data/samples/objects/gui_02.cpp sample.

The gui_02 sample demonstrates how to display the current scene on a virtual monitor created with the WidgetSpriteViewport and assigned to a GUI object, namely:

  • Create the flat GUI object
  • Create an instance of the WidgetSpriteViewport class and associate it with the camera
  • Assign the created instance to the GUI object
  • Set modelview and projection matrices for the associated camera and change them according to the time spent since the world loading. It will force the camera go round the objects in the scene.

WidgetSpriteViewport assigned to the GUI object

See Also

Last update: 2017-07-03
Build: ()