MXVK Vulkan Framework 0.24.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
BlockColor Struct Reference

Public Member Functions

void randcolor ()
void shiftcolor (bool dir)

Public Attributes

int c1
int c2
int c3

Detailed Description

Definition at line 85 of file acid.drop.cpp.

Member Function Documentation

◆ randcolor()

void BlockColor::randcolor ( )
inline

Definition at line 87 of file acid.drop.cpp.

87 {
88 c1 = 1 + rand() % 9;
89 c2 = 1 + rand() % 9;
90 c3 = 1 + rand() % 9;
91 if (c1 == c2 && c1 == c3)
92 randcolor();
93 }
void randcolor()
Definition acid.drop.cpp:87

◆ shiftcolor()

void BlockColor::shiftcolor ( bool dir)
inline

Definition at line 94 of file acid.drop.cpp.

94 {
95 int t1 = c1, t2 = c2, t3 = c3;
96 if (dir) {
97 c1 = t3;
98 c2 = t1;
99 c3 = t2;
100 } else {
101 c1 = t2;
102 c2 = t3;
103 c3 = t1;
104 }
105 }

Member Data Documentation

◆ c1

int BlockColor::c1

Definition at line 86 of file acid.drop.cpp.

◆ c2

int BlockColor::c2

Definition at line 86 of file acid.drop.cpp.

◆ c3

int BlockColor::c3

Definition at line 86 of file acid.drop.cpp.


The documentation for this struct was generated from the following file: