Difference between revisions of "LavishGUI:Textures"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
== Introduction == | == Introduction == | ||
=== What is a texture? === | === What is a texture? === | ||
+ | A texture is simply an image (or portion of an image). | ||
=== Why use textures? === | === Why use textures? === | ||
+ | ISUI can elements use one or more textures to beautify their appearance. For example, a button that just looks like a rectangle isn't very beautiful. However, applying a texture to give it a picture or a 3D appearance makes the button more enjoyable. | ||
− | === | + | == Using Textures == |
+ | Textures are referenced by filename and color key (used to treat a single given 32-bit color as transparent), and allow other properties. Textures MAY be templated. | ||
+ | |||
+ | === Attributes === | ||
+ | * FileName | ||
+ | : Image filename. The image may be any of those supported by Direct3D's D3DX library: .bmp, .dds, .dib, .hdr, .jpg, .pfm, .png, .ppm, and .tga | ||
+ | * ColorKey | ||
+ | : 32-bit color to consider transparent | ||
+ | |||
+ | <br> | ||
− | == | + | === Properties === |
+ | ==== Rectangle ==== | ||
+ | * Left | ||
+ | : Leftmost pixel of the base image to use for this texture | ||
+ | * Right | ||
+ | : Rightmost pixel of the base image to use for this texture | ||
+ | * Top | ||
+ | : Topmost pixel of the base image to use for this texture | ||
+ | * Bottom | ||
+ | : Bottom-most pixel of the base image to use for this texture | ||
+ | ==== Others ==== | ||
+ | * Alpha | ||
+ | : Not yet implemented. Will be used for overall alpha level of this texture. | ||
+ | * Border | ||
+ | : Uniform size, in pixels, of the border area of this texture. | ||
+ | * ColorMask | ||
+ | : 32-bit color to apply to the texture | ||
+ | * Orientation | ||
+ | : Rotation to apply to the texture. Valid values are 0 to 3 (0 being default). The texture will be rotated 90 degrees clockwise for each 1 (e.g. 1=90, 2=180, 3=270 degrees). | ||
== See Also == | == See Also == | ||
[[Category:ISUI]] | [[Category:ISUI]] |
Revision as of 20:02, 23 August 2005
Contents
Introduction
What is a texture?
A texture is simply an image (or portion of an image).
Why use textures?
ISUI can elements use one or more textures to beautify their appearance. For example, a button that just looks like a rectangle isn't very beautiful. However, applying a texture to give it a picture or a 3D appearance makes the button more enjoyable.
Using Textures
Textures are referenced by filename and color key (used to treat a single given 32-bit color as transparent), and allow other properties. Textures MAY be templated.
Attributes
- FileName
- Image filename. The image may be any of those supported by Direct3D's D3DX library: .bmp, .dds, .dib, .hdr, .jpg, .pfm, .png, .ppm, and .tga
- ColorKey
- 32-bit color to consider transparent
Properties
Rectangle
- Left
- Leftmost pixel of the base image to use for this texture
- Right
- Rightmost pixel of the base image to use for this texture
- Top
- Topmost pixel of the base image to use for this texture
- Bottom
- Bottom-most pixel of the base image to use for this texture
Others
- Alpha
- Not yet implemented. Will be used for overall alpha level of this texture.
- Border
- Uniform size, in pixels, of the border area of this texture.
- ColorMask
- 32-bit color to apply to the texture
- Orientation
- Rotation to apply to the texture. Valid values are 0 to 3 (0 being default). The texture will be rotated 90 degrees clockwise for each 1 (e.g. 1=90, 2=180, 3=270 degrees).