|
LibGame
v0.4.0
The LG Game Engine - Copyright (C) 2024 ETMSoftware
|
9 #define LG_TEX_PATH_MAX_LEN (512 - 1)
11 #define LG_FIRST_NODE_ID 500001
12 #define LG_INVALID_TEXTURE_ID 500002
14 #define LG_TEX_TYPE_UNKNOWN (-1)
16 #define LG_MAX_TEX_UNITS 256
18 #define LG_CUBEMAP_FACES_NUM 6
20 typedef struct __attribute__((packed)) {
49 char path[LG_TEX_PATH_MAX_LEN + 1];
unsigned int lg_get_active_tex()
Definition: lg_textures.c:1065
void lg_info_out_read_framebuffer()
Definition: lg_textures.c:1108
void * lg_compressed_texdata_from_file(const char *path, lg_tc_format *tc_format, size_t *size, int *w, int *h, int *n_mipmaps)
Definition: lg_textures.c:571
LG_Texture * lg_texture_new_from_data(lg_tc_format tc_format, int tex_type, const char *path, void *data, void **cubemap_data, size_t size, int w, int h, int n_mipmaps)
Definition: lg_textures.c:127
int lg_texture_count_nodes()
Definition: lg_textures.c:869
void lg_tex_units_info()
Definition: lg_textures.c:1050
void lg_texture_info_all()
Definition: lg_textures.c:913
LG_Texture * lg_texture_find_by_id(GLuint id)
Definition: lg_textures.c:851
int lg_surf_depth(SDL_Surface *surf)
Definition: lg_textures.c:1100
LG_Texture * lg_texture_new_from_file(int tex_type, const char *path)
Definition: lg_textures.c:299
zboolean lg_read_pixels_from_screen(void *pixels, Rec2Di r)
Definition: lg_textures.c:951
zboolean lg_test_file_extension(const char *path, const char *ext)
Definition: lg_textures.c:594
void lg_texture_info(const LG_Texture *tex)
Definition: lg_textures.c:904
void lg_texture_unbind(LG_Texture *tex)
Definition: lg_textures.c:1037
SDL_Surface * lg_sdl_surf_from_file(const char *path, int scale_x, int scale_y)
Definition: lg_textures.c:467
zboolean lg_write_pixels_to_screen(void *pixels, const Rec2Di *dest)
Definition: lg_textures.c:979
void lg_active_tex_info()
Definition: lg_textures.c:1077
void lg_texture_remove_all()
Definition: lg_textures.c:799
Definition: lg_textures.h:42
LG_Texture * lg_texture_last(LG_Texture *node)
Definition: lg_textures.c:834
void lg_init_textures_module()
Definition: lg_textures.c:88
void lg_texture_list_all()
Definition: lg_textures.c:928
void lg_free_sdl_surf(SDL_Surface *surf)
Definition: lg_textures.c:1087
LG_Texture * lg_texture_first(LG_Texture *node)
Definition: lg_textures.c:817
int lg_get_png_dims(const char *path, int *w, int *h)
Definition: lg_textures.c:608
void lg_texture_remove(LG_Texture *node)
Definition: lg_textures.c:768
Definition: lg_gr_func.h:47