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
2
votes
1 answer

EAGLView transparency frames per second

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: [viewController setView:glView]; with [[viewController view]…
eric.mitchell
  • 8,817
  • 12
  • 54
  • 92
2
votes
0 answers

iOS: The grey screen between Default.png and the first OpenGL ES frame

I'm trying to port my previous openGL iPhone app to use Xcode's new OpenGL ES template, which uses CADisplayLink. WHat I've noticed is that after Default.png is displayed, and before the first frame is drawn, there is a grey screen in between that…
kamziro
  • 7,882
  • 9
  • 55
  • 78
2
votes
0 answers

EAGLView with CGAffineTransform problem on iOS 4.3

I have a weird problem with OpenGL on iOS 4.3. I have a ViewController with some views and images in the foreground. In the background I have an EAGLView drawn from a CGImage. When I try to pinch, pan or rotate the EAGLView (not the OpenGL object,…
pokmalac
  • 21
  • 1
2
votes
1 answer

iPhone: How much OpenGL cleanup do I need to do when a context goes away?

I several views in an iPhone app which happen to use independent openGL contexts. They are not necessarily long-lived so they go away before the process does. And they have a couple textures in each. Does -releaseing the EAGLContext cause all that…
Ben Zotto
  • 70,108
  • 23
  • 141
  • 204
2
votes
0 answers

Bad access error in EAGLView.mm

I'm getting a weird error in my game. EXC_BAD_ACCESS (code=1, address=0x1) in EAGLView.mm line 319 if(![context_ presentRenderbuffer:GL_RENDERBUFFER]) ***Error { // CCLOG(@"cocos2d: Failed to swap renderbuffer in %s\n",…
hOOks7
  • 71
  • 1
  • 8
2
votes
2 answers

Looking for Tim Omernick's Fireworks iPhone app

Does anyone have the Fireworks app that Tim Omernick (of ngmoco) posted here: gamemakers.ngmoco.com/post/111712416/stanford-university-and-apple-were-kind-enough-to He originally provided a download link to the source code, but the download link is…
spenceGL
  • 21
  • 2
2
votes
1 answer

Can I have multiple full-screen OpenGL views (EAGLView) displayed at the same time on iPhone?

Can I have 2 full-screen EAGLView-s (the OpenGL layer implementation from Apple's sample code), stack them on top of each other, draw on them independently and then see both images? (I suppose the top one will need a glClearColor(0, 0, 0, 0) to be…
Olie
  • 24,597
  • 18
  • 99
  • 131
2
votes
1 answer

iPhone, rotated + EAGLView, rotated =

...frustration. I want my game to be run only in landscape mode. I have added the appropriate key/value to the Info.plist file that forces the device orientation to be correct at launch. I'm now trying to rotate the OpenGL coordinate space to…
randallmeadows
  • 833
  • 1
  • 10
  • 19
2
votes
3 answers

iOS Multi-Touch Not Working

I have the regular OpenGL / EAGL setup going on: @interface EAGLView : UIView { @public EAGLContext* context; } @property (nonatomic, retain) EAGLContext* context; @end @implementation EAGLView @synthesize context; + (Class)layerClass { …
Mike Weir
  • 3,094
  • 1
  • 30
  • 46
2
votes
1 answer

Can I use an EAGLView in my UIViewController?

I have a UIViewController that instantiates several UIImageViews on the screen. Is it possible to instantiate an EAGLView (like the one in the OpenGL ES template in the iPhone SDK) in a similar manner in my View Controller, and possibly have the…
RexOnRoids
  • 14,002
  • 33
  • 96
  • 136
2
votes
2 answers

Screen capture with UIView and background in iOs

In my iPhone app, I am capturing the screen shot of the device. In the screen shot view I have different views with layer hierarchy as, at the bottom a blank background view, then over the background a image view, and over the image view a EAGLView.…
Mithuzz
  • 1,091
  • 14
  • 43
2
votes
2 answers

iPhone - Screenshot of multiple OpenGL (CAEaglelayer) views

I am working on paint app taking reference from GLPaint app. In this app there are two canvas views, one view is moving from left to right (animating) and other view is used as background view (as shown in figure). I am using CAEAGLLayer for…
user392406
  • 1,323
  • 5
  • 28
  • 53
1
vote
1 answer

Attach CCScene to EAGLView

I am trying to attach my CCScene class to my EAGLView. So my EAGLView is an IBOutlet in Class 1. I connected it and settered and gettered it. Then in my ViewDidLoad in my Class 1 I do: [[CCDirector sharedDirector]…
SimplyKiwi
  • 12,376
  • 22
  • 105
  • 191
1
vote
0 answers

Switching from EAGLView to UITableView in iOS

I am working on a map navigation application for the iOS system. I currently have the map loaded in an OpenGL ES 2.0 view, which allows me to scroll etc. On the map I have placed a UIButton which should take me to a UITableView to select a…
1
vote
1 answer

EAGLView to UIImage timing question

I have a EAGLView that I wish to convert into a UIImage. I can do this with the solution posted here: How to get UIImage from EAGLView? However, I can only accomplish this if a small amount of time has gone by between the creation of the EAGLView…
spybart
  • 2,583
  • 3
  • 22
  • 33