glRenderbufferStorage, glNamedRenderbufferStorage
文章推薦指數: 80 %
glRenderbufferStorage is equivalent to calling glRenderbufferStorageMultisample() with the samples set to zero, and glNamedRenderbufferStorage is equivalent to ... Providedby:opengl-4-man-doc_1.0~svn31251-1build1_all NAME glRenderbufferStorage,glNamedRenderbufferStorage-establishdatastorage,formatand dimensionsofarenderbufferobject'simage CSPECIFICATION voidglRenderbufferStorage(GLenumtarget,GLenuminternalformat,GLsizeiwidth, GLsizeiheight); voidglNamedRenderbufferStorage(GLuintrenderbuffer,GLenuminternalformat,GLsizeiwidth, GLsizeiheight); PARAMETERS target SpecifiesabindingtargetoftheallocationforglRenderbufferStoragefunction.Must beGL_RENDERBUFFER. renderbuffer SpecifiesthenameoftherenderbufferobjectforglNamedRenderbufferStoragefunction. internalformat Specifiestheinternalformattousefortherenderbufferobject'simage. width Specifiesthewidthoftherenderbuffer,inpixels. height Specifiestheheightoftherenderbuffer,inpixels. DESCRIPTION glRenderbufferStorageisequivalenttocallingglRenderbufferStorageMultisample()withthe samplessettozero,andglNamedRenderbufferStorageisequivalenttocalling glNamedRenderbufferStorageMultisamplewiththesamplessettozero. ForglRenderbufferStorage,thetargetoftheoperation,specifiedbytargetmustbe GL_RENDERBUFFER.ForglNamedRenderbufferStorage,renderbuffermustbeanameofan existingrenderbufferobject.internalformatspecifiestheinternalformattobeusedfor therenderbufferobject'sstorageandmustbeacolor-renderable,depth-renderable,or stencil-renderableformat.widthandheightarethedimensions,inpixels,ofthe renderbuffer.Bothwidthandheightmustbelessthanorequaltothevalueof GL_MAX_RENDERBUFFER_SIZE. Uponsuccess,glRenderbufferStorageandglNamedRenderbufferStoragedeleteanyexisting datastorefortherenderbufferimageandthecontentsofthedatastoreaftercalling glRenderbufferStorageareundefined. ERRORS GL_INVALID_ENUMisgeneratedbyglRenderbufferStorageiftargetisnotGL_RENDERBUFFER. GL_INVALID_OPERATIONisgeneratedbyglNamedRenderbufferStorageifrenderbufferisnotthe nameofanexistingrenderbufferobject. GL_INVALID_VALUEisgeneratedifeitherofwidthorheightisnegative,orgreaterthan thevalueofGL_MAX_RENDERBUFFER_SIZE. GL_INVALID_ENUMisgeneratedifinternalformatisnotacolor-renderable, depth-renderable,orstencil-renderableformat. GL_OUT_OF_MEMORYisgeneratediftheGLisunabletocreateadatastoreoftherequested size. 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│││││││││││││ ├───────────────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤ │glNamedRenderbufferStorage│-│-│-│-│-│-│-│-│-│-│-│✔│ ├───────────────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤ │glRenderbufferStorage│-│-│✔│✔│✔│✔│✔│✔│✔│✔│✔│✔│ └───────────────────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘ SEEALSO glGenRenderbuffers(),glBindRenderbuffer(),glNamedRenderbufferStorageMultisample(), glRenderbufferStorageMultisample(),glFramebufferRenderbuffer(),glDeleteRenderbuffers() COPYRIGHT Copyright©2010-2014KhronosGroup.Thismaterialmaybedistributedsubjecttotheterms andconditionssetforthintheOpenPublicationLicense,v1.0,8June1999. http://opencontent.org/openpub/. COPYRIGHT Copyright©2010-2014KhronosGroup [FIXME:source]07/22/2015GLRENDERBUFFERSTORAG(3G)
延伸文章資訊
- 1android.opengl.GLES20.glRenderbufferStorage java code ...
public void glRenderbufferStorageEXT(int param1, int param2, int param3, int param4) { GLES20.glR...
- 2C++ (Cpp) glRenderbufferStorage Examples - HotExamples
These are the top rated real world C++ (Cpp) examples of glRenderbufferStorage extracted from ope...
- 3glRenderbufferStorage, glNamedRenderbufferStorage
glRenderbufferStorage is equivalent to calling glRenderbufferStorageMultisample() with the sample...
- 4glrenderbufferstorage(3g) [osx man page] - The UNIX and ...
glRenderbufferStorage is equivalent to calling glRenderbufferStorageMultisample() with the sample...
- 5OpenGL glRenderbufferStorage 函式詳解 - 程式人生
glRenderbufferStorage 指定儲存在 renderbuffer 中影象的寬高以及顏色格式,並按照此規格為之分配儲存空間,當一個渲染快取被建立,它沒有任何資料 ...