GoldFish Engine
Quite simple and lightweight game engine
Loading...
Searching...
No Matches
gf_texture.h File Reference

Texture. More...

#include <gf_pre.h>
#include <gf_macro.h>
#include <gf_type/texture.h>
#include <gf_type/draw.h>

Go to the source code of this file.

Functions

gf_texture_tgf_texture_create (gf_draw_t *draw, int width, int height, unsigned char *data)
 Create texture.
 
void gf_texture_destroy (gf_texture_t *texture)
 Destroy texture.
 

Detailed Description

Texture.

Definition in file gf_texture.h.

Function Documentation

◆ gf_texture_create()

gf_texture_t * gf_texture_create ( gf_draw_t draw,
int  width,
int  height,
unsigned char *  data 
)
extern

Create texture.

Parameters
drawDrawing interface
widthWidth of texture
heightHeight of texture
dataTexture data
Returns
Texture

Definition at line 17 of file gf_texture.c.

◆ gf_texture_destroy()

void gf_texture_destroy ( gf_texture_t texture)
extern

Destroy texture.

Parameters
textureTexture

Definition at line 33 of file gf_texture.c.