Removed testing code from repo

This commit is contained in:
StrangeZak
2016-05-20 19:53:17 -07:00
parent 6a2fac6a00
commit bde2c4c8b1
4 changed files with 0 additions and 58 deletions

1
.gitignore vendored
View File

@@ -1 +0,0 @@
build/

View File

@@ -1,13 +0,0 @@
@echo off
IF NOT EXIST build mkdir build
pushd build
REM C Build
cl -nologo -FC -Z7 -Tc ..\main.c
REM C++ Build
cl -nologo -FC -Z7 ..\main.cpp
popd

18
main.c
View File

@@ -1,18 +0,0 @@
#define HANDMADE_MATH_IMPLEMENTATION
#include "HandmadeMath.h"
int
main(void)
{
hmm_mat4 MatrixOne = HMM_Mat4d(1.0f);
hmm_mat4 MatrixTwo = HMM_Mat4d(4.0f);
hmm_mat4 MatrixResult = HMM_MultiplyMat4(MatrixOne, MatrixTwo);
hmm_v2 VecOne = HMM_Vec2(1.0f, 1.0f);
hmm_v2 VecTwo = HMM_Vec2(3.0f, 3.0f);
hmm_v2 Result = HMM_AddVec2(VecOne, VecTwo);
return(0);
}

View File

@@ -1,26 +0,0 @@
#define HANDMADE_MATH_IMPLEMENTATION
#define HANDMADE_MATH_CPP_MODE
#include "HandmadeMath.h"
int
main(void)
{
hmm_mat4 MatrixOne = HMM_Mat4d(1.0f);
hmm_mat4 MatrixTwo = HMM_Mat4d(4.0f);
hmm_mat4 ResultMatrix = MatrixOne * MatrixTwo;
hmm_mat4 OrthographicMatrix = HMM_Orthographic(-1.0f, 1.0f, -1.0f, 1.0f, 0.0f, 1.0f);
hmm_mat4 PrespectiveMatrix = HMM_Perspective(45.0f, 16/9, 0.0f, 100.0f);
hmm_mat4 TranslationMatrix = HMM_Translate(HMM_Vec3(1.0f, 0.0f, 0.0f));
hmm_mat4 RotationMatrix = HMM_Rotate(45.0f, HMM_Vec3(1, 0, 0));
hmm_mat4 LookAtMatrix = HMM_LookAt(HMM_Vec3(0, 1, 0), HMM_Vec3(0, 0, 0), HMM_Vec3(1, 0, 0));
hmm_mat4 ScaleMatrix = HMM_Scale(HMM_Vec3(1.0f, 0.0f, 0.0f));
float SquareRootResult = HMM_SquareRoot(36);
return(0);
}