nishbox/engine/include/gf_texture.h
2025-04-15 20:48:39 +09:00

39 lines
662 B
C

/**
* @file gf_texture.h
* @~english
* @brief Texture
*/
#ifndef __GF_TEXTURE_H__
#define __GF_TEXTURE_H__
#include <gf_pre.h>
#include <gf_macro.h>
/* Type */
#include <gf_type/texture.h>
/* Engine */
#include <gf_type/draw.h>
/* Standard */
/**
* @~english
* @brief Register texture
* @param width Width of texture
* @param height Height of texture
* @param data Texture data
* @return Texture
*/
GF_EXPORT gf_texture_t* gf_texture_register(gf_draw_t* draw, int width, int height, unsigned char* data);
/**
* @~english
* @brief Destroy texture
* @param texture Texture
*/
GF_EXPORT void gf_texture_destroy(gf_texture_t* texture);
#endif