04-06-2023, 07:56 PM
I found myself in a strange situation. Everything is declared. The constants are correct. The problem mentioned - the first three functions declared all returning non-null values, so I assume that's correct. The last wglUseFontBitmapsA function called from the OpenGL32.dll library sometimes returns zero (failure), sometimes returns 1 (everything OK), but the screen is still black. I do not know what do with it. I have done everything I can think of and the result is a black screen. Um. Well, that's OpenGL.
I tried using GetDC and also GetWindowDC to get the DC, it works. Then is declared CreateFont, it returns a handle to the font. Next is declared a SelectObject, it also returns a handle. And that last wglUseFontBitmapsA function from OpenGL killed it all really it is.....
Thank for reply
I tried using GetDC and also GetWindowDC to get the DC, it works. Then is declared CreateFont, it returns a handle to the font. Next is declared a SelectObject, it also returns a handle. And that last wglUseFontBitmapsA function from OpenGL killed it all really it is.....
Thank for reply