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. HandleTwists.h
Mission NodeSDK 6.1C++topologyProject Included

HandleTwists.h

Example: HandleTwists.h

Examples / SDK 6.1 / C++ / topology / Handling Twists / project / src
HandleTwists.h
CPP
1// This header file is generated by WOWCube SDK project wizard
2#pragma once
3#include "Gfx.h"
4
5#define TEXT_SIZE 10
6
7class HandleTwists: public Cubios::Application
8{
9public:
10 HandleTwists();
11 virtual ~HandleTwists();
12
13 virtual void on_PhysicsTick(const std::array<Cubios::Screen, 3>& screens) override;
14 virtual void on_Twist(const Cubios::TOPOLOGY_twistInfo_t& twist) override;
15 virtual void on_Message(uint32_t type, uint8_t* pkt, u32_t size) override;
16 virtual void on_ExternalMessage(uint8_t* pkt, u32_t size) override;
17 virtual void on_Tap(uint32_t count) override;
18 virtual void on_Render(std::array<Cubios::Screen, 3>& screens) override;
19 virtual void on_Tick(uint32_t currentTime, uint32_t deltaTime) override;
20 virtual void on_Timer(uint8_t timerID) override;
21
22 void InitializeResources();
23private:
24
25 int screen;
26 Cubios::TOPOLOGY_twist_t direction;
27 int animationOffset;
28
29 uint32_t left;
30 uint32_t right;
31 uint32_t dbl;
32
33 Cubios::Math::Vec2 iconPos;
34};
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.
Context Rail

Project files

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

Related nodes

HandleTwists.cpp
Examples / SDK 6.1 / C++ / topology / Handling Twists / project / src
Handling Twists
Examples / SDK 6.1 / C++ / topology
info.json
Examples / SDK 6.1 / C++ / topology / Handling Twists
wowcubeapp-build.json
Examples / SDK 6.1 / C++ / topology / Handling Twists / project
Previous Node
HandleTwists.cpp
Examples / SDK 6.1 / C++ / topology / Handling Twists / project / src
Next Node
wowcubeapp-build.json
Examples / SDK 6.1 / C++ / topology / Handling Twists / project