DbTextureObject

Set an image in any size to become the texture of an object. Depending of the graphics card used the quality of the texture will become variated. If you what better quality you should try to resize the image, it is recommend to resize it to the power of two of the image's original size. If the texture image is larger than the graphics card supports, it will become reduced.

Syntax
void dbTextureObject(int iObject, int iImage) int iObject is the object number that you want texture.

int iImage is the image number that you want use to texture.

This command will also remove the shader and multitexturing effects of the object.

void dbTextureObject(int iObject, int iStage, int iImage) int iObject is the object number that you want texture.

int iImage is the image number that you want use to texture.

int iStage is the additional texture stage index. This can be used to to specify multitextures directly, and is required when using shaders that take pixel data from secondary textures.

If you set iStage to NULL the shader and multitexturing effects of the object removes.

Examples
dbLoadImage("test.png", 1); dbMakeObjectCube(1, 32); dbTextureObject(1, 1);

See olso
dbLoadImage dbMakeObject