diff options
author | sanine-a <sanine.not@pm.me> | 2020-10-18 12:21:38 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2020-10-18 12:21:38 -0500 |
commit | 2d046ffd16d8ff3a06f92ca438ca6b2d6842ce6a (patch) | |
tree | 86681f5a826c92958bb8f2d0528e095ecdff4662 /include/texture.h | |
parent | 225167461d754b476b4fcc7726c492cc972ca654 (diff) |
add LICENSE.md
Diffstat (limited to 'include/texture.h')
-rw-r--r-- | include/texture.h | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/include/texture.h b/include/texture.h deleted file mode 100644 index 4caeebf..0000000 --- a/include/texture.h +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef HONEY_TEXTURE_H -#define HONEY_TEXTURE_H - -/** @file texture.h - * - *@brief Defines the honey_texture struct and associated functions. -*/ - -#include "common.h" - -enum honey_texture_result { - TEXTURE_OK, - TEXTURE_FAILED, - N_TEXTURE_RESULTS }; - -typedef struct { - unsigned int texture_id; - int width; - int height; - int channels; -} honey_texture; - -/** @brief Load a texture from disk. - * - * @param[out] texture Pointer to the destination texture - * @param[in] texture_path Path to the location of the texture - * @param[in] alpha_channel Set to true if the target image contains an alpha channel - * - * @return Success or failure type - */ -enum honey_texture_result honey_texture_new(honey_texture* texture, - char* texture_path, - bool alpha_channel); - -/** @brief Load a texture into a texture unit. - * - * @param[in] texture The texture to use - * @param[in] texture_unit The texture unit to put the texture in - */ -void honey_texture_use(honey_texture texture, int texture_unit); - -#endif |