59 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
162
views
Changing OpenGL (wgl) context to a different window handle
I am creating an application using OpenGL (4.2). By default, the rendering is done on a panel in a window, it works without issues, but the panel can be docked/undocked, which causes the underlying ...
-1
votes
1
answer
75
views
Passing HWND from Delphi 7 to C++ DLL
I have a Delphi 7 application that tries to render an OpenGL scene into a TPanel by passing the property Handle of the TPanel to a C++ DLL (written in Visual Studio 2008). Here's the DLL function ...
1
vote
1
answer
312
views
Calling glClientWaitSync() without making GL context current
I have a setup where an scene is rendered in an offscreen OpenGL framebuffer, then a compute shader extracts some data from it, and buts it into a ring buffer allocated on the device. This ring buffer ...
2
votes
1
answer
502
views
WGL - ChoosePixelFormat and sRGB framebuffer
I have a legacy OpenGL application which sets a pixel format based of ChoosePixelFormat instead of wglChoosePixelFormatARB or wglGetPixelFormatAttribivARB/wglGetPixelFormatAttribfvARB. ...
Irbis's user avatar
- 1,601
2
votes
2
answers
222
views
Why does this OpenGL + WIN32 code produce Vertical lines?
To be clear, I've extensively tested this code and found the issue is somewhere with the code written prior to the WGL code. It's precisely in the WIN32 code. Now I think it could partially be caused ...
1
vote
1
answer
155
views
OpenGL loading fails at seemingly random points
I am loading OpenGL in C# using LoadLibrary/GetProcAddress/wglGetProcAddress. For some reason, it fails to load the pointer for glBlendFunc, and other random ones after that point. I have been looking ...
-1
votes
1
answer
389
views
How can I calculate the height and width of a given text? OpenGL
I draw the text using this two functions: https://pastebin.com/JVc5xFFT
I draw the text - GlText(dc, "Test", ERGB{ 155, 179, 0 }, 5, 220);
I build a font to uint with this function
GLvoid ...
4
votes
2
answers
2k
views
Request the most recent version of OpenGL context
I'm developing an application that can use any OpenGL version from 4.6 down to 2.0 by gradually disabling some features and optimizations. This means that it can live with 2.0 but prefers the latest ...
3
votes
1
answer
629
views
How OpenGL ICD on Windows Loads OpenGL 1.0 and 1.1 Functions?
Recently I've been doing research on how OpenGL graphics drivers (ICD) implement OpenGL functions called by OpenGL runtime (opengl32.dll) on Windows.
I understand that I can use the GetProcAddress to ...
1
vote
1
answer
647
views
opengl win32 not drawing to screen
I am trying to use glClearBufferfv(GL_COLOR, 0, red) to draw a red screen.
The program displays a white screen and the loading icon on the cursor is continually rotating.
I am using glew. I am also ...
2
votes
1
answer
3k
views
Correct usage of wglMakeCurrent? [closed]
Is wglMakeCurrent supposed to be called only once or does it need to be called before every buffer swap?
Can current opengl context be reset by some external thing other then setting it via ...
1
vote
0
answers
87
views
Stubbing glOrthof to use glOrtho
I'm writing graphics code that targets both an embedded VxWorks 653 system and Windows (VxWorks is our prime target that we're delivering, and Windows is our desktop environment to test).
Our VxWorks ...
1
vote
1
answer
210
views
openGL PBO use wglcontext, Not create window
My goal is get pixel data from main window. nothing any rendering.
like we see the monitor such as screencapture.
I tried to TRANSPARENT windows, glReadPixel.
so I have a TRANSPARENT windows and ...
0
votes
2
answers
6k
views
Regular window screen capture using openGL
I'm trying to my desktop image capture. (All images, including the desktop output to the monitor)
It's easy using window API (BitBlt or CImageClass) and it's not the way I want.
I want do it using ...
0
votes
1
answer
993
views
OpenTK MultiThreading: How to "unbind" a GraphicsContext
I am working on a multi threaded OpenGL application with OpenTK 3 and WinForms.
I have 2 shared GraphicsContexts:
a "main" rendering context, used for scene drawing and synchronous load operations.
a ...