mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-06-05 02:49:50 +00:00
adding Vector2 in Models and starting drawBgTile loop
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user