注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
gui_01
This article describes the data/samples/objects/gui_01.cpp sample.
The gui_01 sample demonstrates how to play a video on a mesh, namely:
- Create a non-flat GUI display
- Assign an instance of the WidgetSpriteVideo class to the created mesh in order to play a video file
Video on the mesh created with the gui_01.cpp script
In this sample, each of 3 displays is a surface of the GUI mesh. So, the video is rendered on each of them.
Notice
Texture coordinates of both the left and right surfaces (displays) are two times larger than the texture coordinates of the central surface (display), so the video is rendered four times on each of them.
See Also
- Article on the GUI Mesh
- Functions of the ObjectGuiMesh class
- Functions of the WidgetSpriteVideo class
Last update: 2018-04-26
Help improve this article
(or select a word/phrase and press Ctrl+Enter)