[SOLVED] How to implement the OpenGL API in a custom arm os


This Content is from Stack Overflow. Question asked by Miguel Carvalho

I’m developing an operating system targetting the ARM architecture, more specifically, a RaspberryPi 4B. For that I’ve already managed to use the “Mailbox Property Interface” to draw some shapes on the screen. Out of curiosity I would like to know if it was possible to use OpenGL (or OpenGL ES, preferably) to render future more complex graphics. If possible, how do I do it?
Thanks in advance.


You want to find out which driver the usual Raspberry Pi software uses, then adapt that driver to work on your OS. This is the code that interprets your OpenGL commands and translates them to the GPU’s native language. Note there is both a kernel part and a user-space part.

It’s probably not worth trying to write your own. Graphics is a whole field of study, it’s like writing another OS just for the graphics card.

This Question was asked in StackOverflow by Miguel Carvalho and Answered by user253751 It is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?