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. Examples
  4. GfxOrientation.h
Mission NodeSDK 6.2C++renderingProject Included

GfxOrientation.h

Example: GfxOrientation.h

Examples / SDK 6.2 / C++ / rendering / Gfx Engine - Orientation / project / src
GfxOrientation.h
CPP
1// This header file is generated by WOWCube SDK project wizard
2#pragma once
3#include "Gfx.h"
4
5enum GfxObjects
6{
7 myBackground=0,
8 mySprite,
9 myText1,
10 myText2,
11 myText3,
12 myText4,
13 myText5,
14 myText6
15};
16
17typedef struct
18{
19 Cubios::TOPOLOGY_orientation_mode_t mode;
20 bool autorotation;
21 std::string name;
22} mode_t;
23
24class GfxOrientation: public Cubios::Application
25{
26public:
27 GfxOrientation();
28 virtual ~GfxOrientation();
29
30 virtual void on_PhysicsTick(const std::array<Cubios::Screen, 3>& screens) override;
31 virtual void on_Twist(const Cubios::TOPOLOGY_twistInfo_t& twist) override;
32 virtual void on_Message(uint32_t type, uint8_t* pkt, u32_t size) override;
33 virtual void on_ExternalMessage(uint8_t* pkt, u32_t size) override;
34 virtual void on_Pat(uint32_t count) override;
35 virtual void on_Render(std::array<Cubios::Screen, 3>& screens) override;
36 virtual void on_Tick(uint32_t currentTime, uint32_t deltaTime) override;
37 virtual void on_Timer(uint8_t timerID) override;
38
39 void InitializeResources();
40
41private:
42 Cubios::Gfx::AnimatedSprite* torch;
43 std::vector<mode_t> modes;
44 int currentMode;
45};
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.
Context Rail

Project files

GfxOrientation.cpp
project/src/GfxOrientation.cpp
GfxOrientation.h
project/src/GfxOrientation.h
wowcubeapp-build.json
project/wowcubeapp-build.json
Context Rail

Related nodes

GfxOrientation.cpp
Examples / SDK 6.2 / C++ / rendering / Gfx Engine - Orientation / project / src
Gfx Engine - Orientation
Examples / SDK 6.2 / C++ / rendering
info.json
Examples / SDK 6.2 / C++ / rendering / Gfx Engine - Orientation
wowcubeapp-build.json
Examples / SDK 6.2 / C++ / rendering / Gfx Engine - Orientation / project
Previous Node
GfxOrientation.cpp
Examples / SDK 6.2 / C++ / rendering / Gfx Engine - Orientation / project / src
Next Node
wowcubeapp-build.json
Examples / SDK 6.2 / C++ / rendering / Gfx Engine - Orientation / project