A GUI library for games that's so small you won't even know its there.
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
#include <catch2/catch_test_macros.hpp>
|
|
|
|
#include <fmt/core.h>
|
|
|
|
#include <string>
|
|
|
|
#include "guecs/sfml/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");
|
|
|
|
}
|