gldepthrange(3) - Linux man page - Die.net
文章推薦指數: 80 %
After clipping and division by w, depth coordinates range from -1 to 1, corresponding to the near and far clipping planes. glDepthRange specifies a linear ... gldepthrange(3)-Linuxmanpage Name glDepthRange-specifymappingofdepthvaluesfromnormalizeddevicecoordinatestowindowcoordinates CSpecification voidglDepthRange(GLclampdnear_val, GLclampdfar_val) Parameters near_val Specifiesthemappingofthenearclippingplanetowindowcoordinates.Theinitialvalueis0. far_val Specifiesthemappingofthefarclippingplanetowindowcoordinates.Theinitialvalueis1. Description Afterclippinganddivisionbyw,depthcoordinatesrangefrom-1to1,correspondingtothenearandfarclippingplanes.glDepthRange specifiesalinearmappingofthenormalizeddepthcoordinatesinthisrangetowindowdepthcoordinates.Regardlessoftheactualdepthbufferimplementation, windowcoordinatedepthvaluesaretreatedasthoughtheyrangefrom0through1(likecolorcomponents).Thus,thevaluesacceptedbyglDepthRangeare bothclampedtothisrangebeforetheyareaccepted. Thesettingof(0,1)mapsthenearplaneto0andthefarplaneto1.Withthismapping,thedepthbufferrangeisfullyutilized. Notes Itisnotnecessarythatnear_valbelessthanfar_val.Reversemappingssuchas$"near_val"~=~1$,and$"far_val"~=~0$are acceptable. Errors GL_INVALID_OPERATIONisgeneratedifglDepthRangeisexecutedbetweentheexecutionofglBeginandthecorrespondingexecutionof glEnd. AssociatedGets glGetwithargumentGL_DEPTH_RANGE SeeAlso glDepthFunc(3G),glPolygonOffset(3G),glViewport(3G) SiteSearch Library linuxdocs linuxmanpages pageloadtime Toys worldsunlight moonphase traceexplorer
延伸文章資訊
- 1glDepthRange 函式(Gl) - Win32 apps | Microsoft Docs
GlDepthRange 函式會指定從正規化裝置座標到視窗座標的z 值對應。
- 2glDepthRange:名稱,參數,描述,筆記,錯誤 - 中文百科全書
After clipping and division by w, z coordinates range from -1.0 to 1.0, corresponding to the near...
- 3GL.glDepthRange() - Pike Reference Manual
After clipping and division by w, depth coordinates range from -1 to 1, corresponding to the near...
- 4OpenGL: glDepthRange的理解_Augusdi的博客
与x和y窗口坐标不同,在OpenGL中,z坐标总是被认为位于0.0~1.0的范围之间。可通过glDepthRange()调整。API中队glDepthRange的解释:After clippin...
- 5C++ glDepthRange函數代碼示例- 純淨天空
本文整理匯總了C++中glDepthRange函數的典型用法代碼示例。如果您正苦於以下問題:C++ glDepthRange函數的具體用法?C++ glDepthRange怎麽用?C++ glD...