-1

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?

Rabbid76
  • 202,892
  • 27
  • 131
  • 174

1 Answers1

1

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.

user253751
  • 57,427
  • 7
  • 48
  • 90