OpenGL - How to Draw Pixels Directly to Screen

Subscribers:
7,530
Published on ● Video Link: https://www.youtube.com/watch?v=WP0-SJHfKjE



Duration: 2:30
2,236 views
4


Just use function glDrawPixels to draw directly into framebuffer! https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glDrawPixels.xml
https://docs.microsoft.com/en-us/windows/win32/opengl/gldrawpixels

Create your own buffer in correct format, pass it in, and voila! You have compleat control over your screen! You can make your own software 3D rendering pipeline! Or you can just make 2D game! Anything! Like in the Good Old Days!

The source code is really messy and ugly, cos it was just little experiment, but here, if you dare to learn more: https://github.com/ScienceDiscoverer/hello-world/blob/master/DirectoOpenGL_Draw_test.cpp







Tags:
OpenGl
framebuffer
direct draw
total control