WOWCube Docs logo
WOWCube Docs
Mission Control
Section Shortcuts
APIExamplesSourceWOWConnectChangelog
Filters
SDK and language defaults persist in cookies.
SDK version
Navigation Tree
Collapsed by default, focused on the active path.
Made byMcKay Seamons
GitHub
  1. Home
  2. Docs
  3. Source
  4. Screen.h
Mission NodeSDK 6.2C++screen.h

Screen.h

SDK Source File: Screen.h

Source / SDK 6.2 / C++ / Core

Screen.h

Screen.h
CPP
1/* Copyright Statement:
2 *
3 * (C) 2021-2024 Cubios Inc. All rights reserved.
4 */
5
6#ifndef WASMLIBS_CPP_SCREEN_H_
7#define WASMLIBS_CPP_SCREEN_H_
8#include <memory>
9#include <vector>
10#include "native.h"
11//#include "GuiObjects.h"
12#include <string>
13
14#include "Scene.h"
15#include "SceneObject.h"
16
17namespace Cubios
18{
19class Screen
20{
21public:
22 Screen(uint8_t id);
23 void SetOrientation(TOPOLOGY_orientation_mode_t mode);
24 uint8_t Position() const;
25 TOPOLOGY_orientation_t Direction() const;
26 uint8_t OppositeFace() const;
27 uint8_t Face() const;
28 inline uint8_t ID() const { return this->displayId; }
29 inline uint32_t Angle() const {return this->angle;}
30
31 SceneObject* Add(SceneObject* obj);
32 SceneObject* AddCopy(SceneObject* obj);
33
34 void Begin(TOPOLOGY_orientation_mode_t mode = Cubios::ORIENTATION_MODE_MENU,bool autorotation = false);
35 void End();
36
37 inline bool IsAutorotation() {return this->enableAR;}
38
39private:
40 void present();
41
42private:
43 uint8_t displayId;
44 TOPOLOGY_orientation_mode_t orientationMode;
45 uint32_t angle;
46 uint32_t position;
47 TOPOLOGY_place_t place;
48 std::vector<SceneObject*> objects;
49 std::vector<SceneObject*> copies;
50
51 bool inBegin;
52 bool enableAR;
53};
54
55}
56#endif /* WASMLIBS_CPP_SCREEN_H_ */
57
58
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.
Context Rail

Related nodes

AppManager.cpp
Source / SDK 6.2 / C++ / Core
AppManager.h
Source / SDK 6.2 / C++ / Core
Gfx.h
Source / SDK 6.2 / C++ / Core
native access.h
Source / SDK 6.2 / C++ / Core
Previous Node
Screen.cpp
Source / SDK 6.2 / C++ / Core
Next Node
Sound.cpp
Source / SDK 6.2 / C++ / Core