glLineWidth

文章推薦指數: 80 %
投票人數:10人

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.



請為這篇文章評分?