Beispiel #1
0
void render(SDL_Window *window)
{
    /* Set the background black */
    GL(glClearColor, (0.0f, 0.0f, 0.0f, 0.0f));
	/* Clear The Screen And The Depth Buffer */
	GL(glClear, (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT));

	/* Draw text */
	const uint32_t text[] = { 'A', 'B', 'C', 'D', 'g', 'i', ',', 0 };
	text_renderer.drawText(text, 0, 4);

	SDL_GL_SwapWindow(window);
}