Fix gamma rendering issues

- Remove gamma correction from the Vulkan renderer
- Add SamplerCreator, used to specify Min/Mag filter
- Add character texture to example project
- Add AnimationSystem, DebugSystem and UiRenderSystem to example project
This commit is contained in:
Thraix
2023-06-19 12:37:11 +02:00
parent 76bda0ace4
commit 042d1b6c70
42 changed files with 510 additions and 123 deletions
+2 -1
View File
@@ -16,6 +16,7 @@ namespace Copium
std::map<char, Glyph> glyphs;
float lineHeight;
float baseHeight;
public:
Font(const MetaFile& metaFile);
~Font() override;
@@ -24,10 +25,10 @@ namespace Copium
const Glyph& GetGlyph(char c) const;
float GetLineHeight() const;
float GetBaseHeight() const;
BoundingBox GetTextBoundingBox(const std::string& str, float size) const;
private:
void InitializeTextureImageFromFile(const std::string& filename);
void InitializeTextureImageFromData(const uint8_t* rgbaData, int width, int height);
};
}