something
This commit is contained in:
28
util/util.h
Normal file
28
util/util.h
Normal file
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// 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
|
Reference in New Issue
Block a user