Immediate-Mode-UI / Nuklear

A single-header ANSI C immediate mode cross-platform GUI library
https://immediate-mode-ui.github.io/Nuklear/
Other
9.37k stars 571 forks source link

glfw opengl4 not working in mac #6

Closed mahaidong closed 5 years ago

mahaidong commented 5 years ago

Error 65543: Requested OpenGL version 4.5, got version 4.1

dumblob commented 5 years ago

Please provide more information (post your source code to pastebin, tell us which operating system and which versions of software you're using, etc.).

mahaidong commented 5 years ago
{                          
     "name": "nuklear",       
     "version": "4.01.3",     
     "repo": "vurtun/nuklear",
     "description": "A small ANSI C gui toolkit",
     "keywords": ["gl", "ui", "toolkit"],
     "src": ["nuklear.h"]     
 }

system: macos 10.15.1 MacBook Pro (Retina, 13-inch, Late 2012) I can compile the demo code /demo/glfw_opengl4

then i ./bin/demo in terminal , I got this information: Error 65543: Requested OpenGL version 4.5, got version 4.1

dumblob commented 5 years ago

Thanks. In that case the backend (everything under demo/ are different backends) is not supported on your platform of choice (macOS). Feel free to choose other backends or make sure your systems is compatible with the glfw_opengl4 backend.

mahaidong commented 5 years ago

Thanks. In that case the backend (everything under demo/ are different backends) is not supported on your platform of choice (macOS). Feel free to choose other backends or make sure your systems is compatible with the glfw_opengl4 backend.

almost all mac computer only support opengl4.1. https://support.apple.com/en-us/HT202823

dumblob commented 5 years ago

Well, that's the point of having backends in Nuklear - you can choose for your project which specific backend you'd like to use (you can of course use different backends in one project and choose at compile time or at run time - this is allowed due to backend agnostic API Nuklear provides).

Nuklear will by no means choose a backend for you - we don't even provide any backends and all of them are user contributions (that's why the directory is called demos/ and not backends/ as those are just show cases how to use Nuklear in some specific cases).