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. Background.cpp
Mission NodeSDK 6.3C++gfx

Background.cpp

SDK Source File: Background.cpp

Source / SDK 6.3 / C++ / gfx

Background.cpp

Background.cpp
CPP
1/* Copyright Statement:
2 *
3 * (C) 2021-2025 Cubios Inc. All rights reserved.
4 */
5
6#include "Background.h"
7
8namespace Cubios
9{
10namespace Gfx
11{
12Background::Background(uint32_t c)
13{
14 this->Color.Set(c);
15}
16
17Background::Background(uint8_t R, uint8_t G, uint8_t B)
18{
19 this->Color.Set(R,G,B);
20}
21
22Background::Background(uint8_t R, uint8_t G, uint8_t B, uint8_t A)
23{
24 this->Color.Set(R,G,B,A);
25}
26
27Background::~Background() { }
28
29void Background::Render()
30{
31 Cubios::GFX_clear(this->Color.Value());
32}
33
34Cubios::SceneObject* Background::SetColor(uint32_t c)
35{
36 this->Color.Set(c);
37 return this;
38}
39Cubios::SceneObject* Background::SetColor(uint8_t R, uint8_t G, uint8_t B)
40{
41 this->Color.Set(R,G,B);
42 return this;
43}
44Cubios::SceneObject* Background::SetColor(uint8_t R, uint8_t G, uint8_t B, uint8_t A)
45{
46 this->Color.Set(R,G,B,A);
47 return this;
48}
49}
50}
51
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.
Context Rail

Related nodes

AnimatedSprite.cpp
Source / SDK 6.3 / C++ / gfx
AnimatedSprite.h
Source / SDK 6.3 / C++ / gfx
Background.h
Source / SDK 6.3 / C++ / gfx
Colors.h
Source / SDK 6.3 / C++ / gfx
Previous Node
AnimatedSprite.h
Source / SDK 6.3 / C++ / gfx
Next Node
Background.h
Source / SDK 6.3 / C++ / gfx