Questions tagged [eaglview]

OpenGL view for iOS application.

EAGLView class provides OpenGL ES API. t includes usages of Vertex Buffer Objects (VBOs), Vertex Array Objects (VAOs), Framebuffer Objects (FBO), and GLSL Program Objects. It creates a VAO and VBOs from model data loaded in. It then creates a texture for the model from image data and GLSL shaders from source also loaded in. Finally, it creates an FBO and texture to render a reflection of the model. It uses an environment mapping GLSL program to apply the reflection texture to a plane.

Complete Class

83 questions
1
vote
1 answer

iOS memory warning breaking EAGLView

When I get a memory warning level-1 my EAGLView starts spitting out lines of openGL errors (502 & 506) and the app doesn't crash but the EAGLView becomes unresponsive. the errors are spamming out because of the Cocos2d Director calling draw. This is…
Affian
  • 3,380
  • 5
  • 22
  • 26
1
vote
1 answer

How to make OpenGL ES template with toolbar autorotate

I've been trying to figure out how to do this for several days now with only limited success. I've managed to manually handle NSNotifications that tell me when the view orientation changes, then I use CGAffineTransformations to move my toolbar to…
Davido
  • 2,913
  • 24
  • 38
1
vote
1 answer

destroyFramebuffer method in an openGL app

in my OpenGL type of iphone app, I have this method below in the GLView implementation. i noticed everytime i started up the app during development that the last frame that was present when i shut the app down the last time, would draw first…
hokkuk
  • 675
  • 5
  • 21
1
vote
1 answer

Pause animation in EAGLView which is in a UITableViewCell

I have an animation in a EAGLView which is itself in a UITableViewCell. How can I pause the animation in the EAGLView when the view is not visible? Normally, I would simply use the responsible UIViewController and listen to viewDidDisappear. But…
hanno
  • 6,401
  • 8
  • 48
  • 80
1
vote
1 answer

convert multiple EAGLView to UIImage

I've got an UITableView with 3 EAGLView inside each cell, where the user is able to draw something (following apple GLPaint, i'm just using PaintingView class from that example) I'm trying to convert this 3 EAGLView to 3 distinct UIImage on button…
Gianluca
  • 2,379
  • 3
  • 25
  • 41
1
vote
1 answer

Cocos3D 2.0 and Multiple CCGLViews / GLViews

I have a project that I'm working on that needs to be able to display and interact with several different models. One of these views is full screen (iPad Landscape), and the others are smaller subviews. The issues that I'm currently running across…
dannyskim
  • 165
  • 2
  • 8
1
vote
1 answer

GKPeerPickerController is blank when invoked within EAGLView

I have an EAGLView-based class that runs the following code when a menu selection is made in OpenGL: -(void) startPicker { self.gameState = kStatePicker; GKPeerPickerController *picker = [[GKPeerPickerController alloc] init]; …
1
vote
2 answers

Huge drop in fps with transparent EAGLView

I have a Cocos2d project and I want a constant background throughout the app. In the applicationDidFinishLaunching method of its delegate, I have replaced the line: I have changed the pixelFormat of glView from kEAGLColorFormatRGB565 to…
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

How to overlay GLKView on top of UIImagePickerController

I'm trying to overlay OpenGL ES content, using a GLKView, on top of a live video feed from the camera using a UIImagePickerController. I've read several tutorials, books, and posts but, still can't find the answer. For your reference, some of the…
MikeyE
  • 1,756
  • 1
  • 18
  • 37
1
vote
2 answers

How to get UIImage from texture of an EAGLView?

I am trying to get a UIImage from a texture I loaded into EAGLView using the following way: //Try to get UIImage from EAGLView and assign to imageDataPhoto1 UIGraphicsBeginImageContext(myEAGLView.bounds.size); [myEAGLView.layer…
RexOnRoids
  • 14,002
  • 33
  • 96
  • 136
1
vote
0 answers

iOS: Background color of view using openGL

I currently have an app that, on one view controller, has a subview which in turn has an openGL eagl layer that I render video to. My problem is that presently, whenever this view loads in or unloads (whether because you open a view in a deeper…
Doc
  • 1,480
  • 2
  • 16
  • 28
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
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
0 answers

Set background for 320 * 70 EAGLView

I want to set the background image for 320 * 70 EAGLView (using openGL). I set glOrthof(0, backingWidth, 0, backingHeight, -1.0f, 1.0f); where backingWidth = 320; backingHeight = 70; Sorry if my issue is obvious or some of the points are…
Inspiration
  • 65
  • 1
  • 8