|
|
@ -99,11 +99,14 @@ VkResult main_thread(ClientContext* context) {
|
|
|
|
0x0000FFFF,
|
|
|
|
0x0000FFFF,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
context->hex->data.current_map = 0x01;
|
|
|
|
|
|
|
|
add_transfer(&context->hex->data.current_map, context->hex->context, offsetof(GPUHexContext, current_map), sizeof(uint32_t), context->render->current_frame, context->render);
|
|
|
|
|
|
|
|
|
|
|
|
uint32_t region = 0;
|
|
|
|
uint32_t region = 0;
|
|
|
|
for(int32_t y = -2; y < 2; y++) {
|
|
|
|
for(int32_t y = -2; y < 2; y++) {
|
|
|
|
for(int32_t q = -5; q < 5; q++) {
|
|
|
|
for(int32_t q = -5; q < 5; q++) {
|
|
|
|
for(int32_t r = -5; r < 5; r++) {
|
|
|
|
for(int32_t r = -5; r < 5; r++) {
|
|
|
|
VK_RESULT(set_hex_region(q, r, y, 0x00, ®ions[region], context->hex, context->render));
|
|
|
|
VK_RESULT(set_hex_region(q, r, y, 0x01, ®ions[region], context->hex, context->render));
|
|
|
|
for(uint32_t i = 0; i < REGION_HEX_COUNT; i++) {
|
|
|
|
for(uint32_t i = 0; i < REGION_HEX_COUNT; i++) {
|
|
|
|
for(uint32_t h = 0; h < 6; h++) {
|
|
|
|
for(uint32_t h = 0; h < 6; h++) {
|
|
|
|
regions[region]->data.hexes[i].color[h] = colors[(q+r+50) % (sizeof(colors)/sizeof(uint32_t))];
|
|
|
|
regions[region]->data.hexes[i].color[h] = colors[(q+r+50) % (sizeof(colors)/sizeof(uint32_t))];
|
|
|
|