Questions tagged [openglcontext]

An OpenGL context represents all of the state associated with an instance of OpenGL. Use this tag for questions about context creation, and use.

An OpenGL context represents all of the state associated with an instance of OpenGL. OpenGL functions are executed within the current context, and modify only the current context.

Reference

See the main help page at https://www.opengl.org/wiki/OpenGL_Context

See Also

Related tags are:

81 questions
0
votes
1 answer

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 it. I get raised an exception class…
user2032083
  • 313
  • 2
  • 4
  • 14
0
votes
1 answer

from OpenGLContext import testingcontext i cant import testingcontext

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 "", line 1, in from…
teoman
  • 959
  • 2
  • 10
  • 21
0
votes
0 answers

Dispose and reload textures when I show interstitial ads?

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 resume methods are called (the ad is shown as a new…
0
votes
1 answer

EAGLContext not work on openGLES 1 iphone os

I have a 3D project based on the EAGLView exemple from Apple. I have a very stange bug with the context ( I think ), my context is create by using : [context renderbufferStorage:GL_RENDERBUFFER_OES fromDrawable:(CAEAGLLayer*)self.layer]; On init…
Pixman
  • 599
  • 6
  • 17
0
votes
1 answer

OpenGl ES 3.0 Context not created on iPad (works in Simulator)

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 (that works) context = [[EAGLContext alloc]…
Ben
  • 109
  • 1
  • 11
0
votes
1 answer

How to change to attributes of the current OpenGL context?

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 list?
0
votes
1 answer

How do I switch the thread of an OpenGL context with SFML 2.2?

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 here while (window.isOpen()) { //Do…
0
votes
2 answers

Qt5 and GLEW MX => glewInit fails

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 instance of GLEWContextStruct). I'm trying to change…
agrum
  • 407
  • 2
  • 16
0
votes
1 answer

Adding an OpenGL Context to Cocoa Window

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, so I presume the context hasn't been correctly…
user4207313
0
votes
1 answer

PyOpenGL on Ubuntu for Python 2.7

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 the above... Installation from source.…
0
votes
1 answer

How to check if a GLXcontext is remote or local

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 query an OpenGL context. The context must be local…
0
votes
1 answer

Windowless OpenGL Context in Apache2 Module

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 12.04 machine and I created a test module that…
informer2000
  • 399
  • 6
  • 20
0
votes
1 answer

Using glColor* with OpenGL version 4.4

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 base is large and so I want to update it in…
Little Endian
  • 784
  • 8
  • 19
0
votes
1 answer

Drawing QTMovie's texture twice with OpenGL

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 QTOpenGLTextureContextCreate(kCFAllocatorDefault, …
guitarflow
  • 2,930
  • 25
  • 38
0
votes
1 answer

Call openGL functions after onPause()

I have an Android java application that uses OpenGL ES 1.1 and I have encountered the following problem: When the application is minimized, onPause() is called on the activity. At this point I would like to preserve one of the GL textures (that I…
Vladimir Gazbarov
  • 860
  • 1
  • 10
  • 25