- [NEW] Pasada la textura de font a png
- [FIX] debugger inicialitzat al començar - [WIP] Noves classes de UI
This commit is contained in:
1 parent
1dddc11722
commit
6c205fb014
7 files changed
+255
-1
No files matched your search
+1
-1
@@ -33,7 +33,7 @@ namespace ui
|
||||
|
||||
SDL_Texture * createtexture(SDL_Renderer *renderer)
|
||||
{
|
||||
SDL_Surface *bmp_surface = SDL_LoadBMP("font.bmp");
|
||||
SDL_Surface *bmp_surface = SDL_LoadPNG("font.png");
|
||||
SDL_Texture *texture = SDL_CreateTextureFromSurface(renderer, bmp_surface);
|
||||
SDL_DestroySurface(bmp_surface);
|
||||
SDL_SetTextureScaleMode(texture, SDL_SCALEMODE_NEAREST);
|
||||
|
||||
Reference in new issue
Block a user