Questions tagged [glkview]

The GLKView class simplifies the effort required to create an OpenGL ES application by providing a default implementation of an OpenGL ES-aware view in iOS 5.0 and later.

GLKView class simplifies the effort required to create an OpenGL ES application by providing a default implementation of an OpenGL ES-aware view. A GLKView directly manages a framebuffer object on developer application’s behalf; developer's application simply needs to draw into the framebuffer when the contents need to be updated.

79 questions
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…
0
votes
2 answers

Texture Cache not rendering into Frame buffer Object in iOS

I have been working on getting screenshot from OpenGL and then also rendering the same on screen. For this purpose i have created two framebuffers. 1 For rendering(ratinaFramebuffer) and 1 for using the apple texture cache…
0
votes
1 answer

Snapshot fails on some iOS devices

I've got an app where I have a GLKit View Controller. I need to get a snapshot of the GL view. I'm using: glImage = [(GLKView *)self.view snapshot] ; where glImage is a UIImage. It works fine every time on my iPhone 5s (iOS 8.1), but just gives a…
Phil John
  • 1,225
  • 1
  • 15
  • 24
0
votes
1 answer

Property 'layer' not found on object of type GLKView

Property 'layer' not found on object of type 'ViewController * where ViewController is of type GLKView and also I am importing following files in my opengl project QuartzCore/QuartzCore.h OpenGLES/ES2/gl.h OpenGLES/ES2/glext.h Code for…
user1722889
0
votes
0 answers

Ghost effect using Open GLES

I am working with a sample application like vine. My requirement is that I have to create a 'ghost' filter for video as in vine. Actual requirement is -Record a video on long press on the view -On pause of record, I need to show the last frame of…
QUserS
  • 512
  • 5
  • 13
0
votes
0 answers

Why don't repeated calls to glDrawArrays appear to be drawing in a GLKView on iOS?

I am attempting to redraw with the same arrays using glDrawArrays in a GLKView on iOS. When I comment out any two of these calls, the other draw call draws as I expect. My last hunch was that I was attempting to draw at the same depth, so I…
Derrick Hathaway
  • 1,087
  • 11
  • 14
0
votes
0 answers

Multisample framebuffer failed to make in GLKView error 8cdd

I'm currently creating a GLKView that is above another view where i draw some lines on. But i have got a strange problem. For my task i need to use multi-sampling which is done by this line self.drawableMultisample =…
Muarl
  • 1,977
  • 1
  • 14
  • 18
0
votes
1 answer

UIImage behind GLKView

i'm trying to create a signature with touch inputs using a GLKView. But now i need a UIImage to be below the signature. Short: I want to draw lines above a UIImage using a custom GLKView. The problem is that my line gets drawn below the image every…
Muarl
  • 1,977
  • 1
  • 14
  • 18
0
votes
1 answer

How can I use GLKView to draw at a lower resolution?

I have an app based on "OpenGL Game" Xcode template, for everyday testing/dev I would like to render full screen but at lower resolution in simulator (e.g. 1/2 or 1/4). Any efficient/savvy way to put this in place? (in case anybody wonder, I want to…
user234736
0
votes
1 answer

why there is no update in the GLKViewControllerDelegate?

Following an example about GLKViewController, I implemented update callback like the following - (void)update { } But I checked the source, looks like there is no update message defined, why I can use update? @protocol GLKViewDelegate…
Adam Lee
  • 24,710
  • 51
  • 156
  • 236
0
votes
1 answer

Why am I unable to create a view controller with two child view controllers using OpenGL?

I'm new to view controllers with OpenGL, but I want to present a view controller with two child view controllers (the user only sees the two child view controllers) which both display some graphics using OpenGL. I have no idea why what I'm doing is…
0
votes
0 answers

GLKViewControl, Storyboard and tap events

I have a problem with a GLKViewController (subclass) used in a Storyboard: it refuses to handle tap events. I added a Tap Gesture Recognizer to the GLKViewController (subclass) in the Storyboard and linked it to a 'tapDetected' method: - (IBAction)…
Antonio Sesto
  • 2,868
  • 5
  • 33
  • 51
0
votes
1 answer

Adding GLKView via storyboard and programatically

I am adding a GLKView to a UIView within a UIViewController. Eventually I will split the code out to use a UIViewController and GLKViewController, but for now my hands are tied and need to use the UIViewController. My issue is that when I add the…
Joe Andolina
  • 648
  • 1
  • 11
  • 23
0
votes
1 answer

GLKView zooming over Navigation Bar

I have a GLKView (OpenGL ES2.0) between a navigation bar on the top and a tool bar at the bottom of my iOS app window. I have implemented pinch zoom using UIPinchGestureRecognizer but when I zoom out a good extent, my view runs over the top…
0
votes
1 answer

viewWillAppear blocks all Animations

I have a GLKView because I use some OpenGLES for some animations with some graphics. All these animations are working very good until I implement a viewWillAppear method. I have two timers intialized in the viewDidLoad: updateTimer = [NSTimer…
Mulgard
  • 9,877
  • 34
  • 129
  • 232