You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
587 B
C

#include <SDL.h>
SDL_Event event;
int windowLoop(void){
while (1) {
SDL_PollEvent(&event);
if (event.type == SDL_QUIT) {
break;
}
loadBackgroundColor();
char text[] = "aurora"; // El texto que quiero mostrar
int x = 10; // posición x inicial
int y = 10; // posición y de todos los caracteres
int size = 40; // tamaño
int space = 45; // Espaciado entre letra y letra
for (int i = 0; i < strlen(text); i++){
putChar(x,y,size,text[i]);
x = x + space;
}
SDL_RenderPresent(renderer);
}
return 0;
}