Create Helper files
This commit is contained in:
10
Helper.h
Normal file
10
Helper.h
Normal 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
|
Reference in New Issue
Block a user