mirror of
https://github.com/nishiowo/nishbox
synced 2025-04-21 20:24:39 +00:00
39 lines
662 B
C
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
|