亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? grayramp.f

?? Intro/: Directory containing introductory examples. HelloWorld.c A simple program that draws a bo
?? F
字號:
$alias fdopen='fdopen'(%val, %ref)      include 'phigs.f1.h'			! get the HP-PHIGS aliases      program GrayRamp				! program "GrayRamp.f"      include 'phigs.f2.h'			! get the HP-PHIGS constants      integer*4	WorkstnID			! workstation identifier      parameter	(WorkstnID=1)			! value chosen by the user      integer*4	ConnID				! connection identifier      integer*4	WorkstnType			! workstation type      parameter	(WorkstnType=POIDDX)		! out/in, direct, dbl bfr, X      integer*4	SphereStruc, Scene		! structure IDs      parameter	(SphereStruc=1, Scene=2)	!   (chosen by user)      integer*4	LightsOn(3), LightsOff(1)	! light-state variables      data	LightsOn /1, 2, 3/		! all lights on      real	Matrix(4, 4)			! transformation matrix      real	FirstColour(3), LastColour(3)	! for gray-shade ramp      data	FirstColour /0.0, 0.0, 0.0/	! dimmest colour is black      data	LastColour  /1.0, 1.0, 1.0/	! brightest colour is white      real	WeightVector(3)			! for colour->grays      data	WeightVector /0.30, 0.59, 0.11/	! conversion factors      integer*4	Error				! error-return variable      integer*4 fdopen				! to get file descriptor      real      rad, deg			! type the statement function      rad(deg)= ((deg)*3.14159265358979/180.)   ! convert degrees to radians      call popph(fdopen(fnum(7), 'w'//char(0)), 0)	! open phigs      call pue004('/dev/screen/phigs_window', ConnID)	! get connection ID      call popwk(WorkstnID, ConnID, WorkstnType)! open workstation      call pue250(WorkstnID, 0)			! set colour env: direct      call popst(SphereStruc)			! open structure      call CreateSphere(32, 16)			! define the sphere structure      call pclst				! close structure      call DefineLightSources(WorkstnID)	! define all lights      call DefineColourRamp(WorkstnID, FirstColour, LastColour, 101, 1,     +  WeightVector)      call popst(Scene)				! open structure      call pscmi(1)				! set colour mapping index       call psfcm(PBKFC)				! set facet-culling mode: back      call psis(PSOLID)				! set interior style: solid      call psrfm(PADSRM)			! set reflectance model      call psism(PNOIS)				! set interior shading method      call SetReflectanceProperties(WorkstnID,	! insulate user from pprec...     +  1.0, 1.0, 1.0,				!   amb/diff/spec reflections     +  1.0, 1.0, 1.0,				!   specular colour     +  20.0)					!   specular exponent      call pslss(3, LightsOn, 0, LightsOff)	! set light source state      call pbltm3(0.0, 0.0, 0.0,		! build local xform. matrix     +  0.3, 0.7, 0.7,				!   translate     +  rad(-60.0), rad(30.0), rad(-5.0),	!   rotate     +  0.3, 0.3, 0.3,				!   scale     +  Error, Matrix)				!   returned: error, matrix      call pslmt3(Matrix, PCREPL)		! set local transformation      call pexst(SphereStruc)			! execute structure      call psism(PCIS)				! set interior shading method      call pbltm3(0.0, 0.0, 0.0,		! build local xform. matrix     +  0.7, 0.3, 0.3,				!   translate     +  rad(-60.0), rad(30.0), rad(-5.0),	!   rotate     +  0.3, 0.3, 0.3,				!   scale     +  Error, Matrix)				!   returned: error, matrix      call pslmt3(Matrix, PCREPL)		! set local transformation      call pexst(SphereStruc)			! execute structure      call pclst				! close structure      call ppost(WorkstnID, Scene, 1.0)		! post structure      call pclwk(WorkstnID)			! close workstation      call pclph				! close phigs      stop					! stop processing      end					! end of program!*****************************************************************************      subroutine CreateSphere(Longitudes, Latitudes)      integer*4 Longitudes      integer*4 Latitudes      include 'phigs.f2.h'      !--- arbitrary limit of 50 for number of latitudes and longitudes ------      real	Sphere(3, 50+1, 50+1)      integer*4 Longitude, Latitude, I		! loop control variables      real	Theta, Phi, CosPhi		! working variables      real	PatchX(4), PatchY(4), PatchZ(4)	! fill area coordinates      real	Red(3), LightBlue(3), Colour(3)	! direct RGB polygon colors      data	Red	  /1.0, 0.0, 0.0/	! RGB for red      data	LightBlue /0.0, 0.5, 0.7/	! RGB for a light blue      integer*4	LastVertex			! for fill area set 3 with data      data	LastVertex /4/			! each quad has four verts (!)      integer*4	Dummy				! placeholder for unused vars      real rad, deg      rad(deg)=(deg*3.1415926535897932385/180.0)! convert degrees to radians      !--- define sphere's data base -----------------------------------------      do Longitude=1, Longitudes+1          Theta = 360.0*(Longitude-1)/Longitudes          do Latitude=1, Latitudes+1	      Phi = -89.99+179.98*(Latitude-1)/Latitudes	      CosPhi = cos(rad(Phi))	      Sphere(1, Longitude, Latitude)=CosPhi*cos(rad(Theta))	      Sphere(2, Longitude, Latitude)=CosPhi*sin(rad(Theta))	      Sphere(3, Longitude, Latitude)=sin(rad(Phi))	  end do      end do      !--- create the sphere out of unicolour patches ------------------------      do Latitude = 1, Latitudes	  do Longitude = 1, Longitudes	      PatchX(1) = Sphere(1, Longitude, Latitude)	      PatchY(1) = Sphere(2, Longitude, Latitude)	      PatchZ(1) = Sphere(3, Longitude, Latitude)	      PatchX(2) = Sphere(1, Longitude+1, Latitude)	      PatchY(2) = Sphere(2, Longitude+1, Latitude)	      PatchZ(2) = Sphere(3, Longitude+1, Latitude)	      PatchX(3) = Sphere(1, Longitude+1, Latitude+1)	      PatchY(3) = Sphere(2, Longitude+1, Latitude+1)	      PatchZ(3) = Sphere(3, Longitude+1, Latitude+1)	      PatchX(4) = Sphere(1, Longitude, Latitude+1)	      PatchY(4) = Sphere(2, Longitude, Latitude+1)	      PatchZ(4) = Sphere(3, Longitude, Latitude+1)	      if (mod(ishft((Longitude-1), -1), 2) .eq. 1) then		  do I=1, 3		      Colour(I)=LightBlue(I)		  end do	      else		  do I=1, 3		      Colour(I)=Red(I)		  end do	      end if	      call pfas3d(			! fill area set 3 with data     +		PFC,				!   facet flag: colour     +		PENO,				!   edge flag: none     +		PCDN,				!   vertex flag: coords/norms     +		PRGB, 3,			!   colour type: RGB     +		Dummy,				!   indexed colour     +		Colour,				!   facet colour     +		Dummy, Dummy, Dummy,		!   facet normal     +		Dummy, Dummy,			!   facet application data     +		1,				!   number of fill areas/set     +		LastVertex,			!   how many vertices/polygon?     +		Dummy,				!   edge flags     +		PatchX, PatchY, PatchZ,		!   polygon's geometry     +		Dummy, Dummy,			!   vertex colour     +		PatchX, PatchY, PatchZ,		!   vertex normals     +		Dummy, Dummy)			!   vertex application data	  end do      end do      return      end!*****************************************************************************      subroutine SetReflectanceProperties(WorkstnID, AmbientRefl,     +  DiffuseRefl, SpecRefl, SpecR, SpecG, SpecB, SpecExp)      integer*4	WorkstnID		! workstation ID      real	AmbientRefl		! ambient refl. coefficient (0.0->1.0)      real	DiffuseRefl		! diffuse refl. coefficient (0.0->1.0)      real	SpecRefl		! specular refl coefficient (0.0->1.0)      real	SpecR, SpecG, SpecB	! specular reflection colour      real	SpecExp			! specular exponent ("shininess")      include 'phigs.f2.h'      !--- variables for packing data record ---------------------------------      integer*4		IntCount	! DataRec's integer count      integer*4		Ints(2)		! DataRec's integer array      integer*4		RealCount	! DataRec's real count      real		Reals(8)	! max needed for DataRec's real array      integer*4		StrCount	! DataRec's string count      integer*4		StrLength	! DataRec's string length      character*1	Strings(1)	! DataRec's string array      integer*4		RecCount	! DataRec's element count      data		StrCount /0/, StrLength /0/, RecCount /8/      integer*4		Length		! DataRec's element return length      character*80	DataRec(8)	! DataRec array itself      integer*4		Error		! error-return variable      IntCount=2			! two significant integers in array      Ints(1)=PRGB			! specify colour as RGB      Ints(2)=3				! RGBs have 3 components      RealCount=7			! seven significant reals in array      Reals(1)=AmbientRefl		! \      Reals(2)=DiffuseRefl		!  \      Reals(3)=SpecRefl			!   \      Reals(4)=SpecExp			!    > put single values into array      Reals(5)=SpecR			!   /      Reals(6)=SpecG			!  /      Reals(7)=SpecB			! /      call pprec(IntCount, Ints, RealCount, Reals, StrCount, StrLength,     +  Strings, RecCount, Error, Length, DataRec)      if (Error .ne. 0) print *, "Error", Error, " in pprec."      call psrfp(PSRPT, Length, DataRec)! set reflectance properties      return      end!*****************************************************************************      subroutine DefineLightSources(WorkstnID)      integer*4 WorkstnID      include 'phigs.f2.h'      call DefineLightSource(WorkstnID, 1,PAMB,	! light source 1: ambient     +  0.4, 0.4, 0.4,				! colour (gray)     +  0.0, 0.0, 0.0,				! position (unused)     +  0.0, 0.0, 0.0,				! direction (unused)     +  0.0, 0.0, 0.0, 0.0)			! conc/spread/atten (unused)      call DefineLightSource(WorkstnID, 2,PDIRE,! light source 2: directional     +  0.8, 0.8, 0.8,				! colour (white, a little dim)     +  0.0, 0.0, 0.0,				! position (unused)     +  10.0, 10.0, -10.0,			! direction     +  0.0, 0.0, 0.0, 0.0)			! conc/spread/atten (unused)      call DefineLightSource(WorkstnID, 3,PDIRE,! light source 3: directional     +  0.7, 0.7, 0.7,				! colour (white, a little dim)     +  0.0, 0.0, 0.0,				! position (unused)     +  -10.0, -10.0, -2.0,			! direction     +  0.0, 0.0, 0.0, 0.0)			! conc/spread/atten (unused)      return      end!*****************************************************************************      subroutine DefineLightSource(WorkstnID, LightNo, LightType,     +  R, G, B, X, Y, Z, dX, dY, dZ, Exponent, Spread, Att1, Att2)      integer*4	WorkstnID		! workstation ID      integer*4	LightNo, LightType	! index and type      real	R, G, B			! colour      real	X, Y, Z			! position (positional)      real	dX, dY, dZ		! direction (all but ambient)      real	Exponent		! concentration exponent (spot)      real	Spread			! spread angle (spot)      real	Att1, Att2		! attenuation factors (pos., spot)      include 'phigs.f2.h'      !--- Variables for packing data record ---------------------------------      integer*4		IntCount	! DataRec's integer count      integer*4		Ints(2)		! DataRec's integer array      integer*4		RealCount	! DataRec's real count      real		Reals(13)	! max needed for DataRec's real array      integer*4		StrCount	! DataRec's string count      integer*4		StrLength	! DataRec's string length      character*1	Strings(1)	! DataRec's string array      integer*4		RecCount	! DataRec's element count      data		StrCount /0/, StrLength /0/, RecCount /8/      integer*4		Length		! DataRec's element return length      character*80	DataRec(8)	! DataRec array itself      integer*4		Error		! error-return variable      IntCount=2			! two significant integers in array      Ints(1)=PRGB			! specify colour as RGB      Ints(2)=3				! RGBs have 3 components      if (LightType .eq. PAMB) then	! if ambient light...	  RealCount=3			! three significant reals in array	  Reals(1)=R			! \	  Reals(2)=G			!  > set ambient light's colour	  Reals(3)=B			! /      endif      if (LightType .eq. PDIRE) then	! if directional light...	  RealCount=6			! six significant reals in array	  Reals(1)=dX			! \	  Reals(2)=dY			!  > set light's direction	  Reals(3)=dZ			! /	  Reals(4)=R			! \	  Reals(5)=G			!  > set directional light's colour	  Reals(6)=B			! /      endif      if (LightType .eq. PPOSI) then	! if positional light...	  RealCount=8			! eight significant reals in array	  Reals(1)=X			! \	  Reals(2)=Y			!  > set light's position	  Reals(3)=Z			! /	  Reals(4)=Att1			! attenuation factor 1	  Reals(5)=Att2			! attenuation factor 2	  Reals(6)=R			! \	  Reals(7)=G			!  > set positional light's colour	  Reals(8)=B			! /      endif      if (LightType .eq. PSPOT) then	! if spotlight...	  RealCount=13			! thirteen significant reals in array	  Reals(1)=X			! \	  Reals(2)=Y			!  > set light's position	  Reals(3)=Z			! /	  Reals(4)=dX			! \	  Reals(5)=dY			!  > set light's direction	  Reals(6)=dZ			! /	  Reals(7)=Exponent		! concentration exponent	  Reals(8)=Att1			! attenuation factor 1	  Reals(9)=Att2			! attenuation factor 2	  Reals(10)=Spread		! spread angle	  Reals(11)=R			! \	  Reals(12)=G			!  > set positional light's colour	  Reals(13)=B			! /      endif      call pprec(IntCount, Ints, RealCount, Reals, StrCount, StrLength,     +  Strings, RecCount, Error, Length, DataRec)      if (Error .ne. 0) print *, "Error", Error, " in pprec."      call pslsr(WorkstnID, LightNo,	! set light source representation     +  LightType, Length, DataRec)      return      end!*****************************************************************************      subroutine DefineColourRamp(WorkstnID, FirstColour, LastColour,     +  RampSize, CMappingIndex, WeightVector)      integer*4	WorkstnID			! workstation identifier      real	FirstColour(3), LastColour(3)	! extremes of ramp      integer*4	RampSize			! size of ramp      integer*4	CMappingIndex			! colour mapping table index      real	WeightVector(3)			! for colour->gray conversion      include 'phigs.f2.h'      !--- Variables for packing data record ---------------------------------      integer*4		IntCount	! DataRec's integer count      integer*4		Ints(3)		! DataRec's integer array      integer*4		RealCount	! DataRec's real count      real		Reals(768)	! max needed for DataRec's real array      integer*4		StrCount	! DataRec's string count      integer*4		StrLength	! DataRec's string length      character*1	Strings(1)	! DataRec's string array      integer*4		RecCount	! DataRec's element count      data		StrCount /0/, StrLength /0/, RecCount /100/      integer*4		Length		! DataRec's element return length      character*80	DataRec(100)	! DataRec array itself      !--- miscellaneous variables -------------------------------------------      real		DeltaColour(3)	! diff. between colr(i) and colr(i+1)      integer*4		Error		! error-return variable      integer*4	I			! loop control variable      IntCount=3			! three significant integers in array      Ints(1)=PRGB			! specify colour as RGB      Ints(2)=3				! RGBs have 3 components      Ints(3)=RampSize			! how big is gray ramp?      RealCount=3+3*RampSize		! weight vector plus 3*RampSize      Reals(1)=WeightVector(1)		! \      Reals(2)=WeightVector(2)		!  > assign weight vector      Reals(3)=WeightVector(3)		! /      do I=1, 3	  DeltaColour(I)=(LastColour(I)-FirstColour(I))/(RampSize-1)      end do      do I=0, RampSize-1          Reals(4+I*3)=FirstColour(1)+DeltaColour(1)*I          Reals(5+I*3)=FirstColour(2)+DeltaColour(2)*I          Reals(6+I*3)=FirstColour(3)+DeltaColour(3)*I      end do      call pprec(IntCount, Ints, RealCount, Reals, StrCount, StrLength,     +  Strings, RecCount, Error, Length, DataRec)      if (Error .ne. 0) print *, "Error", Error, " in pprec."      call pscmr(WorkstnID, CMappingIndex, PSUD,! set colour mapping rep.     +  Length, DataRec)      return      end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美激情中文字幕一区二区| 色综合天天综合狠狠| 午夜视频一区二区三区| 国产午夜精品一区二区三区视频 | 91精品国产麻豆国产自产在线 | aa级大片欧美| 国产乱码字幕精品高清av| 激情另类小说区图片区视频区| 日本vs亚洲vs韩国一区三区| 日本视频一区二区| 蜜臀av国产精品久久久久| 免费三级欧美电影| 久久精品国产亚洲aⅴ| 激情小说欧美图片| 国产资源精品在线观看| 国产精品自拍三区| 成人免费高清视频| 一本色道a无线码一区v| 欧美三级日韩三级国产三级| 7777精品伊人久久久大香线蕉完整版 | 久久在线免费观看| www精品美女久久久tv| 国产日本欧洲亚洲| 亚洲乱码中文字幕| 香蕉久久夜色精品国产使用方法 | 国产成人鲁色资源国产91色综 | 一本色道a无线码一区v| 欧美久久一二三四区| 精品国产乱码久久久久久1区2区| 久久在线免费观看| 中文字幕一区二区三区不卡在线| 亚洲一区在线视频观看| 蜜乳av一区二区三区| 国产成a人亚洲精| 91精品福利视频| 欧美成人性福生活免费看| 国产精品久久99| 午夜视黄欧洲亚洲| 国产福利一区二区三区| 91麻豆高清视频| 在线综合视频播放| 国产日韩精品一区二区浪潮av| 亚洲精品一二三区| 精品一区二区三区的国产在线播放| 国产高清不卡一区二区| 欧美亚州韩日在线看免费版国语版| 国产女人18毛片水真多成人如厕 | 欧美精品视频www在线观看| 精品国产乱码久久久久久蜜臀| 国产精品国产三级国产普通话99 | 国产在线精品视频| 欧美主播一区二区三区美女| 精品久久久久一区| 亚洲国产cao| av一区二区不卡| 日韩精品一区在线观看| 一区二区三区成人| 成人av电影在线观看| 日韩精品一区二区三区swag| 亚洲综合成人网| 不卡av在线网| 久久久久久亚洲综合影院红桃 | 男人操女人的视频在线观看欧美| jlzzjlzz国产精品久久| 久久日韩粉嫩一区二区三区| 日韩精品免费专区| 精品视频在线看| 欧美日韩不卡一区二区| 亚洲国产日韩在线一区模特| 丁香一区二区三区| 精品福利一区二区三区| 日韩国产在线一| 欧美在线一区二区三区| 亚洲人成7777| 97久久精品人人爽人人爽蜜臀| 国产婷婷一区二区| 国产精品中文欧美| 久久综合色播五月| 九九九精品视频| 日韩欧美电影一区| 久久激情五月婷婷| 精品国产免费久久| 激情综合五月婷婷| 国产亚洲一区二区三区| 国产精品996| 中文一区一区三区高中清不卡| 国产99久久久国产精品潘金| 久久精品亚洲精品国产欧美| 欧美在线免费播放| 亚洲视频在线一区观看| av成人免费在线| 亚洲一区二区三区不卡国产欧美| 欧洲一区二区三区免费视频| 亚洲成人激情综合网| 制服丝袜亚洲色图| 精品一区二区三区影院在线午夜| 国产亚洲精品福利| 91在线精品一区二区| 亚洲国产视频直播| 日韩一区二区三区视频在线 | 亚洲一区二区在线视频| 欧美日韩情趣电影| 麻豆精品国产91久久久久久| 久久这里都是精品| 91蜜桃婷婷狠狠久久综合9色| 亚洲国产裸拍裸体视频在线观看乱了 | 日本美女视频一区二区| 欧美一区二区三区白人| 国产精品亚洲人在线观看| 中文字幕精品一区二区精品绿巨人| 91一区一区三区| 日韩成人精品在线| 中文成人av在线| 欧美日韩中文字幕一区| 国产精品一区二区在线看| 亚洲精品伦理在线| 精品国产区一区| 日本黄色一区二区| 九九九精品视频| 一区二区三区不卡在线观看| 欧美大片在线观看一区二区| av成人免费在线| 精品一区二区三区在线观看| 一区二区三区中文字幕电影| 精品国产人成亚洲区| 精品视频123区在线观看| 国产成人在线视频网址| 亚洲福利视频三区| 亚洲欧美在线aaa| xf在线a精品一区二区视频网站| 色域天天综合网| 国产一区二区不卡老阿姨| 亚洲不卡av一区二区三区| 中文字幕精品一区二区三区精品| 91麻豆精品国产91久久久久久| 91在线观看下载| 成人综合婷婷国产精品久久免费| 免费成人在线观看视频| 樱桃视频在线观看一区| 国产精品美女久久久久aⅴ | 日本精品一级二级| 国产福利一区二区三区在线视频| 视频精品一区二区| 一区二区激情小说| 最近日韩中文字幕| 国产精品不卡一区二区三区| 久久综合久久综合九色| 欧美一区二区精品在线| 欧美日韩亚洲综合| 91激情在线视频| 99国产精品国产精品毛片| 国产精品18久久久久久久久久久久 | 奇米影视一区二区三区小说| 亚洲国产成人精品视频| 一区二区三区成人| 一区二区欧美视频| 亚洲国产一区二区a毛片| 一区av在线播放| 一区二区三区久久| 亚洲一区二区成人在线观看| 亚洲毛片av在线| 一卡二卡欧美日韩| 午夜精品视频一区| 日韩av电影免费观看高清完整版 | 91麻豆精品国产91久久久更新时间| 色综合欧美在线| 一本久久综合亚洲鲁鲁五月天 | 69堂亚洲精品首页| 欧美日韩国产免费| 欧美日韩国产首页| 欧美一区二区三区影视| 精品卡一卡二卡三卡四在线| 欧美精品一区在线观看| 国产欧美一区二区精品忘忧草| 久久精品视频网| |精品福利一区二区三区| 国产专区综合网| 激情文学综合网| 国产电影精品久久禁18| 不卡大黄网站免费看| 欧美日韩一区二区三区高清| 日韩一级完整毛片| 久久精品欧美日韩| 亚洲乱码中文字幕综合| 全部av―极品视觉盛宴亚洲| 国产一区二三区好的| 99re在线视频这里只有精品| 欧美午夜精品久久久| 日韩一级欧美一级| 国产精品美女久久久久高潮| 亚洲永久免费av| 国产伦精品一区二区三区视频青涩| 成人高清免费观看| 6080亚洲精品一区二区| 国产精品网站在线| 日韩经典中文字幕一区| 成人av网址在线| 日韩精品资源二区在线| 亚洲天堂久久久久久久| 九色综合国产一区二区三区|