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

Public Member Functions

void init_matrix ()
 TileMatrix ()

Public Attributes

GameBlock block
GameData Game
int grid [GRID_WIDTH][GRID_HEIGHT]
GameBlock nextblock

Detailed Description

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

Constructor & Destructor Documentation

◆ TileMatrix()

TileMatrix::TileMatrix ( )
inline

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

122{ init_matrix(); }
void init_matrix()

Member Function Documentation

◆ init_matrix()

void TileMatrix::init_matrix ( )
inline

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

124 {
125 memset(grid, 0, sizeof(grid));
126 Game.newgame();
127 block.color.randcolor();
128 nextblock.color.randcolor();
129 }
GameBlock nextblock
GameData Game
GameBlock block
int grid[GRID_WIDTH][GRID_HEIGHT]

Member Data Documentation

◆ block

GameBlock TileMatrix::block

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

◆ Game

GameData TileMatrix::Game

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

◆ grid

int TileMatrix::grid[GRID_WIDTH][GRID_HEIGHT]

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

◆ nextblock

GameBlock TileMatrix::nextblock

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


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