[Previous] [Next] [Up] [Home] S3D Pascal Bindings
TS3DTK_VERTEX_TEX
A vertex with color information without texture coordinates.
Declaration:
TS3DTK_VERTEX_TEX = record
X: TS3DTKVALUE;
Y: TS3DTKVALUE;
Z: TS3DTKVALUE;
W: TS3DTKVALUE;
B: BYTE;
G: BYTE;
R: BYTE;
A: BYTE;
D: TS3DTKVALUE;
U: TS3DTKVALUE;
V: TS3DTKVALUE;
end;
Fields:
- X - X coordinate in screen space (pixels). Remember that TS3DTKVALUE is a floating point type - vertices can lie "between" pixels. This must be a value between 0 to 4095, inclusive.
- Y - Y coordinate in screen space. Similar to X. Also must be between 0 to 4095.
- Z - Z value to use for z buffering. Only 16bit zbuffers are supported so this must be a value between 0 to 65535.
- W - Actually Z value in clip space, used for perspective texture mapping.
- B - Blue component for the color.
- G - Green component for the color.
- R - Red component for the color.
- A - Alpha component for the color, used for alpha blending and fog density.
- D - Level of detail for mipmapped textures - this can be filled by the library.
- U - U texture coordinate in texels (this is not normalized, the middle of a 32x32 texture is at 16 not at 0.5). Must be between 0 and 2047, inclusive.
- V - V texture coordinate in texels. Similar to U.
Description:
This record is used to draw triangles with texture mapping applied to them.
Unit: S3DTK
See Also:
TS3DTK_VERTEX_LIT
[Previous] [Next] [Up] [Home] S3D Pascal Bindings