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. QRCode.h
Mission NodeSDK 6.2C++gfx

QRCode.h

SDK Source File: QRCode.h

Source / SDK 6.2 / C++ / gfx

QRCode.h

QRCode.h
CPP
1/* Copyright Statement:
2 *
3 * (C) 2021-2024 Cubios Inc. All rights reserved.
4 */
5#pragma once
6#include "SceneObject.h"
7#include <string>
8
9namespace Cubios
10{
11namespace Gfx
12{
13class QRCode: public Cubios::SceneObject
14{
15 public:
16
17 QRCode(std::string data, const Cubios::Math::Transform& t);
18 QRCode(std::string data, float x, float y);
19 QRCode(std::string data, const Cubios::Math::Transform& t, u32_t size);
20 QRCode(std::string data, float x, float y, u32_t size);
21
22 QRCode(const QRCode& qr);
23 virtual ~QRCode();
24
25 //inplace setters
26 Cubios::SceneObject* SetSize(u32_t size);
27 Cubios::SceneObject* SetColor(const Math::Color& color);
28 Cubios::SceneObject* SetBackgroundColor(const Math::Color& color);
29 Cubios::SceneObject* SetData(std::string data);
30
31 void Render() override;
32
33 public:
34 Math::Color ColorZeros;
35 Math::Color ColorOnes;
36
37 u32_t Size;
38
39 private:
40 int16_t getNextID() {return rtc = (rtc+1) % 0xffff; }
41
42 private:
43 u32_t resourceId;
44 std::string data;
45
46 static u32_t rtc;
47};
48}
49}
50
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.
Context Rail

Related nodes

AnimatedSprite.cpp
Source / SDK 6.2 / C++ / gfx
AnimatedSprite.h
Source / SDK 6.2 / C++ / gfx
Background.cpp
Source / SDK 6.2 / C++ / gfx
Background.h
Source / SDK 6.2 / C++ / gfx
Previous Node
QRCode.cpp
Source / SDK 6.2 / C++ / gfx
Next Node
Sprite.cpp
Source / SDK 6.2 / C++ / gfx