Create a new texture object.
Arguments
- id
A non-negative integer. OpenGL texture id.
- width
An integer. Texture base width.
- height
An integer. Texture base height.
- mipmaps
An integer. Mipmap levels, 1 by default.
- format
An integer. Data format (PixelFormat type).
Note
This class has been auto-generated from the following Raylib struct definition:
typedef struct Texture {// OpenGL texture id
unsigned int id; // Texture base width
int width; // Texture base height
int height; // Mipmap levels, 1 by default
int mipmaps; // Data format (PixelFormat type)
int format; } Texture;
See also
Other texture functions:
begin_texture_mode()
,
draw_cube_texture_rec()
,
draw_cube_texture()
,
draw_texture_ex()
,
draw_texture_npatch()
,
draw_texture_poly()
,
draw_texture_pro()
,
draw_texture_quad()
,
draw_texture_rec()
,
draw_texture_tiled()
,
draw_texture_v()
,
draw_texture()
,
end_texture_mode()
,
gen_texture_mipmaps()
,
load_image_from_texture()
,
load_render_texture()
,
load_texture_from_image()
,
load_texture()
,
set_shader_value_texture()
,
set_shapes_texture()
,
set_texture_filter()
,
set_texture_wrap()
,
unload_render_texture()
,
unload_texture()