Files
factorygame/util/util.h
2025-04-24 20:04:41 +02:00

29 lines
652 B
C

//
// Created by bruno on 4/24/25.
//
#ifndef FACTORYGAME_UTIL_H
#define FACTORYGAME_UTIL_H
#include <SDL2/SDL.h>
typedef enum {
ORIENT_LEFT_DOWN,
ORIENT_LEFT,
ORIENT_LEFT_UP,
ORIENT_UP,
ORIENT_RIGHT_UP,
ORIENT_RIGHT,
ORIENT_RIGHT_DOWN,
ORIENT_DOWN,
ORIENT_DIRECTION_COUNT
} OrientDirection;
SDL_Texture *createRotatedTexture(SDL_Renderer *renderer, SDL_Texture *src, double angle);
SDL_Texture *createFlippedTexture(SDL_Renderer *renderer, SDL_Texture *src, SDL_RendererFlip flip);
SDL_Texture* ScaleTexture(SDL_Renderer* renderer, SDL_Texture* src, int newWidth, int newHeight);
#endif //FACTORYGAME_UTIL_H