栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

OpenGLES

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

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 msys64mingw32i686-w64-mingw32includeGLgl.h
     msys64mingw64x86_64-w64-mingw32includeGLgl.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 ....CommonInclude  -I ....ExternalInclude     ....CommonSourceesUtil.c   ....CommonSourceWin32esUtil_win32.c   "kernel32.lib" "user32.lib"   "gdi32.lib"   libEGL.lib  libGLESv2.lib      /link /LIBPATH:"C:workDevelopOpenGLES_EGLWindows"

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/314640.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号