| 150 | } |
| 151 | |
| 152 | void |
| 153 | drawGlyph(int glyph, int positionIndex) |
| 154 | { |
| 155 | int x, y; |
| 156 | getPositionForCharNumber(positionIndex, &x, &y); |
| 157 | SDL_Rect srcRect = { GLYPH_SIZE_IMAGE * glyph, 0, GLYPH_SIZE_IMAGE, GLYPH_SIZE_IMAGE }; |
| 158 | SDL_Rect dstRect = { x, y, GLYPH_SIZE_SCREEN, GLYPH_SIZE_SCREEN }; |
| 159 | SDL_RenderCopy(renderer, texture, &srcRect, &dstRect); |
| 160 | } |
| 161 | |
| 162 | /* this function loads our font into an SDL_Texture and returns the SDL_Texture */ |
| 163 | SDL_Texture* |
no test coverage detected