MXVK Vulkan Framework 0.35.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 64 of file acid.drop.cpp.

Member Function Documentation

◆ randcolor()

void BlockColor::randcolor ( )
inline

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

66 {
67 c1 = 1 + rand() % 9;
68 c2 = 1 + rand() % 9;
69 c3 = 1 + rand() % 9;
70 if (c1 == c2 && c1 == c3)
71 randcolor();
72 }
void randcolor()
Definition acid.drop.cpp:66

◆ shiftcolor()

void BlockColor::shiftcolor ( bool dir)
inline

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

73 {
74 int t1 = c1, t2 = c2, t3 = c3;
75 if (dir) {
76 c1 = t3;
77 c2 = t1;
78 c3 = t2;
79 } else {
80 c1 = t2;
81 c2 = t3;
82 c3 = t1;
83 }
84 }

Member Data Documentation

◆ c1

int BlockColor::c1

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

◆ c2

int BlockColor::c2

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

◆ c3

int BlockColor::c3

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


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