FANDOM


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.

SyntaxEdit

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.

ExamplesEdit

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

See olsoEdit

dbLoadImage dbMakeObject

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.