Add documentation for v0.5

This commit is contained in:
Ben Visness
2016-08-23 18:20:59 -05:00
parent 077bdcd346
commit c9ec065fd5
2 changed files with 31 additions and 18 deletions

View File

@@ -1,9 +1,11 @@
/* /*
HandmadeMath.h v0.4 HandmadeMath.h v0.5
This is a single header file with a bunch of useful functions for This is a single header file with a bunch of useful functions for
basic game math operations. basic game math operations.
========================================================================== ==========================================================================
You MUST You MUST
#define HANDMADE_MATH_IMPLEMENTATION #define HANDMADE_MATH_IMPLEMENTATION
@@ -15,10 +17,11 @@
#include "HandmadeMath.h" #include "HandmadeMath.h"
All other files should just #include "HandmadeMath.h" without the #define. All other files should just #include "HandmadeMath.h" without the #define.
========================================================================== ==========================================================================
For overloaded, and operator overloaded versions of the base C functions. For overloaded and operator overloaded versions of the base C functions,
You MUST you MUST
#define HANDMADE_MATH_CPP_MODE #define HANDMADE_MATH_CPP_MODE
@@ -30,9 +33,10 @@
#include "HandmadeMath.h" #include "HandmadeMath.h"
All other files should just #include "HandmadeMath.h" without the #define. All other files should just #include "HandmadeMath.h" without the #define.
========================================================================== ==========================================================================
To disable SSE intrinsics, for You MUST To disable SSE intrinsics, you MUST
#define HANDMADE_MATH_NO_SSE #define HANDMADE_MATH_NO_SSE
@@ -48,6 +52,7 @@
#define HANDMADE_MATH_IMPLEMENTATION #define HANDMADE_MATH_IMPLEMENTATION
#define HANDMADE_MATH_NO_SSE #define HANDMADE_MATH_NO_SSE
#include "HandmadeMath.h"
========================================================================== ==========================================================================
@@ -84,8 +89,8 @@
#define HANDMADE_MATH_CPP_MODE #define HANDMADE_MATH_CPP_MODE
#include "HandmadeMath.h" #include "HandmadeMath.h"
If you do not define these HandmadeMath.h will use version the version If you do not define all three of these, HandmadeMath.h will use the
of these function that are provided by the CRT. versions of these functions that are provided by the CRT.
========================================================================== ==========================================================================
@@ -105,6 +110,13 @@
(*) SSE Optimized HMM_SqrtF (*) SSE Optimized HMM_SqrtF
(*) SSE Optimized HMM_RSqrtF (*) SSE Optimized HMM_RSqrtF
(*) Removed CRT (*) Removed CRT
0.5
(*) Added scalar multiplication and division for vectors
and matrices
(*) Added matrix subtraction and += for hmm_mat4
(*) Reconciled all headers and implementations
(*) Tidied up, and filled in a few missing operators
LICENSE LICENSE

View File

@@ -5,6 +5,7 @@ Single-file public domain game math library for C/C++
Version | Changes | Version | Changes |
----------------|----------------| ----------------|----------------|
**0.5** | Added scalar operations on vectors and matrices, added += and -= for hmm_mat4, reconciled headers and implementations, tidied up in general |
**0.4** | Added SSE Optimized HMM_SqrtF, HMM_RSqrtF, Removed use of CRT | **0.4** | Added SSE Optimized HMM_SqrtF, HMM_RSqrtF, Removed use of CRT |
**0.3** | Added +=,-=, *=, /= for hmm_vec2, hmm_vec3, hmm_vec4 | **0.3** | Added +=,-=, *=, /= for hmm_vec2, hmm_vec3, hmm_vec4 |
**0.2b** | Disabled warning C4201 on MSVC, Added 64bit percision on HMM_PI | **0.2b** | Disabled warning C4201 on MSVC, Added 64bit percision on HMM_PI |
@@ -21,6 +22,6 @@ _ID: In Development_
This library is in the public domain. You can do whatever you want with them. This library is in the public domain. You can do whatever you want with them.
**Where can i contact you to ask quesitons ?** **Where can I contact you to ask questions?**
You can email me at: Zak@Handmade.Network You can email me at: Zak@Handmade.Network