diff options
author | Danny Holman <dholman@gymli.org> | 2024-08-22 21:00:07 -0500 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2024-08-22 21:00:07 -0500 |
commit | 76d7d478a9e5ad10b76e246367779216fbd0fb60 (patch) | |
tree | 2100278788048d835116535bdeff2b6313a4ce50 /include/rune_math.h | |
parent | 7fcb77fbec3a49baf42fc12292d1c897b6b6645a (diff) |
core: add headers for basic types and export macros
Add header files that contain basic type information as well as export
macros for systems that use a specific export line for linking, e.g.
Windows.
Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'include/rune_math.h')
-rw-r--r-- | include/rune_math.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/include/rune_math.h b/include/rune_math.h new file mode 100644 index 0000000..25bf4fd --- /dev/null +++ b/include/rune_math.h @@ -0,0 +1,37 @@ +#ifndef RUNE_MATH_H +#define RUNE_MATH_H + +struct vec2 { + float x; + float y; +}; + +struct vec3 { + float x; + float y; + float z; +}; + +struct vec4 { + float x; + float y; + float z; + float w; +}; + +struct mat3 { + struct vec3 v[3]; +}; + +struct mat4 { + struct vec3 v[4]; +}; + +struct quat { + float x; + float y; + float z; + float w; +}; + +#endif |