Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
147 views

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 ...
user29880284's user avatar
0 votes
1 answer
140 views

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 ...
PossibleMaybe's user avatar
1 vote
0 answers
145 views

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
786 views

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) =...
Paul Aner's user avatar
  • 543
6 votes
1 answer
3k views

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 ...
Miloslav Číž's user avatar
1 vote
1 answer
513 views

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 ...
Amaury Le Roux Dupeyron's user avatar
6 votes
2 answers
1k views

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

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 ...
Florian Blume's user avatar
2 votes
2 answers
3k views

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??...
PixelRifts's user avatar
0 votes
1 answer
374 views

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 ...
slyx's user avatar
  • 2,326
0 votes
1 answer
829 views

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 ...
Daniel Bişar's user avatar
0 votes
1 answer
1k views

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 ...
Error 1000's user avatar
2 votes
1 answer
4k views

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 ...
Tudor Lechintan's user avatar
0 votes
1 answer
1k views

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 ...
undefined's user avatar
  • 685
0 votes
1 answer
210 views

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 ...
user2032083's user avatar
3 votes
1 answer
5k views

I am working on a project that will use OpenCL to render graphics for display in a QOpenGLWidget. The recommended way to do this seems to be creating a second QOpenGLContext beside the one already ...
Mr. Developerdude's user avatar
3 votes
2 answers
2k views

I've the following problem : I want to get an application composed of many view which render a common OpenGL scene from a different point of view, illumination, and others options. Basically, my ...
Boris RAYMOND's user avatar
0 votes
1 answer
465 views

When i do this: import OpenGLContext its importing, there is no problem. But when i write from OpenGLContext import testingcontext its giving an error: Traceback (most recent call last): File ...
teoman's user avatar
  • 969
0 votes
0 answers
133 views

My question is - do I really need to dispose and reload my textures when I show interstitial ads? The situation is - when I am showing Interstitial ads (e.g. from Admob) in my game, my pause and ...
IdeasAreBulletProof's user avatar
2 votes
2 answers
2k views

I trying to render an OSG scene into a image in my Qt program. Refer to the example of SnapImageDrawCallback(https://www.mail-archive.com/[email protected]/msg45360.html). class ...
Shengwei Zhang's user avatar
2 votes
1 answer
89 views

I have a Qt OpenGL application that uses a QOpenGLWidget to render content. In another class (let's call it Resources), I want to create OpenGL resources like VBOs, VAO, shader programs, etc. for this ...
Nico Schertler's user avatar
5 votes
1 answer
863 views

In Apple's documentation, I read this: 1 — "Shared contexts share all texture objects, display lists, vertex programs, fragment programs, and buffer objects created before and after sharing is ...
jlstrecker's user avatar
  • 5,053
2 votes
1 answer
2k views

(Sorry in advance for the seemingly large amount of code here) I'm trying to create a window with an OpenGL context with Cocoa, but I'm finding that I am unable to set the view property of the ...
KFox's user avatar
  • 1,276
0 votes
1 answer
893 views

I'm working on a cross platform renderer for PC (Windows, Linux, Mac) and iOS. The iOS part is currently built around OpenGL ES 2.0 and I wanted to upgrade to ES 3.0. So I replaced the following line (...
Ben's user avatar
  • 109
0 votes
1 answer
515 views

I need to add the EGL_RECORDABLE_ANDROID attribute to the existing OpenGL context. Is it possible to get the list of the current attributes for the current context and add the extra attribute to the ...
user2021070's user avatar
0 votes
1 answer
435 views

I want to have my window event loop in my main thread and everything else running in a separate thread. The loop looks like this: void loop(sf::RenderWindow& window) { //I need the context ...
Cley1955's user avatar
3 votes
1 answer
705 views

I'm currently writing a smoke simulation in OpenCL where I use OpenGL (freeglut) to visualize the smoke. My computer is a Asus Zenbook with a Intel i7 CPU and a Intel HD 4000 GPU which are both "...
Ferenziz's user avatar
  • 224
0 votes
2 answers
1k views

We are migrating our project from Qt 4.8 to 5.4. We use multiple contexts in multiple thread. We use GLEW MX for this purpose (We make the context we desire current then call glewInit() on a local ...
agrum's user avatar
  • 397
1 vote
1 answer
2k views

I'm trying to add an OpenGL context to a NSWindow, but for some reason it doesn't work. It creates and shows the NSWindow correctly when I run the app, but I can't do anything with the OpenGL context, ...
user avatar
1 vote
0 answers
133 views

How can I get HGLRC from QQuickView in qml 5.3 application? I have a program on openGL in windows which I want render to my QQuickView. The problem is that I don't want to touch render process in ...
Kirill's user avatar
  • 21
0 votes
1 answer
4k views

I am trying to install PyOpenGL and so far have tried the following ways: $ pip install PyOpenGL PyOpenGL_accelerate $ sudo python2.7 -m pip install PyOpenGL PyOpenGL_accelerate Some variations of ...
HemnesMirrorball's user avatar
1 vote
1 answer
960 views

After showing + closing an ad from Mopub in a Cocos2d-x 3.0 Android game, logcat shows these errors: E/libEGL (13772): call to OpenGL ES API with no current context (logged once per thread) W/...
SundayMonday's user avatar
  • 19.9k
-3 votes
1 answer
681 views

I search a win32 wrapper libraray that completly isolate me from the api. I only want to create a opengl 3.3 window for windows only. I know there are libraries like GLFW, SFML and SDL but this ...
user3325226's user avatar
1 vote
1 answer
501 views

I am trying to use OpenGL with shared context (because of sharing textures between windows) via FreeGLUT library... It work fine, I can share textures, but i failed on the end of program or during ...
user2176700's user avatar
1 vote
1 answer
2k views

I want to create OpenGL 1.2 context, but I get this error: "Failed to open GLFW window". When I create 3.3 or 4.3 context there is no problem. How can I create 1.2 context? glfwWindowHint(...
user3817833's user avatar
1 vote
1 answer
1k views

If I create a QGLWidget, and then I allocate my own textures using something like glGenTextures, glTex2DImage, etc, will all that texture data get cleaned up when I delete the widget? (Also, I will ...
Bobby Pardridge's user avatar
3 votes
1 answer
3k views

My program starts with a loading window while it is compiling shaders, loading textures etc. I then want to be able to launch a fullscreen application and use these resources. My understanding is that ...
George Broughton's user avatar
4 votes
1 answer
6k views

I have a Windows app which can create several view windows which can render some models using OpenGL (3.2+). Each window can either render it's own independent object, or two (or more) windows can ...
Bjoern's user avatar
  • 633
0 votes
1 answer
119 views

I'm experiencing problems since I'm calling cuGLGetDevices() on an application which uses the glXGetCurrentContext (https://www.opengl.org/sdk/docs/man2/xhtml/glXGetCurrentContext.xml) function to ...
user3489280's user avatar
0 votes
1 answer
311 views

I'm trying to develop an Apache2 module that utilizes OpenGL to perform off-screen rendering and dynamically generate images that I can then send back to the client. Apache2 is running on an Ubuntu ...
informer2000's user avatar
1 vote
1 answer
223 views

First some background (I always like when people asking questions give that): I am writing a library project. It is a simple OpenGL 'graphics distortions' library. Users are supposed to be able to ...
Utumno's user avatar
  • 21
3 votes
2 answers
852 views

Our game requires that several large textures are built up dynamically from small images, and we don't keep a data copy of the textures, we just use OpenGL with glTexSubImage2d to update the actual ...
user3162134's user avatar
2 votes
1 answer
1k views

I have issues with OpenGL ES context loss under LibGDX, so I'm trying to figure out how to solve the problem. My first step was to actually re-initialize all my textures when the resume function is ...
user avatar
0 votes
1 answer
786 views

I am in the process of updating our ancient OpenGL code. It is a Windows system and I am using GLEW. The OpenGL version is 4.4 (previously, the way the context was created limited us to 1.1). The code ...
Little Endian's user avatar
2 votes
1 answer
1k views

I am initiating the display, the renderer and the OGL context off of the display. None of these gives an error, following is how I create these elements. if (SDL_Init(SDL_INIT_EVERYTHING) < 0) {...
user1800978's user avatar
1 vote
1 answer
3k views

I try to write down code from this tutorial. I have the code of InitializeOGL(): bool Ogl::InitializeOGL(bool vSync) { cout<<"Init OpenGL"<<endl; int pixelFormat; ...
CppMonster's user avatar
  • 1,326
4 votes
1 answer
1k views

We have a 3D rendering window created using GLFW and we want to use QWebkit for displaying a QWebPage inside the rendering (aka render the QWebPage to an OpenGL texture). Using only the CPU version is ...
Artificial Mind's user avatar
6 votes
1 answer
2k views

I am creating an application using SDL2 & OpenGL, and it worked fine on 3 different computers. But on another computer (an updated arch linux), it doesn't, and it crashes with this error: OpenGL ...
MiJyn's user avatar
  • 6,037
0 votes
1 answer
153 views

I'm currently using OpenGL to display my QTMovie's frames into an NSOpenGLView. In order to do that, I'm creating a texture context with the following code: // Called from a subclass of NSOpenGLView ...
guitarflow's user avatar
  • 2,970
4 votes
1 answer
458 views

In my code I have a wrapper class for an object backed by two buffer objects and a vertex array object. I generate them using this in the constructor (slightly simplified): glGenVertexArrays(1, &...
dascandy's user avatar
  • 7,320