glGenRenderbuffers - OpenGL 4 Reference Pages - Khronos ...

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

glGenRenderbuffers returns n renderbuffer object names in renderbuffers . There is no guarantee that the names form a contiguous set of integers; however, ... Name glGenRenderbuffers—generaterenderbufferobjectnames CSpecification voidglGenRenderbuffers( GLsizein,   GLuint*renderbuffers);   Parameters n Specifiesthenumberofrenderbufferobjectnamestogenerate. renderbuffers Specifiesanarrayinwhichthegeneratedrenderbufferobjectnamesarestored. Description glGenRenderbuffersreturnsnrenderbufferobjectnamesinrenderbuffers. Thereisnoguaranteethatthenamesformacontiguoussetofintegers;however,itisguaranteedthatnoneofthereturnednames wasinuseimmediatelybeforethecalltoglGenRenderbuffers. RenderbufferobjectnamesreturnedbyacalltoglGenRenderbuffersarenotreturnedbysubsequentcalls,unless theyarefirstdeletedwithglDeleteRenderbuffers. Thenamesreturnedinrenderbuffersaremarkedasused,forthepurposesofglGenRenderbuffersonly, buttheyacquirestateandtypeonlywhentheyarefirstbound. Errors GL_INVALID_VALUEisgeneratedifnisnegative. VersionSupport OpenGLVersion Function/FeatureName 2.0 2.1 3.0 3.1 3.2 3.3 4.0 4.1 4.2 4.3 4.4 4.5 glGenRenderbuffers - - ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ SeeAlso glFramebufferRenderbuffer, glDeleteRenderbuffers Copyright Copyright©2010-2014KhronosGroup. Thismaterialmaybedistributedsubjecttothetermsandconditionssetforthin theOpenPublicationLicense,v1.0,8June1999. http://opencontent.org/openpub/.



請為這篇文章評分?