diff options
Diffstat (limited to 'src/core/texture.h')
-rw-r--r-- | src/core/texture.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/texture.h b/src/core/texture.h index 20a0228..49fed4b 100644 --- a/src/core/texture.h +++ b/src/core/texture.h @@ -3,13 +3,6 @@ #include "vert.h" -typedef struct Texture{ - uint width, height; - Color* pixels; -}Texture; - -void texture_loadfromfile(const char* path, Texture* out); - typedef enum FilterMode { FILTERMODE_POINT, FILTERMODE_BILINEAR, @@ -21,6 +14,13 @@ typedef enum WrapMode{ WRAPMODE_CLAMP, } WrapMode; +typedef struct Texture{ + uint width, height; + Color* pixels; +}Texture; + +Texture* texture_loadfromfile(const char* path); + Color32 texture_sampling(Texture* tex, FilterMode filter_mode, WrapMode wrap_mode, float x, float y); #endif
\ No newline at end of file |