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

Points.h

Example: Points.h

Examples / SDK 6.2 / C++ / rendering / Simple Shapes - Points / project / src
Points.h
CPP
1// This header file is generated by WOWCube SDK project wizard
2#pragma once
3#include "Gfx.h"
4
5#define DISPLAY_CENTER_X 120
6#define DISPLAY_CENTER_Y 120
7
8typedef struct
9{
10 int x;
11 int y;
12 float vx;
13 float vy;
14} Star_t;
15
16class Points: public Cubios::Application
17{
18public:
19 Points();
20 virtual ~Points();
21
22 virtual void on_PhysicsTick(const std::array<Cubios::Screen, 3>& screens) override;
23 virtual void on_Twist(const Cubios::TOPOLOGY_twistInfo_t& twist) override;
24 virtual void on_Message(uint32_t type, uint8_t* pkt, u32_t size) override;
25 virtual void on_ExternalMessage(uint8_t* pkt, u32_t size) override;
26 virtual void on_Pat(uint32_t count) override;
27 virtual void on_Render(std::array<Cubios::Screen, 3>& screens) override;
28 virtual void on_Tick(uint32_t currentTime, uint32_t deltaTime) override;
29 virtual void on_Timer(uint8_t timerID) override;
30
31 void InitializeResources();
32
33private:
34 void addStar();
35 void renderStarfield();
36
37private:
38 int numStars;
39 Star_t stars[50];
40};
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.
Context Rail

Project files

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

Related nodes

Points.cpp
Examples / SDK 6.2 / C++ / rendering / Simple Shapes - Points / project / src
Simple Shapes - Points
Examples / SDK 6.2 / C++ / rendering
info.json
Examples / SDK 6.2 / C++ / rendering / Simple Shapes - Points
wowcubeapp-build.json
Examples / SDK 6.2 / C++ / rendering / Simple Shapes - Points / project
Previous Node
Points.cpp
Examples / SDK 6.2 / C++ / rendering / Simple Shapes - Points / project / src
Next Node
wowcubeapp-build.json
Examples / SDK 6.2 / C++ / rendering / Simple Shapes - Points / project