Forgot a ton of files in the last commit.
This commit is contained in:
parent
f5f5ca6431
commit
df024adccd
24 changed files with 560 additions and 0 deletions
15
tests/textures.cpp
Normal file
15
tests/textures.cpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include <catch2/catch_test_macros.hpp>
|
||||
#include <fmt/core.h>
|
||||
#include <string>
|
||||
#include "textures.hpp"
|
||||
|
||||
using namespace fmt;
|
||||
|
||||
TEST_CASE("test texture management", "[textures]") {
|
||||
textures::init();
|
||||
auto spider = textures::get("textures_test");
|
||||
REQUIRE(spider.sprite != nullptr);
|
||||
REQUIRE(spider.texture != nullptr);
|
||||
|
||||
auto image = textures::load_image("assets/textures_test.png");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue