DOlphin progress

This commit is contained in:
2026-02-04 10:16:16 -06:00
parent 5cea284906
commit 1c32158142
21 changed files with 565 additions and 43 deletions

21
src2/sdl_assets_loader.h Normal file
View File

@@ -0,0 +1,21 @@
#pragma once
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_mixer.h>
#include <SDL2/SDL_ttf.h>
#include <iostream>
typedef struct
{
SDL_Texture *texture;
SDL_Rect textureBounds;
} Sprite;
Sprite loadSprite(SDL_Renderer *renderer, const char *filePath, int positionX, int positionY);
Mix_Chunk *loadSound(const char *filePath);
Mix_Music *loadMusic(const char *filePath);
void updateTextureText(SDL_Texture *&texture, const char *text, TTF_Font *&fontSquare, SDL_Renderer *renderer);