Difference between revisions of "Canvas 3D - Texture Tag"
Line 5: | Line 5: | ||
== Introduction == | == Introduction == | ||
− | + | The 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 == | == Tag Attributes == | ||
* id | * id | ||
+ | ** '''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 | * href | ||
+ | ** '''Usage:''' <texture href="http://foo.com/bar.tga" />. | ||
+ | ** The ''href'' attribute refers to the hyperlink reference where the texture file is stored. | ||
+ | ** This attribute is mandatory. | ||
== Syntax == | == Syntax == | ||
<pre> | <pre> | ||
− | + | <canvas> | |
− | + | <texture href="file:///foo.tga" id="mytexture" /> | |
+ | </canvas> | ||
</pre> | </pre> | ||
Latest revision as of 18:49, 20 October 2006
Cube Tag Reference
Introduction
The 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
- id
- 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.
- This attribute is mandatory.
Syntax
<canvas> <texture href="file:///foo.tga" id="mytexture" /> </canvas>