mirror of
https://github.com/thepigeongenerator/sdl_template.git
synced 2025-12-17 05:55:47 +01:00
remove all vec2 code generation as it does more harm than good
This commit is contained in:
@@ -1,32 +0,0 @@
|
|||||||
#ifndef VEC2_H
|
|
||||||
#define VEC2_H
|
|
||||||
#define VEC2_COMB2(a, b) a##b
|
|
||||||
#define VEC2_COMB1(a, b) VEC2_COMB2(a, b)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef VEC2_TYPE
|
|
||||||
|
|
||||||
// customising the linkage
|
|
||||||
#ifndef VEC2_LINKAGE
|
|
||||||
#define VEC2_LINKAGE static inline
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// customising the name
|
|
||||||
#ifndef VEC2_NAME
|
|
||||||
#define VEC2_NAME VEC2_COMB1(vec2_, VEC2_TYPE)
|
|
||||||
#endif // VEC2_NAME
|
|
||||||
|
|
||||||
// defines a two-dimensional vector of a specific type
|
|
||||||
typedef struct {
|
|
||||||
VEC2_TYPE x;
|
|
||||||
VEC2_TYPE y;
|
|
||||||
} VEC2_NAME;
|
|
||||||
|
|
||||||
// TODO: implement vector-based logic
|
|
||||||
|
|
||||||
#undef VEC2_NAME
|
|
||||||
#undef VEC2_LINKAGE
|
|
||||||
#undef VEC2_TYPE
|
|
||||||
#elif __INCLUDE_LEVEL__ != 0
|
|
||||||
#error define VEC2_TYPE before including
|
|
||||||
#endif // VEC2_TYPE
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
#define VEC2_TYPE float
|
|
||||||
#define VEC2_NAME vec2_f32
|
|
||||||
#include "../gen/vec2.h"
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
#define VEC2_TYPE double
|
|
||||||
#define VEC2_NAME vec2_f64
|
|
||||||
#include "../gen/vec2.h"
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
#define VEC2_TYPE short
|
|
||||||
#define VEC2_NAME vec2_i16
|
|
||||||
#include "../gen/vec2.h"
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
#define VEC2_TYPE int
|
|
||||||
#define VEC2_NAME vec2_i32
|
|
||||||
#include "../gen/vec2.h"
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
#define VEC2_TYPE long
|
|
||||||
#define VEC2_NAME vec2_i64
|
|
||||||
#include "../gen/vec2.h"
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
#define VEC2_TYPE char
|
|
||||||
#define VEC2_NAME vec2_i8
|
|
||||||
#include "../gen/vec2.h"
|
|
||||||
Reference in New Issue
Block a user