Open main menu

CDOT Wiki β

Changes

Canvas 3D - Texture Tag

768 bytes added, 19:49, 20 October 2006
no edit summary
== Introduction ==
IntroThe Texture Tag specifies a location for a texture (an image) to be retrieved and placed on an object. The texture is used in conjunction with other primitives so that it is displayed on their faces. Skinning of a texture and position co-ordinates are not going to be included at this time.
== Tag Attributes ==
* Attributeid* Attribute* '''Usage:''' <texture id="sometexture" />.** The ''id'' attribute gives the texture an identifier so that it may be used in conjunction with other objects.** This attribute is mandatory.* href** '''Usage:''' <texture href="http://foo.com/bar.tga" />.** The ''href'' attribute refers to the hyperlink reference where the texture file is stored. * Attribute* This attribute is mandatory.
== Syntax ==
<pre>
Syntax Goes Here<canvas> <texture href="file:///foo.tga" id="mytexture" /></canvas>
</pre>
== References ==
* Site[http://www.gamedev.net/reference/articles/article947.asp OpenGL Texturing Example]
1
edit