How can I access the graphics card and draw from my kernel?

Hello.
I write my kernel in C, can I access OpenGL functions or otherwise interact with the graphics card?
I would like to get information about the installed map and interact with the screen.
Thanks.