05 2012 档案

摘要:下图显示了创建shader的必要步骤,函数的具体使用方法将在下面各小结描述: 阅读全文
posted @ 2012-05-18 16:31 程序是啥 阅读(248) 评论(0) 推荐(0)
摘要:代码来自:http://www.cnblogs.com/zilongshanren/archive/2011/08/08/2131019.html创建检测设备是否支持Open GLES 2.0 EAGLRenderingAPI api = kEAGLRenderingAPIOpenGLES2; _context = [[EAGLContext alloc] initWithAPI:api]; if (!_context) { NSLog(@"Failed to initialize OpenGLES 2.0 context"); exit(1); ... 阅读全文
posted @ 2012-05-18 16:11 程序是啥 阅读(1607) 评论(0) 推荐(0)
摘要:好久都更新!接下来将更新自己学习Open GL ES 的学习心得,或者说是笔记。OpenGL ES 1.0使用一个固定的管道,通过它内建的functions来设置诸如灯光、,vertexes(图形的顶点数),颜色、camera等等的东西。OpenGL ES 2.0使用可编程管线,你得自己动手编写任何功能。#import<UIKit/UIKit.h> #import<QuartzCore/QuartzCore.h> #import<OpenGLES/ES2/gl.h>#import<OpenGLES/ES2/glext.h> 阅读全文
posted @ 2012-05-17 13:41 程序是啥 阅读(1032) 评论(0) 推荐(0)