spDraw.3p
774 Bytes
.TH spDraw 3P local "Silicon Graphics, Inc."
.SH NAME
spDraw \- Generate the display list that will draw the sprite on the screen
.SH C SPECIFICATION
.nf
\f3#include <sp.h>
void spDraw(Sprite *sp)
\fP
.fi
.SH PARAMETERS
.TP 10
.I *sp
pointer to the sprite.
.SH DESCRIPTION
This function constructs a display list starting at
.I sp->next_dl
that will draw the sprite into the frame buffer in the indicated way.
This display list is terminated with an
.B gEndDispalyList()
entry and the
.I sp->next_dl
entry is updated to point to one entry past this.
The pointer to the start of this display list is returned.
At most, sp->ndisplist Display list entries will be generated.
.SH "SEE ALSO"
.IR mksprite (3P)
.IR Developer's Guide, Sprite chapter, section on Drawing Sprites