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:
@@ -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);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user