-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from wutipong/feature/clean-up2
Clean Up #2
- Loading branch information
Showing
16 changed files
with
201 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#ifndef COLORS_HPP | ||
#define COLORS_HPP | ||
|
||
#include <SDL2/SDL.h> | ||
|
||
constexpr SDL_Color debugGlyphBoundColor{0xFF, 0xFF, 0x80, 0xFF}; | ||
constexpr SDL_Color debugBaselineColor{0xFF, 0x00, 0x00, 0xFF}; | ||
constexpr SDL_Color debugCaretColor{0x00, 0xFF, 0xFF, 0xFF}; | ||
constexpr SDL_Color debugAscendColor{0x40, 0x40, 0xFF, 0x80}; | ||
constexpr SDL_Color debugDescendColor{0x40, 0xFF, 0x40, 0x80}; | ||
constexpr SDL_Color backgroundColor{0x80, 0x80, 0x80, 0xFF}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
#pragma once | ||
#include "font.hpp" | ||
|
||
void DrawGlyph(Context &ctx, const Font &font, const Glyph &g, | ||
const SDL_Color &color, const int &x, const int &y); | ||
void DrawGlyph(SDL_Renderer *renderer, Context &ctx, const Font &font, | ||
const Glyph &g, const SDL_Color &color, const int &x, | ||
const int &y); | ||
|
||
void DrawGlyph(Context &ctx, const Font &font, const Glyph &g, | ||
const SDL_Color &color, const int &x, const int &y, | ||
const hb_glyph_position_t &hb_glyph_pos); | ||
void DrawGlyph(SDL_Renderer *renderer, Context &ctx, const Font &font, | ||
const Glyph &g, const SDL_Color &color, const int &x, | ||
const int &y, const hb_glyph_position_t &hb_glyph_pos); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.