m %UIc@sddZdklZlZdkZdkZdkZddddddd d d d d ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFdGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d\d]d^d_d`dadbdcdddedfdgdhdidjdkdldmdndodpdqdrdsdtdudvdwdxdydzd{d|d}d~ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd d d d d ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFdGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d\d]d^d_d`dadbdcdddedfdgdhdidjdkdldmdndodpdqdrdsdtdudvdwdxdydzd{d|d}d~ddddddddddddddddddddddddddddddddddddddddddddddddddddddgZdZedS(s|Very simple test script for the SGI gl library extension module taken mostly from the documentation. Roger E. Masse (sverboses TestSkippedNtRGBcolort RGBcursortRGBmodetRGBranget RGBwritemaskt__doc__t__name__taddtopupt altgetmatrixtarctarcftarcfitarcfstarcitarcst attachcursort backbuffertbackfacetbbox2tbbox2itbbox2st bgnclosedlinetbgnlinetbgnpointt bgnpolygont bgnsurfacetbgntmeshtbgntrimt blankscreent blanktimet blendfunctiontblinktc3ftc3itc3stc4ftc4itc4stcallobjtcharstrt chunksizetcirctcircftcircfitcircfstcircitcircstcleart clearhitcodetclkofftclkontcloseobjtcmodetcmovtcmov2tcmov2itcmov2stcmovitcmovstcolortcolorft compactifytconcavetcpacktcrvtcrvnt curorigintcursofftcursontcurstypet curvebasistcurveittcurveprecisiontcyclemaptczcleartdefbasist defcursort deflinestyletdelobjtdeltagtdepthcuetdevporttdglclosetdglopentdithertdopupt doublebuffertdrawtdraw2tdraw2itdraw2stdrawitdrawmodetdrawsteditobjt endclosedlinet endfullscrntendlinetendpicktendpointt endpolygont endpupmodet endselectt endsurfacetendtmeshtendtrimtfinishtfontt foregroundtfreepupt frontbuffertfudgetfullscrnt gRGBcolortgRGBmaskt gammaramptgbegintgconfigtgenobjtgentagt getbackfacet getbuffert getbuttont getcmmodetgetcolortgetcpost getcursortgetdcmtgetdeptht getdescendertgetdisplaymodet getdrawmodetgetfonttgetgdesctgetgpost getheightt gethitcodet getlsbackupt getlsrepeatt getlstylet getlwidthtgetmapt getmatrixt getmcolortgetmmodet getmonitortgetnurbspropertyt getopenobjt getorigintgetothermonitort getpatternt getplanestgetportt getresetlst getscrmasktgetshadetgetsizetgetsmtgettpt getvaluatortgetvideot getviewportt getwritemaskt getzbuffertgewritetgflushtginittglcompattgresettgselecttgsynctgversionticonsizet icontitletimakebackgroundt initnamestismextisobjtisqueuedtistagt keepaspectt lRGBrangetlampofftlampont linesmootht linewidthtlmbindtlmcolortlmdeft loadmatrixtloadnametlogicoptlookatt lrectreadt lrectwritetlsbackupt lsetdeptht lshaderangetlsrepeattmakeobjtmaketagtmapcolortmapwtmapw2tmaxsizetminsizetmmodetmovetmove2tmove2itmove2stmoveitmovestmultimapt multmatrixtn3ftnewpuptnewtagtnobordertnoisetnoporttnormalt nurbscurvet nurbssurfacetnvarrayt objdeletet objinsertt objreplacetonemaptorthotortho2toverlaytpackrectt pagecolort pagewritemaskt passthroughtpatcht patchbasist patchcurvestpatchprecisiontpclostpdrtpdr2tpdr2itpdr2stpdritpdrst perspectivetpicktpicksizetpixmodetpmvtpmv2tpmv2itpmv2stpmvitpmvstpnttpnt2tpnt2itpnt2stpntitpntst pntsmootht polarviewtpolftpolf2tpolf2itpolf2stpolfitpolfstpolytpoly2tpoly2itpoly2stpolyitpolyst popattributest popmatrixtpopnamet popviewportt prefpositiontprefsizetpupmodetpushattributest pushmatrixtpushnamet pushviewporttpwlcurvetqdevicetqentertqgetfdtqreadtqresettqtesttrcrvtrcrvntrdrtrdr2trdr2itrdr2strdritrdrst readdisplayt readsourcetrecttrectcopytrectftrectfitrectfstrectitrectstrectzoomtresetlstreshapeviewporttringbelltrmvtrmv2trmv2itrmv2strmvitrmvstrottrotatetrpatchtrpdrtrpdr2trpdr2itrpdr2strpdritrpdrstrpmvtrpmv2trpmv2itrpmv2strpmvitrpmvstsboxtsboxftsboxfitsboxfstsboxitsboxstscalet screenspacetscrmasktsetbellt setcursortsetdeptht setlinestyletsetmapt setmonitortsetnurbspropertyt setpatterntsetpuptsetshadet setvaluatortsetvideot shademodelt shaderanget singlebuffert smoothlinetspclostsplftsplf2tsplf2itsplf2stsplfitsplfststepunittstrwidthtsubpixelt swapbufferst swapintervalt swaptmeshtswinopent textcolorttextinitttextportt textwritemaskttiettpoffttpont translatetunderlayt unpackrectt unqdevicetv2dtv2ftv2itv2stv3dtv3ftv3itv3stv4dtv4ftv4itv4stvarraytvideocmdtviewporttvnarrayt winattachtwinclosetwinconstraintstwindepthtwindowtwingettwinmovetwinopentwinpopt winpositiontwinpushtwinsettwintitletwmpackt writemaskt writepixelstxfpttxfpt2txfpt2itxfpt2stxfpt4txfpt4itxfpt4stxfptitxfptstzbuffertzcleartzdrawt zfunctiontzsourcet zwritemaskcCsYdk}y|id}WntdnXto dGHnx/tD]'}to dG|GHntt|qDWtodGHdGHnti to dGHnti dd dd to d GHnti d }to d GHnti to d GHntiddddto dGHntitito dGHntitito dGHntito dGHntiddtiddto dGHntito dGHntito dGHntiddtiddto dGHntito dGHntidto dGHnti|dS(NtDISPLAYsNo $DISPLAY -- skipping gl tests Touching gl module attributes...s touching: s'Creating a small "CrissCross" window...RlRiiswinopen "CrissCross"t CrissCrossR/Rf0.0f400.0s color WHITEs color REDRRRaRiis"Displaying window for 2 seconds...iR(tostenvirontdisplayt TestSkippedtverbosetglattrstattrtgetattrtglRlRRtwR/RR;tGLtWHITEtREDRRRaRttimetsleepR(RRRR((t)/data/zmath/lib/python2.4/test/test_gl.pytmainTsx                          ( Rttest.test_supportRRRRRRR(RRRRRRR((Rt?s!K B