【OpenGL】OpenGL 入门

简介

Open Graphics Library (OpenGL) is a cross-language, cross-platform application programming interface (API) for rendering 2D and 3D vector graphics. The API is typically used to interact with a graphics processing unit (GPU), to achieve hardware-accelerated rendering. Silicon Graphics Inc., (SGI) started developing OpenGL in 1991 and released it on June 30, 1992; applications use it extensively in the fields of computer-aided design (CAD), virtual reality, scientific visualization, information visualization, flight simulation, and video games. Since 2006 OpenGL has been managed by the non-profit technology consortium Khronos Group. – Wikipedia

OpenGL 本身并不是一个类似于 OpenCV 那样实现好了的库,而是一套定义好的接口API,一份 technical specification. 具体的实现,则由各硬件厂商自己去搞,也就是各种各样的显卡驱动。

比如说我现在的电脑上,集成显卡上是 Intel 实现的 OpenGL v4.5,

这里写图片描述

OpenGL 本身只关注怎么调用接口实现绘制,在各种不同的设备上,为了使用 OpenGL, 还需要初始化一个相应的 OpenGL 环境。这个环境需要配套的库来实现。

比如在桌面端,对应 macOS,Windows, *unix, 就需要 AGL,WGL,GLX 这些库来建立这个环境。为了在各平台下通用 OpenGL 框架,就有了 glut, GLFW 这样的框架来处理跨平台这样的琐事,关于这些框架的更多细节,看这里

针对手机等嵌入式设备上有专门的 OpenGL ES(OpenGL for Embedded System)
浏览器端有专门的WebGLWebGL 是对 OpenGL ES的 JS 封装,建立环境用的是EGL库。


Ref

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值