Skip to content

Commit

Permalink
Add test for LCD subpixel rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrietS committed Mar 13, 2024
1 parent d0c4789 commit 51bff26
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/TestAtlas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,14 @@ TEST(AtlasConstructionTests, shouldBeAbleToSetCharset)
Trex::Atlas atlas(fontPath.data(), 32, charset);
}

TEST(AtlasConstructionTests, shouldBeAbleToSetRenderMode)
TEST(AtlasConstructionTests, shouldBeAbleToSetSdfRenderMode)
{
constexpr auto renderMode = Trex::RenderMode::SDF;
Trex::Atlas atlas(fontPath.data(), 32, Trex::Charset::Full(), renderMode);
Trex::Atlas atlas(fontPath.data(), 32, Trex::Charset::Full(), Trex::RenderMode::SDF);
}

TEST(AtlasConstructionTests, shouldBeAbleToSetLcdRenderMode)
{
Trex::Atlas atlas(fontPath.data(), 32, Trex::Charset::Full(), Trex::RenderMode::LCD);
}

TEST(AtlasConstructionTests, shouldBeAbleToSetPadding)
Expand Down

0 comments on commit 51bff26

Please sign in to comment.