glrenderbufferstorage(3g) [osx man page] - The UNIX and ...

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

glRenderbufferStorage is equivalent to calling glRenderbufferStorageMultisample() with the samples set to zero. The target of the operation, specified by ... TheUNIXandLinuxForums ForumHome LinuxandUnixManPages SearchForums SearchCommunityPosts Today'sPosts QuickLinks ManPages RedHatCommands OpenSolarisCommands LinuxCommands SunOSCommands FreeBSDCommands AllUNIX ManPages All LinuxManPages FullManRepository LoginorRegistertoAskaQuestionandJoinOurCommunity SearchForums ShowThreads.   ShowPosts TagSearch AdvancedSearch QuickLinks ContactUs ForumRules Today'sPosts FAQ Pictures&Albums AllAlbums Miscellaneous WhatisMyIP Whois MarkForumsRead LinuxandUNIXManPages Linux&UnixCommands-SearchManPages glrenderbufferstorage(3g)[osxmanpage] GLRENDERBUFFERSTORAG(3G) OpenGL3.3 GLRENDERBUFFERSTORAG(3G) NAME glRenderbufferStorage-establishdatastorage,formatanddimensionsofarenderbufferobject'simage CSPECIFICATION voidglRenderbufferStorage(GLenumtarget,GLenuminternalformat,GLsizeiwidth,GLsizeiheight); PARAMETERS target SpecifiesabindingtowhichthetargetoftheallocationandmustbeGL_RENDERBUFFER. internalformat Specifiestheinternalformattousefortherenderbufferobject'simage. width Specifiesthewidthoftherenderbuffer,inpixels. height Specifiestheheightoftherenderbuffer,inpixels. DESCRIPTION glRenderbufferStorageisequivalenttocallingglRenderbufferStorageMultisample()withthesamplessettozero. Thetargetoftheoperation,specifiedbytargetmustbeGL_RENDERBUFFER.internalformatspecifiestheinternalformattobeusedforthe renderbufferobject'sstorageandmustbeacolor-renderable,depth-renderable,orstencil-renderableformat.widthandheightarethe dimensions,inpixels,oftherenderbuffer.BothwidthandheightmustbelessthanorequaltothevalueofGL_MAX_RENDERBUFFER_SIZE. Uponsuccess,glRenderbufferStoragedeletesanyexistingdatastorefortherenderbufferimageandthecontentsofthedatastoreafter callingglRenderbufferStorageareundefined. ERRORS GL_INVALID_ENUMisgeneratediftargetisnotGL_RENDERBUFFER. GL_INVALID_VALUEisgeneratedifeitherofwidthorheightisnegative,orgreaterthanthevalueofGL_MAX_RENDERBUFFER_SIZE. GL_INVALID_ENUMisgeneratedifinternalformatisnotacolor-renderable,depth-renderable,orstencil-renderableformat. GL_OUT_OF_MEMORYisgeneratediftheGLisunabletocreateadatastoreoftherequestedsize. SEEALSO glGenRenderbuffers(),glBindRenderbuffer(),glRenderbufferStorageMultisample(),glFramebufferRenderbuffer(),glDeleteRenderbuffers() COPYRIGHT Copyright(C)2010KhronosGroup.ThismaterialmaybedistributedsubjecttothetermsandconditionssetforthintheOpenPublication License,v1.0,8June1999.http://opencontent.org/openpub/. OpenGL3.3 03/08/2011 GLRENDERBUFFERSTORAG(3G) CheckOutthisRelatedManPage GLGETRENDERBUFFERPAR(3G) OpenGL3.3 GLGETRENDERBUFFERPAR(3G) NAME glGetRenderbufferParameteriv-retrieveinformationaboutaboundrenderbufferobject CSPECIFICATION voidglGetRenderbufferParameteriv(GLenumtarget,GLenumpname,GLint*params); PARAMETERS target Specifiesthetargetofthequeryoperation.targetmustbeGL_RENDERBUFFER. pname Specifiestheparameterwhosevaluetoretrievefromtherenderbufferboundtotarget. params Specifiestheaddressofanarraytoreceivethevalueofthequeriedparameter. DESCRIPTION glGetRenderbufferParameterivretrievesinformationaboutaboundrenderbufferobject.targetspecifiesthetargetofthequeryoperation andmustbeGL_RENDERBUFFER.pnamespecifiestheparameterwhosevaluetoqueryandmustbeoneofGL_RENDERBUFFER_WIDTH, GL_RENDERBUFFER_HEIGHT,GL_RENDERBUFFER_INTERNAL_FORMAT,GL_RENDERBUFFER_RED_SIZE,GL_RENDERBUFFER_GREEN_SIZE,GL_RENDERBUFFER_BLUE_SIZE, GL_RENDERBUFFER_ALPHA_SIZE,GL_RENDERBUFFER_DEPTH_SIZE,GL_RENDERBUFFER_DEPTH_SIZE,GL_RENDERBUFFER_STENCIL_SIZE,or GL_RENDERBUFFER_SAMPLES. UponasuccessfulreturnfromglGetRenderbufferParameteriv,ifpnameisGL_RENDERBUFFER_WIDTH,GL_RENDERBUFFER_HEIGHT, GL_RENDERBUFFER_INTERNAL_FORMAT,orGL_RENDERBUFFER_SAMPLES,thenparamswillcontainthewidthinpixels,theheightinpixels,the internalformat,orthenumberofsamples,respectively,oftheimageoftherenderbuffercurrentlyboundtotarget. IfpnameisGL_RENDERBUFFER_RED_SIZE,GL_RENDERBUFFER_GREEN_SIZE,GL_RENDERBUFFER_BLUE_SIZE,GL_RENDERBUFFER_ALPHA_SIZE, GL_RENDERBUFFER_DEPTH_SIZE,orGL_RENDERBUFFER_STENCIL_SIZE,thenparamswillcontaintheactualresolutions(nottheresolutionsspecified whentheimagearraywasdefined)forthered,green,blue,alphadepth,orstencilcomponents,respectively,oftheimageofthe renderbuffercurrentlyboundtotarget. ERRORS GL_INVALID_ENUMisgeneratedifpnameisnotoneoftheacceptedtokens. SEEALSO glGenRenderbuffers(),glFramebufferRenderbuffer(),glBindRenderbuffer(),glRenderbufferStorage(),glRenderbufferStorageMultisample() COPYRIGHT Copyright(C)2010KhronosGroup.ThismaterialmaybedistributedsubjecttothetermsandconditionssetforthintheOpenPublication License,v1.0,8June1999.http://opencontent.org/openpub/. OpenGL3.3 03/08/2011 GLGETRENDERBUFFERPAR(3G) ManPage FeaturedTechVideos



請為這篇文章評分?