Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getgdesc(3G) — IRIX 6.5.3f

Media Vault

Software Library

Restoration Projects

Artifacts Sought



getgdesc(3G)                                                      getgdesc(3G)



NAME
     getgdesc - gets graphics system description

C SPECIFICATION
     long getgdesc(long inquiry)

PARAMETERS
     inquiry   is a symbolic constant taken from the list below.  It
               identifies the characteristic about which you want to inquire.

FUNCTION RETURN VALUE
     The function returns the value of the requested characteristic, or -1, if
     the request is invalid or its value cannot be determined.

DESCRIPTION
     getgdesc allows you to inquire about characteristics of the currently
     selected screen.  If the inquired characteristic is about bitplane
     configuration, getgdesc will return a value that indicates the absolute
     maximum resources available for the individual characteristic. It is not
     guaranteed that the bitplane configuration will reflect these values, as
     gconfig reconciles the various requests for resources. You must call
     getgconfig to find out the result of the compromises made by gconfig. You
     can call getgdesc prior to graphics initialization, as its return values
     are unaltered by any commands issued after initialization.

     The symbolic names of the inquiries and their meanings are specified
     below:

   Screen Boundary Inquiries
     GDXMMAX
     GDYMMAX
          Vertical and horizontal size of the screen in millimeters.

     GDXPMAX
     GDYPMAX
          Vertical and horizontal size of the screen in pixels.

     GDZMAX
     GDZMIN
          Maximum and minimum depth values that can be stored in the z-buffer
          of the normal framebuffer.

   Framebuffer Depth Inquiries
     GDBITSACBUF
          Maximum number of bitplanes per color component in the hardware
          accumulation buffer, if one exists.  Otherwise the number of
          bitplanes per color component in the software version of the
          accumulation buffer, if it is implemented.  Otherwise 0.

     GDBITSACBUFHW
          Maximum number of bitplanes per color component in the hardware
          accumulation buffer, if one exists.  Otherwise 0.



                                                                        Page 1





getgdesc(3G)                                                      getgdesc(3G)



     GDBITSCURSOR
          Number of bitplanes available in the cursor.

     GDBITSNORMDBLALPHA
          Maximum number of bitplanes available in the normal framebuffer to
          store alpha in double buffered RGB mode.

     GDBITSNORMDBLCMODE
          Maximum number of bitplanes available in the normal framebuffer to
          store the color index in double buffered color map mode.

     GDBITSNORMDBLMMAP
          Maximum number of bitplanes available in the normal framebuffer to
          store the color index in double buffered multimap mode.

     GDBITSNORMDBLRED
     GDBITSNORMDBLGREEN
     GDBITSNORMDBLBLUE
          Maximum number of bitplanes available in the normal framebuffer to
          store red, green, and blue in double buffered RGB mode.  If any of
          these are 0, then double buffered RGB mode is not available.

     GDBITSNORMSNGALPHA
          Maximum number of bitplanes available in the normal framebuffer to
          store alpha in single buffered RGB mode.

     GDBITSNORMSNGCMODE
          Maximum number of bitplanes available in the normal framebuffer to
          store the color index in single buffered color map mode.

     GDBITSNORMSNGMMAP
          Maximum number of bitplanes available in the normal framebuffer to
          store the color index in single buffered multimap mode.

     GDBITSNORMSNGRED
     GDBITSNORMSNGGREEN
     GDBITSNORMSNGBLUE
          Maximum number of bitplanes available in the normal framebuffer to
          store red, green, and blue in single buffered RGB mode.  If any of
          these are 0, then single buffered RGB mode is not available.

     GDBITSNORMZBUFFER
          Maximum number of useful bitplanes in the z-buffer of the normal
          framebuffer, If 0, then there is no z-buffer.

     GDBITSOVERSNGCMODE
          Maximum number of bitplanes available in the overlay framebuffer to
          store the color index in single buffered color map mode.

     GDBITSPUPSNGCMODE
          Maximum number of bitplanes available in the popup framebuffer to
          store the color index in single buffered color map mode.



                                                                        Page 2





getgdesc(3G)                                                      getgdesc(3G)



     GDBITSSTENCIL
          Maximum number of bitplanes available in the normal framebuffer for
          use as stencil bitplanes.  0 if stencil is not functional.

     GDBITSUNDRSNGCMODE
          Maximum number of bitplanes available in the underlay framebuffer to
          store the color index in single buffered color map mode.

   Miscellaneous Inquiries
     GDAFUNCTION
          1 if afunction is functional, 0 if it is not.

     GDAFUNCTIONMODES
          1 if all afunction functions are supported, 0 if they are not.

     GDALPHAOVERUNDER
          1 if alpha bitplanes in the normal framebuffer can be allocated as
          color map bitplanes in the overlay or underlay framebuffers, 0 if
          they cannot.

     GDBLEND
          1 if blending is supported in all framebuffers that support RGB
          mode, 0 otherwise.  (See blendfunction.)

     GDBLENDCOLOR
          1 if blendcolor is supported in all framebuffers that support RGB
          mode, 0 otherwise.

     GDCIFRACT
          1 if fractional interpolation of color indices is supported in all
          framebuffers, 0 otherwise.  (See colorf.)

     GDCLIPPLANES
          Number of user-defined clipping planes supported.  0 if none are
          supported.  (See clipplane.)

     GDCROSSHAIRCINDEX
          Color index whose color map entry controls the color of the cross-
          hair cursor.

     GDMUXPIPES
          Number of other graphics pipes available to be video multiplexed
          with the graphics pipe associated with the current screen.

     GDDBBOX
          1 if the dial and button box routines are functional, 0 if they are
          not.  Unlike most of the others, this inquiry is independent of the
          currently selected screen.  (See dbtext and setdblights.)

     GDDITHER
          1 if dithering is supported.  0 otherwise.




                                                                        Page 3





getgdesc(3G)                                                      getgdesc(3G)



     GDFOGVERTEX
          1 if fogvertex supports the per vertex fog modes, namely FGVTXEXP,
          FGVTXEXP2, and FGVTXLIN.  0 if it does not.

     GDFOGPIXEL
          1 if fogvertex supports the per pixel fog modes, namely FGPIXEXP,
          FGPIXEXP2, and FGPIXLIN.  0 if it does not.

     GDISNATIVE
          0 if the IrisGL implementation is layered on OpenGL.

     GDFRAMEGRABBER
          1 if readsource(SRCFRAMEGRABBER) is functional, 0 if it is not.

     GDLIGHTINGATT2
          1 if the ATTENUATION2 lighting model attribute is functional, 0 if
          it is not.  (See lmdef.)

     GDLIGHTINGSPOTLIGHT
          1 if spotlights are functional, 0 if they are not.  (See lmdef.)

     GDLIGHTINGTWOSIDE
          1 if the TWOSIDE lighting model attribute is functional, 0 if it is
          not.  (See lmdef.)

     GDLINESMOOTHCMODE
          1 if antialiased lines are supported in the normal framebuffer in
          color map mode, 0 otherwise.  (See linesmooth.)

     GDLINESMOOTHRGB
          1 if antialiased lines are supported in RGB mode in all framebuffers
          that support RGB mode, 0 otherwise.  (See linesmooth.)

     GDLOGICOP
          1 if logical operations are supported in all framebuffers, 2 if only
          in the normal framebuffer, and 0 otherwise.  (See logicop.)

     GDMULTISAMPLE
          1 if the multisample routines are functional, 0 if they are not.

     GDNBLINKS
          Maximum number of blinking color map entries on the selected screen.
          If the value is non-zero, it will be at least 20.  (See blink.)

     GDNMMAPS
          Number of smaller color maps available to the user in multimap mode.
          On some models, the highest-numbered color map is reserved for use
          by the system.  (See setmap.)

     GDNSCRNS
          Number of screens available on the system.  Unlike most of the
          others, this inquiry is independent of the currently selected



                                                                        Page 4





getgdesc(3G)                                                      getgdesc(3G)



          screen.

     GDNURBSORDER
          Maximum order of any NURBS surface, NURBS curve, and NURBS trimming
          curve.

     GDNVERTEXPOLY
          Maximum number of vertices in a single polygon.  If there is no
          limit, then GDNOLIMIT is returned.

     GDOVERUNDERSHARED
          1 if overlay and underlay planes are shared, 0 if both can be used
          simultaneously.

     GDPATSIZE64
          1 if 64x64 patterns are supported, 0 otherwise.  (See defpattern.)

     GDPNTSMOOTHCMODE
          1 if antialiased points are supported in the normal framebuffer in
          color map mode, 0 otherwise.  (See pntsmooth.)

     GDPNTSMOOTHRGB
          1 if antialiased points are supported in RGB mode in all
          framebuffers that support RGB mode, 0 otherwise.  (See pntsmooth.)

     GDPOLYMODE
          1 if polymode is functional, 0 if it is not.

     GDPOLYSMOOTH
          1 if antialiased polygons are supported in RGB mode in all
          framebuffers that support RGB mode, 0 otherwise.  (See polysmooth.)

     GDPUPTOOVERUNDER
          1 if the popup bitplanes can be allocated as color map bitplanes in
          the overlay or underlay framebuffers, 0 if they cannot.

     GDREADSOURCE
          1 if readsource sources SRC_AUTO, SRC_FRONT, and SRC_BACK are
          functional, 0 if they are not.

     GDREADSOURCEZBUFFER
          1 if readsource(SRCZBUFFER) is functional, 0 if it is not.

     GDSCRBOX
          1 if scrbox is functional, 0 if it is not.

     GDSCRNTYPE
          Type of the currently selected screen.  Returns GDSCRNTYPEWM if
          there is window management on the screen or GDSCRNTYPENOWM if
          there isn't.  There can be at most one window open on screens of the
          latter type.




                                                                        Page 5





getgdesc(3G)                                                      getgdesc(3G)



     GDSTEREO
          1 if setmonitor(STRRECT) is functional, 0 if it is not.

     GDSTEREOINWINDOW
          1 if per-window stereo is functional, 0 if it is not.  (See
          stereobuffer.)

     GDSUBPIXELLINE
     GDSUBPIXELPNT
     GDSUBPIXELPOLY
          1 if subpixel positioned lines, points, and polygons (respectively)
          are supported in all framebuffers, 0 otherwise.  (See subpixel.)

     GDTEXTPORT
          1 if the textport routines are functional, 0 if they are not.
          Unlike most of the others, this inquiry is independent of the
          currently selected screen.  (See textport.)

     GDTEXTURE
          1 if texture mapping routines are functional, 0 if they are not.
          (See texdef2d.)

     GDTEXTURE3D
          1 if 3D texture mapping routines are functional, 0 if they are not.
          (See texdef3d.)

     GDTEXTUREDETAIL
          1 if TXDETAIL is functional, 0 if it is not.  (See texdef.)

     GDTEXTURELUT
          1 if texture lookup tables are functional, 0 if they are not.  (See
          tlutdef.)

     GDTEXTURESHARP
          1 if TXSHARPEN is functional, 0 if it is not.  (See texdef.)

     GDTIMERHZ
          Frequency of graphics timer events.

     GDTRIMCURVEORDER
          Maximum order of a trimming curve.

     GDWSYS
          Type of window system running on the machine.  Returns GDWSYS4S if
          a windowing system is currently running or GDWSYSNONE if there is
          no window system currently running.  Unlike most of the others, this
          inquiry is independent of the currently selected screen.

     GDZDRAWGEOM
     GDZDRAWPIXELS
          1 if routines that render geometry and routines that render pixels
          (respectively) will do it into the z-buffer when zdraw is TRUE, 0 if



                                                                        Page 6





getgdesc(3G)                                                      getgdesc(3G)



          they do not.

SEE ALSO
     gversion, scrnselect

NOTES
     This routine is available only in immediate mode.

     To inquire about the screen on which the current window is displayed, use
     the following sequence:

          long savescrn;
          ...
          savescrn = scrnselect(getwscrn());
          val1 = getgdesc(inquiry1);
          val2 = getgdesc(inquiry2);
          ...
          scrnselect(savescrn);





































                                                                        Page 7



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026