iOS OpenGL 函数renderbufferStorage:fromDrawable:
来源:互联网 发布:软件安全性测试工具 编辑:程序博客网 时间:2024/05/16 10:49
Create a color renderbuffer. Allocate its storage by calling the context’srenderbufferStorage:fromDrawable: method, passing the layer object as the parameter. The width,height and pixel format are taken from the layer and used to allocate storage for the renderbuffer.
myEAGLLayer = (CAEAGLLayer*)self.layer;
GLuint colorRenderbuffer;
glGenRenderbuffers(1, &colorRenderbuffer);glBindRenderbuffer(GL_RENDERBUFFER, colorRenderbuffer);
[myContext renderbufferStorage:GL_RENDERBUFFER fromDrawable:myEAGLLayer];
glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0,GL_RENDERBUFFER, colorRenderbuffer);
NoteWhentheCoreAnimationlayer’sboundsorpropertieschange,yourapplicationshouldreallocate the renderbuffer’s storage. If you do not reallocate the renderbuffers, the renderbuffersize won’t match the size of the view; in this case, Core Animation may scale the image’s contentsto fit in the view. To prevent this, the Xcode template reallocates the framebuffer and renderbufferwhenever the view layout changes.
- iOS OpenGL 函数renderbufferStorage:fromDrawable:
- iOS OpenGL renderbufferStorage:fromDrawable 方法详解
- EXC_BAD_ACCESS at lauch for EAGLContext renderbufferStorage: fromDrawable: in Cocos2d app whie debug
- iOS OpenGL
- 求助 ios关于opengl es 2.0 vbo glDrawArrays函数
- OpenGL函数
- OpenGL函数
- openGL函数
- OpenGL函数
- OpenGL函数
- opengl函数
- OpenGL ES on iOS
- OpenGL ES on iOS
- IOS的OpenGL基础
- IOS 截图(opengl)
- ios--OpenGL应用示例
- IOS OpenGL教学
- iOS--OpenGL渲染
- 推荐一系列优秀的Android开发源码
- 心情整天都在郁闷浮云往事如云烟,撕心裂肺:伤感心情日志
- c语言中system()函数的使用
- 软件架构模式的种类
- HTK错误消息意义
- iOS OpenGL 函数renderbufferStorage:fromDrawable:
- PHP web服务器终极解决方案:CentOS v6.x Minimal 32bit + LNAMP 一键安装包【Linux+Nginx+Apache+MySQL+PHP+phpMyAdmin】
- ORA-12516 解决方法
- 元芳,这个Bug你怎么看
- 位图文件(BMP)格式以及Linux下C程序实现
- speex源码分析-4-固定码本激励
- 如何看懂源代码--(分析源代码方法)
- OCX开发与第三方OCX封装
- JTree实现文件树