glLineWidth
文章推薦指數: 80 %
glLineWidth — specify the width of rasterized lines ... (If the rounding results in the value 0, it is as if the line width were 1.) ... NameglLineWidth—specifythewidthofrasterizedlinesCSpecificationvoidglLineWidth(GLfloatwidth); Parameterswidth Specifiesthewidthofrasterizedlines. Theinitialvalueis1. Description glLineWidthspecifiestherasterizedwidthof lines. Theactualwidthisdeterminedbyroundingthesuppliedwidth tothenearestinteger. (Iftheroundingresultsinthevalue0, itisasifthelinewidthwere1.) If Δ x >= Δ y , ipixelsarefilledineachcolumnthatisrasterized, whereiistheroundedvalueofwidth. Otherwise, ipixelsarefilledineachrowthatisrasterized. Thereisarangeofsupportedlinewidths.Onlywidth1isguaranteedtobesupported;othersdependonthe implementation. Toquerytherangeofsupportedwidths,callglGet withargumentGL_ALIASED_LINE_WIDTH_RANGE. Notes ThelinewidthspecifiedbyglLineWidthisalwaysreturnedwhenGL_LINE_WIDTH isqueried. Clampingandroundinghavenoeffectonthespecifiedvalue. Linewidthmaybeclampedtoanimplementation-dependentmaximum.CallglGetwithGL_ALIASED_LINE_WIDTH_RANGEtodeterminethemaximumwidth. Errors GL_INVALID_VALUEisgeneratedifwidthislessthanorequalto0. AssociatedGets glGetwithargumentGL_LINE_WIDTH glGetwithargumentGL_ALIASED_LINE_WIDTH_RANGE SeeAlso glEnable Copyright Copyright©1991-2006 SiliconGraphics,Inc.ThisdocumentislicensedundertheSGI FreeSoftwareBLicense.Fordetails,see https://khronos.org/registry/OpenGL-Refpages/LICENSES/LicenseRef-FreeB.txt.
延伸文章資訊
- 1glLineWidth
glLineWidth — specify the width of rasterized lines ... (If the rounding results in the value 0, ...
- 2用WebGL 畫線比我想像中地還難 - 半熟前端
Due to limitations of the OpenGL Core Profile with the WebGL renderer on most platforms linewidth...
- 3[webgl] line width E-I - CodePen
- 4How to use gl.lineWidth() - Stack Overflow
It's important to note that using gl.lineWidth with any width other than 1.0 is not guaranteed to...
- 5Three.js线宽.lineWidth无效 - 郭隆邦
一般在windows操作系统平台上使用Three.js引擎的WebGL渲染器 WebGLRenderer 进行渲染的时候, .lineWidth 属性值设置为多少都是无效的,也就是说无论如何设置...