something

This commit is contained in:
2025-04-24 20:04:41 +02:00
parent 8fd5f1cf1e
commit 451e80f750
23 changed files with 565 additions and 161 deletions

28
util/util.h Normal file
View 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