Create Helper files

This commit is contained in:
2024-11-25 12:03:39 +01:00
parent 1c0dd4932d
commit 7f31271a8d
2 changed files with 46 additions and 0 deletions

10
Helper.h Normal file
View File

@ -0,0 +1,10 @@
#ifndef CPP_LEARNING_HELPER_H
#define CPP_LEARNING_HELPER_H
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
#include <string>
void drawTexture(SDL_Renderer *renderer, SDL_Texture *texture, int x, int y, int w, int h);
void drawText(SDL_Renderer *renderer, TTF_Font *font, const std::string text, int x, int y, int w, int h);
#endif