Questions tagged [caeagllayer]
15 questions
16
votes
1 answer
Why does UIScrollView pause my CADisplayLink?
I have a view backed by a CAEAGLLayer, which is inside a UIScrollView. When I begin scrolling, the CADisplayLink that calls the -draw method of openGL view stops getting called.
I verified that my runloop start / stop methods don't get called when…

Proud Member
- 40,078
- 47
- 146
- 231
6
votes
1 answer
How to halt concurrent OpenGL drawing during app backgrounding?
As soon as app goes to background it must stop calling OpenGL functions. But somehow all efforts to stop OpenGL fail and my app often (but not always) crashes when user presses the home button.
It crashes with
Exception Type: EXC_BAD_ACCESS Code:…

openfrog
- 40,201
- 65
- 225
- 373
4
votes
2 answers
how to set up CAEAGLLayer subclass with openGL context: Current draw framebuffer is invalid
I'm trying to set up a CAEAGLLayer subclass with a gl context. That is, instead of creating a UIView subclass which returns a CAEAGLLayer and binding a gl context to this layer from within the UIView subclass, I'm directly subclassing the layer and…

SaldaVonSchwartz
- 3,769
- 2
- 41
- 78
3
votes
1 answer
EAGLContext with Core Image Filters
I want to add images to a camera video feed in real time, but there is only need to display them, no need to save. If I use standard Core Image procedure it works fine but I need more frame rate. But if I uncomment this code and comment next it…

Carlos Pastor
- 531
- 1
- 4
- 18
2
votes
0 answers
Is multiple CAEAGLLayer available in iOS?
I get an OpenGL view by
+ (Class) layerClass
{
return [CAEAGLLayer class];
}
and I want to add sublayer to it by
CAEAGLLayer *eaglLayer2 = [[CAEAGLLayer alloc] init];
[self.layer addSubLayer:eaglLayer2];
The purpose to think this is that I…

Joe Jia
- 109
- 1
- 3
1
vote
1 answer
CAEAGLLayer - OpenGL API's have no effect after Siri input
I'm seeing some pretty funny behavior on iOS 9 beta 5. When Siri is used to speak a string into a UITextView, all my OpenGL calls targeted at my CAEAGLLayer no longer work. There is nothing unusual with the rendering code, it just seems that they…

Joey Carson
- 2,973
- 7
- 36
- 60
1
vote
2 answers
Open GL ES 2.0 renderbufferStorage returns false
I'm trying to create a Framebuffer to display a 3D model in my iOS app but when the framebuffer is created, the renderbufferStorage is returning false. My code is based on GLCameraRipple sample code.
The code to create the frame buffer is the…

sastresa
- 75
- 8
1
vote
1 answer
best approach to constructing an OpenGL ES 2.0 shader-based dynamic chain of filters
I'm on iOS 6 (7 too if you will and makes any difference) and GL ES 2.0.
The idea is for a CAEAGLLayer to have a dynamic chain of shader-based filters that processes its contents property and displays the final result. Filters can be added /…

SaldaVonSchwartz
- 3,769
- 2
- 41
- 78
1
vote
2 answers
Transparent OpenGL CAEAGLLayer
Im trying to render a opengl view (CAEAGLLayer) transparent so i can put a UIView behind it. I'm using the following settings to achieve a transparent opengl background.
CAEAGLLayer* layer = (CAEAGLLayer*)eaglLayer;
layer.opaque =…

user346443
- 4,672
- 15
- 57
- 80
1
vote
0 answers
MKMapView & iOS6, avoid instant update of the map
I have implemented an application that use MKMapView to show satellite map. In my application I need to update the center of the map programmatically together with the transform of the map view. Before iOS 6, this works well. On iOS 6, the two-step…

AGPX
- 364
- 3
- 10
1
vote
0 answers
Changing CAEAGLLayer colors of ios 6 Maps
With the new Apple Maps, the MKMapTileView does no more work and i try to figure out
how to manipulate the Layer (and its content) which is responsible for displaying the whole map. The View/Layer of interest is the VKMapCanvas layer, which is a…

Fry
- 922
- 2
- 10
- 24
0
votes
1 answer
Get empty buffer use glReadPixels with GLKit
In an OpenGL ES app I'm working on, when i use glReadPixels to get pixel but got empty buffer.now i don't know what's wrong in my code。Thanks for any help.
- (void)setTextureImage:(UIImage *)image {
self.textureID = [self…

tanquwell
- 53
- 6
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
0 answers
iPhone OpenGL ES save/load
I'm working from the GLPaint example and have no idea how to implement a "save to" and "load from" a file. I don't want the drawing points, but to save the actual buffer so I can load it later, like a photoshop document or any other popular paint…

The Way
- 594
- 5
- 15
0
votes
1 answer
iPhone 5 CAEAGLLayer returning wrong bounds
For some reason, my OpenGL app is getting the wrong bounds information for CAEAGLLayer when running in the ios6 4-Inch Retina simulator.
The CAEAGLLayer bounds are printed out as
layer bounds are: (0.000000,0.000000), (320.000000,480.000000)
from…

Nitzan Wilnai
- 923
- 9
- 24