So I managed to sit down and get #opengl working on #vb4 while watching a video essay in the background on the brutality of capital punishment by a guy who looked like Matt Walsh's good twin.
Turns out the problem setting the context was pixel format nonsense from GDI. Once I figured that out (and that a 32-bit float in Visual Basic 4 is called a Single), marshaling the calls from Opengl32.dll was simple.
I'm actually impressed! Non-flickery and even the controls sit over it! What fun.
Attachment video/mp4 is not supported yet
Comments
Displaying 0 of 1 comments
Gorgeous na Shock!
Some improvements, but I just can't seem to get away from every few launches having a NULL hRC return from wglCreateContext. Seems to happen almost 100% of the time from a compiled EXE.
Source code available so everyone can learn and become #vb4 champions: https://github.com/indigoparadox/vb4gl
Tags: #vb4
Likes: 0
Replies: 0
Boosts: 0