Nuklear/demo/sdl_opengles2
Alexander W. Schultz b6a7791d13 disables intrinsics on SDL demos
SDL library has an issue where it expects intrinsics headers to be
provided, but intrinsics are not exactly part of a standard, so there is
no guarantee that they will be available. As such, the library allows
you to turn them off. I am disabling them to allow for better
portability and ease of compilation.
2024-10-20 23:17:02 -04:00
..
main.c Remove STYLE_ defines as we have the style dropdown 2024-04-25 16:37:07 -04:00
Makefile disables intrinsics on SDL demos 2024-10-20 23:17:02 -04:00
nuklear_sdl_gles2.h Add delta_time_seconds to a few renderers (#628) 2024-08-29 22:22:55 -04:00
Readme.md Create Readme.md for OpenGL ES 2018-10-28 14:31:00 +03:00

OpenGL ES

OpenGL ES (OpenGL for Embedded Systems) it is a subset of OpenGL aimed to be simple and fast. It is designed for embedded systems, so for example, this demo could be a good point to start an Android application.

Linux, Mac OS X

You can develop under your favorite modern Linux distro. Most of them support Open GL ES out of the box. But remember that implementation could be different and you have to test your application on the end device too.

Just use make to build normal Linux / Mac OS X version.

Emscripten

Some other demos could be compiled into WebGL too. But the point of this demo is to be compiled without overhead and compatibility mode.

make web to build a web-version using Emscripten.

Raspberry Pi

Accelerated Open GL ES2 output supported for Raspberry Pi too. But SDL2 in default Raspbian repositories is not supporting rpi video driver by default, so you have to compile SDL2 yourself.

It is better to compile SDL2 without X11 support (--disable-video-x11 configure option). Or use export SDL_VIDEODRIVER=rpi before each run of the application.

More info can be found here: https://github.com/vurtun/nuklear/issues/748

make rpi to build the demo on your Raspberry Pi board.