Updated OpenGL Graphic API (markdown)

master
Ray преди 8 години
родител
ревизия
029c690f01
променени са 1 файла, в които са добавени 8 реда и са изтрити 9 реда
  1. +8
    -9
      OpenGL-Graphic-API.md

+ 8
- 9
OpenGL-Graphic-API.md

@ -1,4 +1,4 @@
raylib relies on OpenGL as its main graphic API. Depending on the platform raylib uses different versions of OpenGL by default but it's possible to configure the desired OpenGL API backend on library compilation; just select the appropriate define when compiling [rlgl]() module.
raylib relies on OpenGL as its main graphic API. Depending on the platform raylib uses different versions of OpenGL by default but it's possible to configure the desired OpenGL API backend on library compilation; just select the appropriate define when compiling [rlgl](https://github.com/raysan5/raylib/blob/develop/src/rlgl.c) module.
All OpenGL API calls are contained in rlgl module, this module works as a layer to underlying graphic API. Used OpenGL version can be configured on this modules with defines at compile time.
@ -6,23 +6,22 @@ Here it is a table with the different OpenGL configurations supported by raylib
PLATFORM | OpenGL version | Notes
--- | :---: | ---
DESKTOP:Windows | `OpenGL 1.1`, `OpenGL 2.1`, `OpenGL 3.3` | Desired version can be selected at compile time
DESKTOP:Linux | `OpenGL 1.1`, `OpenGL 2.1`, `OpenGL 3.3` | Desired version can be selected at compile time
DESKTOP:OSX | `OpenGL 1.1`, `OpenGL 2.1`, `OpenGL 3.3` | Desired version can be selected at compile time
DESKTOP:Windows | `OpenGL 1.1`,<br> `OpenGL 2.1`,<br> `OpenGL 3.3` | Desired version can be selected at compile time
DESKTOP:Linux | `OpenGL 1.1`,<br> `OpenGL 2.1`,<br> `OpenGL 3.3` | Desired version can be selected at compile time
DESKTOP:OSX | `OpenGL 1.1`,<br> `OpenGL 2.1`,<br> `OpenGL 3.3` | Desired version can be selected at compile time
ANDROID| `OpenGL ES 2.0` | Selected automatically if `PLATFORM_ANDROID` is defined
RASPBERRY PI | `OpenGL ES 2.0` | Selected automatically if `PLATFORM_RPI` is defined. Runs natively, no XWindows desktop supported.
RASPBERRY PI | `OpenGL ES 2.0` | Selected automatically if `PLATFORM_RPI` is defined.<br> Runs natively, no XWindows desktop supported.
HTML5 (Web) | `WebGL 1.0 (OpenGL ES 2.0)` | `OpenGL ES 2.0` transformed to `WebGL 1.0` on compilation (using `emscripten SDK`), no emulation layer, only pure `WebGL 1.0` translation.
OCULUS RIFT CV1 | `OpenGL 2.1`, `OpenGL 3.3` | Basically, same as `DESKTOP` platforms. `OpenGL 1.1` not supported because `GL_EXT_framebuffer_object` is required.
Additional backends (not supported by default):
PLATFORM | OpenGL version | Notes
--- | :---: | ---
DESKTOP:Windows | `OpenGL ES 2.0` | Support through two possible ways: `WGL_EXT_create_context_es2_profile` extension or [ANGLE]() project
DESKTOP:Windows | `OpenGL ES 2.0` | Support through two possible ways: `WGL_EXT_create_context_es2_profile` <br> extension or [ANGLE]() project
DESKTOP:Linux | `OpenGL ES 2.0` | Support through `GLX_EXT_create_context_es2_profile` extension
ANDROID | `OpenGL ES 3.0` | Only about [55% Android devices](https://developer.android.com/about/dashboards/index.html) support it right now.
RASPBERRY PI | `OpenGL 1.1`, `OpenGL 2.1` | Supported through Gallium OpenGL driver, only available for RPI 2 and 3
HTML5 (Web) | `WebGL 2.0 (OpenGL ES 3.0)` | `OpenGL ES 3.0` transformed to `WebGL 2.0` on compilation (using `emscripten SDK`).
RASPBERRY PI | `OpenGL 1.1`,<br> `OpenGL 2.1` | Supported through Gallium OpenGL driver, only available for RPI 2 and 3
HTML5 (Web) | `WebGL 2.0` <br>`(OpenGL ES 3.0)` | `OpenGL ES 3.0` transformed to `WebGL 2.0` on compilation (using `emscripten SDK`).
Please let me know if you require one of those backends to be implemented.

Зареждане…
Отказ
Запис