Documentation for module: Graphics

Former-commit-id: 5fba876346aec7b35bc618002b669ff194e58544
This commit is contained in:
Gawaboumga
2016-05-30 14:21:36 +02:00
parent 6b1cfca761
commit 74081c2b9f
94 changed files with 4858 additions and 504 deletions

View File

@@ -0,0 +1,20 @@
#include <Nazara/Graphics/TextureBackground.hpp>
#include <Catch/catch.hpp>
SCENARIO("TextureBackground", "[GRAPHICS][TEXTUREBACKGROUND]")
{
GIVEN("A default texture background")
{
Nz::TextureRef textureRef = Nz::Texture::New();
textureRef->LoadFromFile("resources/Engine/Graphics/skybox.png");
Nz::TextureBackgroundRef textureBackgroundRef = Nz::TextureBackground::New(textureRef);
WHEN("We assign it parameters")
{
THEN("We can get it")
{
REQUIRE(textureBackgroundRef->GetTexture().Get() == textureRef.Get());
}
}
}
}