ObstacleGame/Helper.h

10 lines
333 B
C++

#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