登录
首页 » OpenGL图像 » OpenGL 中的底纹和着色器( iOS )

OpenGL 中的底纹和着色器( iOS )

于 2022-05-08 发布 文件大小:185.03 kB
0 124
下载积分: 2 下载次数: 1

代码说明:

翻译 maninwest@Codeforge 作者:KarstenK@CodeProject介绍如何在 IOS 上使用 OpenGL 底纹。OpenGL 是个也可在其他平台可用的技术。背景我想更好地了解 OpenGL,因其图形性能和在其他项目中使用的兼容性。 使用代码包含的示例项目是根据 MVC-模式,从Xcode 纯模板衍生而来的,  Model-View-Controller 有助于将代码分成有用的片段。ViewController 类名副其实,控制视图工作的方式。重要的是Displaylink,因为这是从显示器中的回调或用于新像素输出的更好的 GUP 计时器。- (void)startDisplayLinkIfNeeded { if (!_displayLink) { self.displayLink = [CADisplayLink displayLinkWithTarget:_viewOpenGL selector:@selector(display)]; [_displayLink addToRunLoop:[NSRunLoop mainRunLoop] forMode:NSRunLoopCommonModes]; } }GUI 在存储控件的 Main.storyboard 中进行配置。它们通过 outlet(出口) 连接到  ViewController 。开始使用 OpenGL 为了以某种方式使用 OpenGL ,我通过 Objective -C 中的典型单例模式设计了一个 OpenGLContext  类。+ (instancetype)sharedInstance

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • OpenGL吃豆子游戏
    OpenGL吃豆子游戏,打开游戏会提示是否在全屏模式下运行,以及是否要降低速度。游戏操作:方向键控制 建议使用VC++6.0查看、调试 如果使用VS 有可能出现游戏运行速度飞快的情况
    2022-07-06 15:57:04下载
    积分:1
  • 多边形和圆的动画
    1。图的边在视口的radius5宽度= 200高度= 200。最初的左侧和底部是50和50 theviewport。屏幕的宽度和高度分别为640和480。的两侧,将3边形initialnumber。在画边设置colorsaccording t值:A.布莱克:T>[ 0,0.25)B.红色:T>[ 0.25,0.5)C.绿色:T>[ 0.5,0.75)D.蓝色:T>[ 0.75,1 ]允许用户移动视口上,下,左、右使用键W,S,A和D。每个键将viewportby 10像素。如果用户按下鼠标右键然后得出n-gonusing gl_points和动画面数从3到32和从3回到32to。
    2022-06-28 21:19:37下载
    积分:1
  • 用OpenGL作一个球体
    用OpenGL作一个球体-use OpenGL for a ball
    2022-01-28 13:38:05下载
    积分:1
  • open访问activex的一个例子,介绍了调用active的方法
    open访问activex的一个例子,介绍了调用active的方法-open access activex example, introduced the method of active call
    2022-03-24 07:24:57下载
    积分:1
  • VS2008上应用OSG
    这是关于怎么样在VC工程下,开辟一个线程来应用osg库来实现三维可视化,这里提供了文档说明实现mfc和osg相结合的方法。通过在视图类中调用osg线程,实现程序的三维可视化。
    2023-05-16 09:40:03下载
    积分:1
  • / *画圆的半径为9,8和7所示的颜色(0,0)
    /* Draw circles of radius 9, 8 and 7 with the colours shown around (0,0) Draw the x and y axis Draw the diagonal line Draw the 12 by 6 quad around (0,0) When the left mouse button is pressed the diagonal line moves as shown. When the right button is pressed the diagonal line is reset to its original position The right button also toggles the direction from + to - x Pressing Esc exits the program */-/* Draw circles of radius 9, 8 and 7 with the colours shown around (0,0) Draw the x and y axis Draw the diagonal line Draw the 12 by 6 quad around (0,0) When the left mouse button is pressed the diagonal line moves as shown. When the right button is pressed the diagonal line is reset to its original position The right button also toggles the direction from+ to- x Pressing Esc exits the program */
    2022-05-20 09:28:51下载
    积分:1
  • OpenGL, Visual C++ 一个带有经纬线的地球模型,通过mouse function能够朝各个方向旋转...
    OpenGL, Visual C++ 一个带有经纬线的地球模型,通过mouse function能够朝各个方向旋转-OpenGL, Visual C with a latitude and longitude lines of the earth model, through the mouse to function in all directions rotation
    2022-05-13 14:10:47下载
    积分:1
  • 作者: junglesong 这是我过去进行一个OpenGL项目时使用到的"三维空间向量/点"类及相关函数,使用它们可以定义一个空间向量/点,实现向量的平移...
    作者: junglesong 这是我过去进行一个OpenGL项目时使用到的"三维空间向量/点"类及相关函数,使用它们可以定义一个空间向量/点,实现向量的平移,缩放和旋转等,使用相关函数还可以实现两向量的叉乘,得到一个向量的绝对长度,将一个向量单位化,得到一个三点决定的平面的垂直向量(经过单位化),得到空间中两点的距离,得到两向量的点积,得到两向量的夹角等操作,为方便用户的使用,每个函数都有详细的注释,特别重要的向量计算如点积,叉乘还有相关说明,希望对大家有所用处. 由于源程序涉及到保密问题不能和盘托出,请见谅. junglesong@etang.com-Author : junglesong This is my last OpenGL for a project to use the "three-dimensional vector space/point "and related functions, they can use a definition of space vector/points, for the vector translation, zooming and rotation, using correlation function can also achieve two fork by Vector, a vector to be the absolute length of a vector unit, 3:00 been a decision of the vertical plane of Vector (those units), a space to be the distance between two points, Vector to be the two plot points, to be the angle between two vectors such operations, as a user-use, Each function has detailed notes, a particularly important point if the calculation vector plot, fork also took note, we hope to have use
    2023-01-23 15:20:04下载
    积分:1
  • 凸de多边形案填充实例程序
    这个 源文件特别适合那些初学者 对于初学者来说,此源文档可以很的帮助他们深刻一些函数,并使他们尽快的对Opengl 入门,此源文件不是我本人变得 是从百度上,一位高人那里淘来的,原谅的拷贝 ,
    2022-07-14 06:25:34下载
    积分:1
  • 虚拟现实的仿真中 特效是不可不要的 爆炸效果更是 在很多场合都能用的到的
    虚拟现实的仿真中 特效是不可不要的 爆炸效果更是 在很多场合都能用的到的 -Virtual Reality Simulation in the effects of the explosion is not the effect is on many occasions to be able to use the
    2022-01-25 16:27:38下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载