From 69d8af71d6882e801496fcd7ed971081c0b720d8 Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 8 Dec 2019 21:29:29 +0800 Subject: *misc --- src/core/texture.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/core/texture.h') 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 -- cgit v1.1-26-g67d0