Exploring raycasters and possibly make a little "doom like" game based on it.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#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("hairy_spider");
|
|
|
|
|
|
|
|
auto image = textures::load_image("assets/hairy_spider-256.png");
|
|
|
|
|
|
|
|
auto img_ptr = textures::get_surface(0);
|
|
|
|
REQUIRE(img_ptr != nullptr);
|
|
|
|
}
|