An EAGLContext object manages the state information, commands, and resources needed to draw using OpenGL ES.
Questions tagged [eaglcontext]
30 questions
1
vote
0 answers
drawImage() different on iPad and iPhone?
I have a glView which is 51x51px like this.
...
glContext = EAGLContext(API: .OpenGLES2)
glView = GLKView()
glView.context = glContext
ciContext = CIContext(EAGLContext: glContext)
glView.layer.borderColor =…

Chris
- 1,231
- 2
- 10
- 20
1
vote
0 answers
Find out when OpenGL ES content is actually displayed on iOS
When using a EAGLContext with render buffer storage in a CAEAGLLayer, after calling presentRenderbuffer,
1) Is the appearance of the buffer synchronized with vertical screen refresh?
2) How can I get a timestamp for the start of the vertical scan…

devx
- 307
- 1
- 14
1
vote
0 answers
Should I recreate the EAGL context when handling an handleScreenDidConnectNotification?
I am attempting to handle handleScreenDid(Dis)ConnectNotification's in iOS. The problem I have is that I get an error of GL_INVALID_FRAMEBUFFER_OPERATION from non-specific glFunctions() in my application 2 frames after handling a…

ashleysmithgpu
- 1,867
- 20
- 39
1
vote
1 answer
UIScrollView with multiple GLPaint's drawing view as subview ; Screen Capture
I have a UIScrollView, with multiple drawable views as subviews. I am using Apple's GLPaint code. My problem is when I capture the UIScrollView's content to form an UIImage, the state of my drawing view is not captured. Below is the code I use for…
user1258958
1
vote
1 answer
GLKViewController (GLKView) glReadPixels return black pixels after iO6
I'm using GLKViewController with a GLKView, on ios5 works fine, after io6 update glReadPixels stopped to work, and return only black pixels.
I read something about preserveBackBuffer, but o success yet
My setup of GLKView:
_context = [[EAGLContext…

GTSouza
- 365
- 4
- 16
1
vote
1 answer
Xcode Screenshot EAGLContext
Possible Duplicate:
How to get UIImage from EAGLView?
So I was just wondering if anybody knows any way to save what is stored in an EAGLContext as a UIImage.
I am currently using:
UIGraphicsBeginImageContext(CGSizeMake(768, 1024));
[self.layer…

Matthew Hallatt
- 1,310
- 12
- 24
0
votes
2 answers
Using the same EAGLContext across different ViewControllers/EAGLViews
I'm having some issues using the same EAGLContext across EAGLViews. I have two View Controllers, each one has one EAGLView.
Each View Controller allocates a new EAGLContext, and a subsequent framebuffer/colorbuffer is created for each respective…

Nuno Miguel Fonseca
- 153
- 1
- 12
0
votes
0 answers
EAGLContext to UIImage
In objective-C, I was able to render the EAGLContext to UIImage using glReadPixels to read the pixel data from the framebuffer, creating a CGImage using the pixel data, and then retrieving a UIImage from the context.
I am trying a new method in…

CTRLALTDELx64
- 93
- 1
- 7
0
votes
1 answer
One EAGLContext causes another EAGLContext not towork with iOS OpenGL
I have two classes to show different CIImage. They both have the same way to create OpenGL objects like in the following example.
_context = [[EAGLContext alloc]initWithAPI:kEAGLRenderingAPIOpenGLES3];
_coreImageContext = [CIContext…

Lawrence Zhang
- 11
- 4
0
votes
0 answers
How multiple OpenGL views share single GL_RENDERBUFFER in iOS
Let's say I have two views need to present the same OpenGL content in renderBuffer. How do I bind this two view's CAEAGLLayer to the renderBuffer?renderbufferStorage:fromDrawable: just bind the last CAEAGLLayer to GL_RENDEARBUFFER.

ooOlly
- 1,997
- 21
- 31
0
votes
1 answer
GPUImage work with other OpenGL Context failed
In my projiect , I get a opaque filter framework which based on GPUImage.
I wanna create an app can have a video call just like FaceTime,so I use this filter framework provided OpenGL ViewA to render camera image,Using my own openGL viewB to render…

ooOlly
- 1,997
- 21
- 31
0
votes
2 answers
Using UIImagePickerController in the game
I want to make a game, where the user can touch a picture of a TV and then choose a picture from their photo library.
I had success working with UITextFields, adding them to my EAGLView as subviews But I haven't been able to do the same thing with…

José Joel.
- 2,040
- 6
- 28
- 46
0
votes
0 answers
GLKView won't change pixel format
There is an issue of GLKView, I'm stuck here a lot. First, I create EAGLContext context and make it current:
EAGLContext* pOpenGLContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES3];
if(!pOpenGLContext)
return…

Andrey Mironov
- 1
- 2
0
votes
1 answer
CGMutuablePath and GLPaint
Referring to this question :OpenGL ES Fill Effect
I am trying to do the samething , but I have Custom UIView , which contains different CGMutuablePath and only drawing is enabled in selected UIView.
I have used GLPaint, PaintingView class and…

Asema Hassan
- 1
- 1
0
votes
1 answer
Ios how to draw UIImage in EAGLContext?
i'm doing an "finger drawing app". I'm using Apple's example [here][1].
But i want to add an undo option. In order to do this, i'm saving the EAGLContext content into an image every time the app handles the end of a touch event.
The problem comes…

user1078065
- 412
- 1
- 5
- 19