Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
1 answer
117 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 ...
0 votes
1 answer
126 views

Segfault when calling OpenGL functions from other file

I am creating a small abstraction layer for an engine, but when I call any OpenGL API functions from a class, the code segfaults. I'm using glad and glfw and there aren't any errors from either, and ...
1 vote
0 answers
141 views

GdkCursor is randomly resetting to default with wglContext and gtk3

Short summary: I have multiple GdkWindows that simultaneously get drawn into using OpenGL. For each of those windows it may happen that we want to set the GdkCursor. The change is registered and done, ...
V41U's user avatar
  • 146
0 votes
2 answers
772 views

Problem using two OpenGL-Contexts in two threads (one per thread)

I have been using one OpenGL-context in one thread (very simplyfied) like this: int main { // Initialize OpenGL (GLFW / GLEW) Compile_Shaders(); while (glfwWindowShouldClose(WindowHandle) =...
6 votes
1 answer
3k views

How can I use OpenGL to render to memory without requiring any windowing system library?

I would like to use OpenGL (version 1.5) to render images to memory, without displaying them on screen (I can e.g. just save them as image files or render them as ASCII in terminal). I do not want any ...
1 vote
1 answer
508 views

How to retrieve a GL2 instance?

I am currently writting a game with the JOGL bindings to use OpenGL but I am so struggling on this. I need to initialize my vaos and vbos (for each component) using the GL2 variable that I collected ...
6 votes
2 answers
1k views

Is calling glFinish necessary when synchronizing resources between OpenGL contexts?

I am using two OpenGL contexts in my application. The first one is used to render data, the second one to background load and generate VBOs and textures. When my loading context generates a VBO and ...
Ebatsin's user avatar
  • 601
1 vote
1 answer
2k views

Use Qt3D offscreen-rendered texture in OpenGL

Goal I'd like to implement an actual widget for Qt3D since QWidget::createWindowContainer just doesn't cut it for me. Problem Description My first approach of letting a new class subclass QWidget and ...
2 votes
2 answers
3k views

How Do I Initialize OpenGL.NET with GLFW.Net?

I am trying to use OpenGL and GLFW in C#. I Have Installed NuGet Packages for GLFW.Net and OpenGL.Net. What I cannot for my life figure out, is how do I setup the context for OpenGL.Net with GLFW.Net??...
0 votes
1 answer
372 views

crash from context shared QOpenGLWidget

I have two QOpenGLWidgets(view1, view2)as children in a top-level widget. Qt document says 'When multiple QOpenGLWidgets are added as children to the same top-level widget, their contexts will share ...
0 votes
1 answer
821 views

Multiple IGraphicsContext with OpenTK / using multiple OpenGL contexts in a single window

What I want to do: The main goal: Use SkiaSharp and OpenTK together. Render 2D and 3D. What is the problem: SkiaSharp messes up the state of OpenGL, so I can't use it for 3D without saving and ...
0 votes
1 answer
1k views

Context sharing not working in opengl with glfw3 and glew, second window acting like the context isn't shared at all [closed]

So i was trying to replicate this example of context sharing from glfw with glfw, glew and opengl in c++: https://github.com/glfw/glfw/blob/master/examples/sharing.c. The second window isn't showing ...
2 votes
1 answer
4k views

How to render to multiple windows using a single OpenGL context?

I created two windows using GLFW. The first window has an OpenGL context and the second one doesn't. What I want to do is render the same scene to both windows using a single OpenGL context. Something ...
0 votes
1 answer
1k views

Check if gl context was destroyed

Is there way to detect if opengl context was disposed when user has pressed home button?Currently I always recreate whole glSurface in onResume method.Also there is setPreserveEGLContextOnPause which ...
0 votes
1 answer
210 views

glClearColor raised exception TOpenGLComponent Lazarus

I use Lazarus (under Linux) Please anybody help me. I have problem. I have install LasOpenGLContext. There is "OpenGL Controll" at components panel. And I wish to draw a simple cube. But I can not do ...

15 30 50 per page
1
2 3 4 5 6

AltStyle によって変換されたページ (->オリジナル) /