Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed various issues #37

Merged
merged 9 commits into from
Aug 30, 2016
Merged

Fixed various issues #37

merged 9 commits into from
Aug 30, 2016

Conversation

StrangeZak
Copy link
Member

No description provided.

@StrangeZak
Copy link
Member Author

Check this out and see if it woks on your build @bvisness

@bvisness
Copy link
Member

If you merge #38 we can have Travis run it! 😄

@bvisness
Copy link
Member

(I am checking it out and running it locally in the meantime.)


HMMDEF float HMM_DotVec2(hmm_vec3 VecOne, hmm_vec3 VecTwo);
HMMDEF float HMM_DotVec3(hmm_vec3 VecOne, hmm_vec3 VecTwo);
HMMDEF float HMM_DotVec4(hmm_vec3 VecOne, hmm_vec3 VecTwo);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These function signatures all use hmm_vec3.

Copy link
Member

@bvisness bvisness Aug 30, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, let's add C++-style overloaded versions of these called just HMM_Dot. (We could operator overload too, but I'm not sure there is a widely-accepted operator for this.)

@bvisness
Copy link
Member

I am not a contributor to this repo, so rather than do some complicated thing with branches and merging, here is a Gist with some changes that should be made to the tests: https://gist.github.com/bvisness/88a9b8b10095e600476bf3c80cdbaf85

@StrangeZak
Copy link
Member Author

@bvisness Oh my. Here ill make you a contributor now

@StrangeZak
Copy link
Member Author

@bvisness You shouldve gotten a email or something now that i added you

@StrangeZak
Copy link
Member Author

@bvisness Wanna do a final check on this before i merge this into master, i think were good but i would like someone else to check on it.

@bvisness
Copy link
Member

I found a quick problem with the tests that I'm fixing. Give me just a bit.

@StrangeZak
Copy link
Member Author

Can Travis run a MSVC build also?

@bvisness
Copy link
Member

Sadly, no. :( It only supports Make with clang and gcc at the moment. Still, that should be enough to verify that everything works in general (although warnings may vary.)

@StrangeZak
Copy link
Member Author

Makes sense, everything good to merge in now?

{
EXPECT_FLOAT_EQ(HMM_Clamp(-2.0f, 0.0f, 2.0f), 0.0f);
EXPECT_FLOAT_EQ(HMM_Clamp(-2.0f, -3.0f, 2.0f), -2.0f);
EXPECT_FLOAT_EQ(HMM_Clamp(-2.0f, 3.0f, 2.0f), 2.0f);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove the test for HMM_Clamp?

@bvisness
Copy link
Member

Besides the test for HMM_Clamp being deleted, everything looks good to merge! (And it works fine in my project, after renaming some functions.)

@StrangeZak StrangeZak merged commit bcc93f6 into master Aug 30, 2016
@StrangeZak
Copy link
Member Author

Merged

@bvisness bvisness deleted the development branch November 15, 2016 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants