terrain

Real-time terrain generation using marching cubes
git clone git://git.christianermann.dev/terrain
Log | Files | Refs | README | LICENSE

commit 4c1d97d987c0ab5942fa0f0c53fddfb45e299e3c
parent f168ef2f73f14164c68ff7ca3ad0455b699a8e6f
Author: Christian Ermann <christianermann@gmail.com>
Date:   Fri, 29 Jul 2022 18:57:19 -0700

Added set-width type definitions

Diffstat:
Ainclude/types.h | 26++++++++++++++++++++++++++
1 file changed, 26 insertions(+), 0 deletions(-)

diff --git a/include/types.h b/include/types.h @@ -0,0 +1,26 @@ +#pragma once + +#include <stdint.h> + +// Unsigned integer types +typedef uint8_t u8; +typedef uint16_t u16; +typedef uint32_t u32; +typedef uint64_t u64; + +// Signed integer types +typedef int8_t i8; +typedef int16_t i16; +typedef int32_t i32; +typedef int64_t i64; + +// Floating point types +typedef float f32; +typedef double f64; + +// Boolean types +typedef int8_t b8; + +#define true 1 +#define false 0 +