在“标准"页面上创建OpenGL ES 2.0上下文. Linux系统 [英] Create an OpenGL ES 2.0 context on a "standard" Linux system

查看:117
本文介绍了在“标准"页面上创建OpenGL ES 2.0上下文. Linux系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用opengl 3.3/SDL/glew/Linux(Ubuntu 11.04)编写游戏引擎.我想保留在移动设备(OpenGL ES 2)上部署的可能性.这意味着我必须保持某种程度上与OpenGL ES 2.0兼容. 因此,我的问题是: 是否可以使用SDL/(SDL上的现有补丁程序)创建OpenGL ES 2.0上下文.

I'm writing a game engine using opengl 3.3/SDL/glew/Linux (Ubuntu 11.04). I want to keep the possibility to deploy on mobile (OpenGL ES 2). This means that I have to stay somewhat OpenGL ES 2.0 compatible. Therefore my question is: Is it possible to create an OpenGL ES 2.0 context using SDL/(existing patch on SDL).

推荐答案

您在PC上不需要GL ES 2.0上下文,可以使用具有GL_ARB_es2_compatibility的OpenGL 4.1,它添加了OpenGL ES功能,不在OpenGL中,从而使它们与API兼容.

You don't need a GL ES 2.0 context on PC, you can use OpenGL 4.1, which has the GL_ARB_es2_compatibility, which adds the OpenGL ES functions that weren't in OpenGL, making them API compatible.

这篇关于在“标准"页面上创建OpenGL ES 2.0上下文. Linux系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆