*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> standard/sbox (3)              
Title
Content
Arch
Section
 

Contents


sbox(3G)							      sbox(3G)


NAME    [Toc]    [Back]

     sbox, sboxi, sboxs	- draw a screen-aligned	rectangle

C SPECIFICATION    [Toc]    [Back]

     void sbox(x1, y1, x2, y2)
     Coord x1, y1, x2, y2;

     void sboxi(x1, y1,	x2, y2)
     Icoord x1,	y1, x2,	y2;

     void sboxs(x1, y1,	x2, y2)
     Scoord x1,	y1, x2,	y2;

     All of the	above functions	are functionally the same except for the type
     declarations of the parameters.

PARAMETERS    [Toc]    [Back]

     x1	  expects the x	coordinate of a	corner of the box.

     y1	  expects the y	coordinate of a	corner of the box.

     x2	  expects the x	coordinate of the opposite corner of the box.

     y2	  expects the y	coordinate of the opposite corner of the box.

DESCRIPTION    [Toc]    [Back]

     sbox draws	an unfilled, two-dimensional, screen-aligned rectangle.	 The
     rectangle is drawn	as a sequence of four line segments, and therefore
     inherits many properties that affect the drawing of lines.	 These include
     the current color,	writemask, line	width, stipple pattern,	and subpixel
     mode.  The	stipple	pattern	is initialized to bit zero of the current
     linestyle before the rectangle is drawn, then shifted continuously
     through the segments of the rectangle.

     The sides of the rectangle	will be	parallel to the	screen x and y axes.
     This rectangle cannot be rotated.	The z coordinate is set	to zero.

     When you use sbox,	you must not use alpha blending, backfacing or
     frontfacing, depthcueing, fog, gouraud shading, lighting, line
     antialiasing, screen subdivision, stenciling, texture mapping, or zbuffering.


     sbox may be faster	than rect on some machines.  Use sbox when you need to
     draw a large number of screen-aligned rectangles.

     After sbox	executes, the graphics position	is undefined.

SEE ALSO    [Toc]    [Back]

      
      
     backface, bgnclosedline, blendfunction, deflinestyle, depthcue,
     linewidth,	linesmooth, lmbind, lsrepeat, rect, scrsubdivide,
     setlinestyle, shademodel, stencil,	subpixel, texbind, zbuffer


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
sboxf IRIX draw a filled screen-aligned rectangle
glRectd Tru64 draw a rectangle
glRectiv Tru64 draw a rectangle
glRectsv Tru64 draw a rectangle
glRectdv Tru64 draw a rectangle
glRectf Tru64 draw a rectangle
glRectfv Tru64 draw a rectangle
glRect Tru64 draw a rectangle
glRects Tru64 draw a rectangle
glRecti Tru64 draw a rectangle
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service