mirror of
https://github.com/thepigeongenerator/sdl_template.git
synced 2025-12-17 05:55:47 +01:00
move includes to more logical positions
This commit is contained in:
@@ -1,9 +1,15 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include "gametime.h"
|
#include "gametime.h"
|
||||||
|
|
||||||
|
// constants for pi(π) and tau(τ)
|
||||||
|
#define PI (M_PI) // π constant
|
||||||
|
#define TAU (M_PI * 2.0) // τ constant
|
||||||
|
#define PIf (M_PIf) //
|
||||||
|
#define TAUf (M_PIf * 2.0F) //
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
gametime time;
|
gametime time;
|
||||||
} gamedata;
|
} gamedata;
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
#ifndef DYNARR_H
|
#ifndef DYNARR_H
|
||||||
#define DYNARR_H
|
#define DYNARR_H
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
#define DYNARR_COMB2(a, b) a##b
|
#define DYNARR_COMB2(a, b) a##b
|
||||||
#define DYNARR_COMB1(a, b) DYNARR_COMB2(a, b)
|
#define DYNARR_COMB1(a, b) DYNARR_COMB2(a, b)
|
||||||
#endif // DYNARR_H
|
#endif // DYNARR_H
|
||||||
|
|
||||||
#ifdef DYNARR_TYPE
|
#ifdef DYNARR_TYPE
|
||||||
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user