diff options
author | chai <chaifix@163.com> | 2019-12-08 21:29:29 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-12-08 21:29:29 +0800 |
commit | 69d8af71d6882e801496fcd7ed971081c0b720d8 (patch) | |
tree | 452f7d037cf977e4a934d433bd2f12c03ed1ea10 /src/core/texture.h | |
parent | 31be0df6255ef704bed28d2be56acbe1cea7caad (diff) |
*misc
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 |