Help Contents / Graphics / Texturing / Texture

Texturetexhandle Texture bitmap Texture texhandle Texture [] 

Command or operation, depending on the argument. 

Sets the momentary texture to bitmap if the argument is a bitmap and outputs a texhandle integer, by which the texture can be selected faster. 

If given a texhandle (a integer output from an earlier call of Texture), the respective texture is selected. 

Textures only are applied when enableTexture is called once. 

Example: 

	b=loadImage "iris.png 
	texhandle=Texture b 
	enTex 
	setPC 4 
	(tcube 400) 
	cs 
	enTex 
	Texture [] 
	Texture texhandle 
	(tcube 400) 


next: setTexXY
