MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / draw

Function draw

deps/SDL2/Xcode-iOS/Demos/src/keyboard.c:198–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198void
199draw()
200{
201 SDL_SetRenderDrawColor(renderer, bg_color.r, bg_color.g, bg_color.b, bg_color.a);
202 SDL_RenderClear(renderer);
203
204 for (int i = 0; i < numChars; i++) {
205 drawGlyph(glyphs[i], i);
206 }
207
208 drawGlyph(29, numChars); /* cursor is at index 29 in the bitmap font */
209
210 SDL_RenderPresent(renderer);
211}
212
213int
214main(int argc, char *argv[])

Callers 1

mainFunction · 0.70

Calls 4

SDL_SetRenderDrawColorFunction · 0.85
SDL_RenderClearFunction · 0.85
drawGlyphFunction · 0.85
SDL_RenderPresentFunction · 0.85

Tested by

no test coverage detected