Gorgeous na Shock!@indigoparadox@mastodon.social

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.

3 4

불러오는 중…

Gorgeous na Shock!@indigoparadox@mastodon.social
@retroprom@oldbytes.space 님에게 답글

@retroprom I could call DLL functions which would get me halfway there. Forms seem to be vanilla Windows windows with an hWnd and hDC available.

The hardest part was figuring out the datatypes. Every genuine VB4-6 example I could find reached immediately for a Double for floating point, and FP stuff was mostly absent from the API viewer. So much stuff online was VB.net, too, which added confusion.

I finally found the "Single" type in a forum post and that was the last piece of the puzzle. 😌