Thus: how to go on setting a CAEAGLLayer properties for OpenGL ES? Unfortunately that documentation is sparse. This CAEAGLLayer only has 1 property "drawableProperties" which is an NSDictionary. This is done by returning it from the views layerClass method. The CAEAGLLayer class is the class Apple wants one to use as the backing class of the view one uses. The CAEAGLLayer Class Reference writes to "Set the layer bounds to match the dimensions of the display". Apple replaces this with renderbufferStorage:fromDrawable: message sent to the EAGLContext in above guide.Īpple then goes on writing to fetch width and hight from the Renderbuffer as that buffer sets them on creation without further detail. Using frame buffer objects for rendering on iOS, which appears to be Apples preferred way of rendering on iOS according to the OpenGL ES Programming Guide for iOS from Apple, one is supposed to use glRenderbufferStorage() for specifying properties like width and hight according to OpenGL ES 2.0 Programming Guide from Munshi, Ginsburg and Shreiner.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |