About to audit code.

This commit is contained in:
2021-08-19 23:07:20 -07:00
parent 45ff8d38a4
commit c42c90ec59
14 changed files with 186 additions and 11 deletions

View File

@ -0,0 +1,28 @@
// Copyright (c) 2021 Dominic Masters
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#pragma once
#include <dawn/dawn.h>
#include "../primitive.h"
/** How many slices in each cylinder. */
#define SKYWALL_SLICE_COUNT 20
/** How many vertices per slice */
#define SKYWALL_VERTICES_PER_SLICE 2
/** How many indices per slice */
#define SKYWALL_INDICES_PER_SLICE 6
/** How many vertices in the cylinder, +1 to have the cylinder "wrap" */
#define SKYWALL_VERTICE_COUNT (SKYWALL_SLICE_COUNT+1)*SKYWALL_VERTICES_PER_SLICE
/** How many indices in the cylinder */
#define SKYWALL_INDICE_COUNT SKYWALL_INDICES_PER_SLICE*SKYWALL_SLICE_COUNT
/** How big the skywall cylinder is */
#define SKYWALL_SIZE 100
void skywallInit(primitive_t *primitive);