glGenRenderbuffers - generate renderbuffer object names

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

glGenRenderbuffers returns n renderbuffer object names in renderbuffers. There is no guarantee that the names form a contiguous set of integers; however, ... Providedby:opengl-4-man-doc_1.0~svn33624-1_all NAME glGenRenderbuffers-generaterenderbufferobjectnames CSPECIFICATION voidglGenRenderbuffers(GLsizein,GLuint*renderbuffers); PARAMETERS n Specifiesthenumberofrenderbufferobjectnamestogenerate. renderbuffers Specifiesanarrayinwhichthegeneratedrenderbufferobjectnamesarestored. DESCRIPTION glGenRenderbuffersreturnsnrenderbufferobjectnamesinrenderbuffers.Thereisno guaranteethatthenamesformacontiguoussetofintegers;however,itisguaranteedthat noneofthereturnednameswasinuseimmediatelybeforethecalltoglGenRenderbuffers. RenderbufferobjectnamesreturnedbyacalltoglGenRenderbuffersarenotreturnedby subsequentcalls,unlesstheyarefirstdeletedwithglDeleteRenderbuffers(). Thenamesreturnedinrenderbuffersaremarkedasused,forthepurposesof glGenRenderbuffersonly,buttheyacquirestateandtypeonlywhentheyarefirstbound. ERRORS GL_INVALID_VALUEisgeneratedifnisnegative. VERSIONSUPPORT ┌───────────────────┬───────────────────────────────────────────────────────────────────────┐ ││OpenGLVersion│ ├───────────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤ │Function│2.0│2.1│3.0│3.1│3.2│3.3│4.0│4.1│4.2│4.3│4.4│4.5│ │/│││││││││││││ │Feature│││││││││││││ │Name│││││││││││││ ├───────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤ │glGenRenderbuffers│-│-│✔│✔│✔│✔│✔│✔│✔│✔│✔│✔│ └───────────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘ SEEALSO glFramebufferRenderbuffer(),glDeleteRenderbuffers() COPYRIGHT Copyright©2010-2014KhronosGroup.Thismaterialmaybedistributedsubjecttotheterms andconditionssetforthintheOpenPublicationLicense,v1.0,8June1999. http://opencontent.org/openpub/. COPYRIGHT Copyright©2010-2014KhronosGroup [FIXME:source]01/03/2018GLGENRENDERBUFFERS(3G)



請為這篇文章評分?