Update documentation

This commit is contained in:
Rob Loach
2020-04-11 16:05:21 -04:00
parent 478d794696
commit 4778f22966
8 changed files with 423 additions and 387 deletions

View File

@@ -18,11 +18,18 @@ TEST_CASE("raylib_test", "[raylib_test]" ) {
SECTION("Color") {
raylib::Color c(RED);
REQUIRE(c.ToInt() == ColorToInt(RED));
REQUIRE(c.ToInt() == ::ColorToInt(RED));
c = RAYWHITE;
REQUIRE(c.r == RAYWHITE.r);
REQUIRE(raylib::Color::LightGray.r == LIGHTGRAY.r);
}
SECTION("Vector2") {
raylib::Vector2 position(50, 50);
raylib::Vector2 speed(10, 10);
position += speed;
REQUIRE(position.x == 60);
}
}