OpenGL - How to Draw Pixels Directly to Screen
Channel:
Subscribers:
7,530
Published on ● Video Link: https://www.youtube.com/watch?v=WP0-SJHfKjE
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
Other Videos By ScienceDiscoverer
| 2018-03-19 | Pi Rover on Mun |
| 2018-03-08 | 96 tonn rocket 6 tonn Mun lander payload KSP |
| 2018-02-27 | KSP SpaceBus™ |
| 2018-02-25 | KSP Orbit Fail |
| 2018-02-23 | 2D Arrows Simulation |
| 2018-02-23 | Delta-V Calculator App for Kerbal Space Program |
| 2018-01-17 | Custom Physics Engine Demo |
| 2018-01-15 | Cross Product Visualisation |
| 2018-01-12 | SciEngine Advanced Collision Test |
| 2017-12-30 | SciEngine Early Prototype |
| 2017-12-19 | OpenGL - How to Draw Pixels Directly to Screen |
| 2017-11-29 | GAMEMAX K901 Backlight |
| 2017-11-06 | My Pong Clone made from scratch |
| 2017-11-01 | GLUT OpenGL Snowman Tutorial |
| 2017-10-19 | Codingame Hard Puzzle "The Labyrinth" Test 8 |
| 2017-07-14 | Console Runner |
| 2017-07-13 | Crypt of the NecroDancer Stage 4 + 2 final bosses |
| 2017-07-04 | Crypt of the NecroDancer Stage 2 |
| 2017-07-02 | London Tour, 2007 |
| 2017-06-23 | My first physics engine! |
| 2017-03-18 | When you try to farm points on Hellcat... |
Tags:
OpenGl
framebuffer
direct draw
total control

