OpenGLES

1. ES is embedded version, subset of GL, mostly for Android/Mobile

2. Simulator on Windows 

  Windows prefers DirectX instead OpenGL, by default, only OpenGL1.1 dll is distributed in Windows OS. The latest version of OpenGL/2021 is 4.5 now.


   Prefer ARM mali ES simuator on Windows
 Qualcomm OpenGL ES 3.0 Emulator, ARM OpenGL ES 3.0 Emulator, and PowerVR OpenGL ES 3.0 Emulator

https://developer.qualcomm.com/software/adreno-gpu-sdk/tools
https://developer.arm.com/products/software/mali-sdks/opengl-es
2. Google ANGLE binary for Windows (Almost native!!)
2.1 Google Chrome Browser 
   ANGLE is part of Chrome browser.  Copy from chrome is fine!!

 Google ANGLE project (for WebGL through hardware rendering via Windows D3D9/D3D11) .  https://chromium.googlesource.com/angle/angle/+/main/README.md
  Note WebGL is also based on OpenGL ES (2.0)


2.2 QT Windows Release
 
2.3 VSCode 
 VSCode has libGLESv2.dll which will call directX(d3d9.dll). these files are from Googl ANGLE project.  Refer to dll/detail info

3. MSYS2/Windows/OpenGL1.x 


$ pacman -S mingw-w64-x86_64-freeglut
$ pacman -S mingw-w64-x86_64-glew

gcc -lfreeglut -lglew32 -lopengl32

--->  
MinGW comes without "an OpenGL", your operating system (the graphics card driver, usually) provides OpenGL.

MinGW provides a header file (gl.h), and a corresponding library (libopengl32.a) which is a wrapper for opengl32.dll, a dynamic library which comes with Windows and contains the handles to OpenGL 1.0 an 1.1 functions... something around that, not sure about exact version numbers.

Refer to msys64\mingw32\i686-w64-mingw32\include\GL\gl.h
     msys64\mingw64\x86_64-w64-mingw32\include\GL\gl.h

4.   Header files for EGL/OpenGL ES 


You also need the EGL and OpenGL ES headers, which should be included in the SDK. 
The latest version can always be obtained via the Khronos API registry for EGL (https://www.khronos.org/registry/egl/) and OpenGL ES (https://www.khronos.org/registry/gles/#headers31).


Refer to https://www.khronos.org/opengl/wiki/Getting_Started
https://www.saschawillems.de/blog/2015/04/19/using-opengl-es-on-windows-desktops-via-egl/

5. Example 

GitHub - danginsburg/opengles3-book: OpenGL ES 3.0 Programming Guide Sample Code

cl  Hello_Triangle.c  -I ..\..\Common\Include  -I ..\..\External\Include     ..\..\Common\Source\esUtil.c   ..\..\Common\Source\Win32\esUtil_win32.c   "kernel32.lib" "user32.lib"   "gdi32.lib"   libEGL.lib  libGLESv2.lib      /link /LIBPATH:"C:\work\Develop\OpenGLES_EGL\Windows"

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值