12.2.1 GLuint raydium_texture_load(char *filename)
Loads "filename" texture into hardware memory. Function results texture index, but in most cases, you can identify later a texture by his name, without providing his index, so you can probably ignore this value.
0 is returned if texture loading fail.
12.2.2 GLuint raydium_texture_load_erase(char *filename, GLuint to_replace)
Same as above, but "to_replace" texture (index) is erased with "filename".
12.2.3 char raydium_texture_current_set(GLuint current)
Switch active texture to "current" index. Mostly used for runtime object creation:
"set current texture, add vertices, set another texture, add vertices, ...? and save all to an objet" (see below for vertices management).
12.2.4 char raydium_texture_current_set_name(char *name)
Same as above, but using texture name. This function will load "name" if not alread done.
12.2.5 GLuint raydium_texture_find_by_name(char *name)
Returns index for texture "name", and load it if not already done.
12.2.6 void raydium_texture_filter_change(GLuint filter)
This function will change all filters at anytime. Please note that this function will reload all textures and can be very slow.
raydium_texture_filter_change(RAYDIUM_TEXTURE_FILTER_BILINEAR) ""// will switch all textures to bilinear filter.""
char raydium_texture_size_is_correct (GLuint size);
GLuint raydium_texture_load_internal (char *filename, char *as);
Return to RaydiumApiReference