Merge branch 'master' of git.sr.ht:~lolzdev/topaz
This commit is contained in:
commit
4b18afa040
9 changed files with 95680 additions and 7 deletions
|
|
@ -1,7 +1,7 @@
|
|||
/* SPDX-License-Identifier:BSD-3-Clause */
|
||||
#ifndef ARENA_H
|
||||
#define ARENA_H
|
||||
#include "../types.h"
|
||||
#include "../core/types.h"
|
||||
|
||||
typedef struct {
|
||||
usize capacity;
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include "../types.h"
|
||||
#include "../core/types.h"
|
||||
|
||||
#define PI 3.14159265358979323846
|
||||
#define RAD(deg) deg * (PI / 180.0f)
|
||||
|
|
|
|||
24
core/types.h
Normal file
24
core/types.h
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
/* SPDX-License-Identifier:BSD-3-Clause */
|
||||
#ifndef TYPES_H
|
||||
#define TYPES_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
typedef uint8_t u8;
|
||||
typedef uint16_t u16;
|
||||
typedef uint32_t u32;
|
||||
typedef uint64_t u64;
|
||||
|
||||
typedef int8_t i8;
|
||||
typedef int16_t i16;
|
||||
typedef int32_t i32;
|
||||
typedef int64_t i64;
|
||||
|
||||
typedef size_t usize;
|
||||
|
||||
typedef float f32;
|
||||
typedef double f64;
|
||||
|
||||
|
||||
#endif
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
#define VECTOR_H
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "../types.h"
|
||||
#include "../core/types.h"
|
||||
|
||||
/*
|
||||
* The vector is a dynamically growing array that can be operated as a regular
|
||||
|
|
|
|||
95649
miniaudio.h
Normal file
95649
miniaudio.h
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -3,7 +3,7 @@
|
|||
#define PHYSICAL_DEVICE_H
|
||||
|
||||
#include "vk.h"
|
||||
#include "../../types.h"
|
||||
#include "../../core/types.h"
|
||||
#include "../../core/vector.h"
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
#define VK_H
|
||||
|
||||
#include <vulkan/vulkan.h>
|
||||
#include "../../types.h"
|
||||
#include "../../core/types.h"
|
||||
#include "../../rgfw.h"
|
||||
|
||||
struct queue_family_indices {
|
||||
|
|
|
|||
2
rgfw.h
2
rgfw.h
|
|
@ -353,7 +353,7 @@ extern "C" {
|
|||
|
||||
#define RGFW_HEADER
|
||||
|
||||
#include "types.h"
|
||||
#include "core/types.h"
|
||||
|
||||
typedef ptrdiff_t RGFW_ssize_t;
|
||||
|
||||
|
|
|
|||
2
topaz.c
2
topaz.c
|
|
@ -3,7 +3,7 @@
|
|||
#include <stdio.h>
|
||||
#include "platform.h"
|
||||
#include "core/arena.h"
|
||||
#include "types.h"
|
||||
#include "core/types.h"
|
||||
|
||||
i32 main(i32 argc, char **argv)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue