This page has been translated automatically.
Программирование
Fundamentals
Setting Up Development Environment
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

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 WidgetSpriteViewportclass 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: 03.07.2017
Build: ()