s3d_load_texture - load texture from memory
Contents
Description
This will load an 32bit rgba image supplied in data at position xpos,ypos of the texture tex. The image
has the width w and height h. This can be used to update only parts of the texture. It's no problem to
supply big textures, as the image will be sent to server in fragments. Of course, you will have created
the texture with s3d_push_texture, have an material assigned to the texture with
s3d_pep_material_texture() and have your polygons set sane polygon texture coords using
s3d_pep_polygon_tex_coord().
Name
s3d_load_texture - load texture from memory
Synopsis
#include<s3d.h>ints3d_load_texture(intobject,uint32_ttex,uint16_txpos,uint16_typos,uint16_tw,uint16_th,constuint8_t*data);
