deftexture(3) — Silicon Graphics R1c
NAME
deftexture - define a screen texture pattern
SYNOPSIS
C
deftexture(n, tex)
short n;
Texture tex;
FORTRAN
subroutine deftex(n, tex)
integer*2 n
character tex(16)
Pascal
procedure deftexture(n: Short; tex: Texture);
DESCRIPTION
Deftexture allows the user to define arbitrary screen textures. The arguments specify an index into a table of textures and an array of sixteen bytes that define an 8×16 bitmap. The texture pattern controls which pixels within the array are write-enabled as filled objects are drawn. The origin of the texture is the lower left corner, so the bottom row is defined first. Each row of the texture is specified as a byte. By default, a solid pattern is defined as texture 0. There is no performance penalty for using non-solid textures. To replace a texture, define the new one to have the same index as the old one.
SEE ALSO
defcursor, defobjfont, defrasterfont, deflinestyle, gettexture, settexture
NOTE
This command can only be used in immediate mode.
Version 2.3 — July 04, 1985