canviat abs per fabs

This commit is contained in:
2025-03-24 13:44:46 +01:00
parent e2e3b7c779
commit 29b18e30b5
7 changed files with 54 additions and 35 deletions
+9 -3
View File
@@ -1,8 +1,14 @@
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include <stdio.h>
#include <string>
#include "texture.h"
#include <SDL3/SDL_error.h> // for SDL_GetError
#include <SDL3/SDL_log.h> // for SDL_Log
#include <SDL3/SDL_pixels.h> // for SDL_PixelFormat
#include <SDL3/SDL_surface.h> // for SDL_CreateSurfaceFrom, SDL_DestroySurface
#include <stdio.h> // for NULL
#include <stdlib.h> // for exit
#include <iostream> // for basic_ostream, char_traits, operator<<
#include <string> // for operator<<, string
#include "stb_image.h" // for stbi_failure_reason, stbi_image_free
Texture::Texture(SDL_Renderer *renderer)
: renderer_(renderer), texture_(nullptr), width_(0), height_(0) {}