adding Vector2 in Models and starting drawBgTile loop

This commit is contained in:
Clément Le Bihan
2020-05-13 13:07:20 +02:00
parent 3e811db9cd
commit ffe1b8fc1b
5 changed files with 167 additions and 4 deletions
+24
View File
@@ -0,0 +1,24 @@
//
// Created by cbihan on 1/27/20.
//
#ifndef COMSQUARE_PPU_UTILS_HPP
#define COMSQUARE_PPU_UTILS_HPP
namespace ComSquare::PPU
{
union TileMapData {
struct {
uint8_t posY: 4;
uint8_t posX: 6;
uint8_t palette: 3;
bool tilePriority: 1;
bool horizontalFlip: 1;
bool verticalFlip: 1;
};
uint16_t raw;
};
}
#endif //COMSQUARE_PPU_UTILS_HPP