Background.cpp
Background.cpp
CPP1/* Copyright Statement:2 *3 * (C) 2021-2024 Cubios Inc. All rights reserved.4 */56#include "Background.h"78namespace Cubios9{10namespace Gfx11{12Background::Background(uint32_t c)13{14 this->Color.Set(c);15}1617Background::Background(uint8_t R, uint8_t G, uint8_t B)18{19 this->Color.Set(R,G,B);20}2122Background::Background(uint8_t R, uint8_t G, uint8_t B, uint8_t A)23{24 this->Color.Set(R,G,B,A);25}2627Background::~Background() { }2829void Background::Render()30{31 Cubios::GFX_clear(this->Color.Value());32}3334Cubios::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.