-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
|
||
#include "../src/libprimis-headers/cube.h" | ||
|
||
#include "../src/shared/geomexts.h" | ||
#include "../src/shared/glexts.h" | ||
|
||
#include <optional> | ||
#include <memory> | ||
|
||
#include "../src/engine/interface/console.h" | ||
#include "../src/engine/interface/cs.h" | ||
|
||
#include "../src/engine/render/rendergl.h" | ||
#include "../src/engine/render/rendermodel.h" | ||
#include "../src/engine/render/shader.h" | ||
#include "../src/engine/render/shaderparam.h" | ||
#include "../src/engine/render/texture.h" | ||
|
||
#include "../src/engine/world/entities.h" | ||
#include "../src/engine/world/bih.h" | ||
|
||
#include "../src/engine/model/model.h" | ||
#include "../src/engine/model/ragdoll.h" | ||
#include "../src/engine/model/animmodel.h" | ||
|
||
namespace | ||
{ | ||
void test_animstate_equals() | ||
{ | ||
std::printf("testing animstate operator==\n"); | ||
animmodel::AnimPos p{1,1,1,1.f}; | ||
animmodel::AnimState s1{nullptr, p, p, 1.f}; | ||
animmodel::AnimState s2{nullptr, p, p, 0.f}; | ||
assert(s1 == s1); | ||
assert(!(s2 == s1)); | ||
assert(!(s1 == s2)); | ||
} | ||
} | ||
|
||
void test_animmodel() | ||
{ | ||
std::printf( | ||
"===============================================================\n\ | ||
testing animmodel functionality\n\ | ||
===============================================================\n" | ||
); | ||
test_animstate_equals(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef TEST_ANIMMODEL_H_ | ||
#define TEST_ANIMMODEL_H_ | ||
|
||
extern void test_animmodel(); | ||
|
||
#endif | ||
|
||
|