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
0 answers

UnifeyeMobileViewController glView camera view is not rotating in iPhone

in my iPhone application, I am using metaio sdk with UnfieyeMobileViewController. I have customized the view to show the camera view on the EAGLView component, and its works fine. The issue the when rotate the device, the camera orientation is not…
Mithuzz
  • 1,091
  • 14
  • 43
1
vote
1 answer

GLKit GLKVertexAttribColor: Dynamically changing colours

So As objects get further away from me I want to apply a fade. The objects are textured. I believe the colour of the object is controlled via this line glVertexAttribPointer(GLKVertexAttribColor, 4, GL_FLOAT, GL_FALSE, sizeof(Vertex), (const GLvoid…
Burf2000
  • 5,001
  • 14
  • 58
  • 117
1
vote
0 answers

Check iOS XCode Project Files: openGL Particle Emitter for GLKit

I am trying to port the Particle Emitter by Michael Daley to GLKView and found a XCode project where he did this on github - unfortunately heavily bound inside a nice little game. Now I tried to take only the particle emitter out of his game project…
headkit
  • 3,307
  • 4
  • 53
  • 99
1
vote
2 answers

Can I get the color of the pixel at a Touch Point on an EAGLView

I want to get the color of the Pixel at a specific Touch Point on an EAGLView. Is this possible, and if so, how?
RexOnRoids
  • 14,002
  • 33
  • 96
  • 136
0
votes
1 answer

How to Display ngmoco's Fireworks App Over a UIImageView?

Tim Omernick from ngmoco recently gave a talk at Stanford and demonstrated an interesting fireworks app for the iPhone that he posted up the code for here: gamemakers.ngmoco.com/post/111712416/stanford-university-and-apple-were-kind-enough-to I can…
schwabr
0
votes
1 answer

iOS: Creating an overlay on top of an EAGLView / GLKView

I'm trying to create an overlay on top of a GLKView (effectively an EAGLView). I'm aware of the performance impact, but in my situation that's not a problem, since the scene is paused in the background, it merely needs to remain visible. I've…
KomodoDave
  • 7,239
  • 10
  • 60
  • 92
0
votes
2 answers

UINavigationController and pushing an openGL UIView = never ending loops

I am trying to push an opengl UIView to my navigation controller like this GraphViewController *gvc = [[GraphViewController alloc] initWithTicker:[listOfItems objectAtIndex:indexPath.row]]; [self.navigationController pushViewController:gvc…
Submerged
  • 646
  • 1
  • 10
  • 16
0
votes
2 answers

Cocos2d: Memory issue when switching between scenes ([EAGLView swapbuffers])

I'm using cocos2d and ran into the following problem: The first time I initialize a scene I start with: [[CCDirector sharedDirector] runWithScene: [MenuScene node]]; When switching between scenes, I always use: [[CCDirector sharedDirector]…
dschihejns
  • 279
  • 1
  • 2
  • 14
0
votes
1 answer

Accessing a subview from an EAGLView subview

I'm not even sure that it even matters whether or not the subview is an EAGLView, but I'll try to explain anyway: In my application delegate didFinishLaunchingWithOptions() function, I have the following code (some parts omitted since I dont think…
kurisukun
  • 3,149
  • 5
  • 37
  • 69
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…
0
votes
1 answer

Should Cocos2D take EAGLview from openFrameworks, or vice versa?

Trying to get Cocos2D and openFrameworks to play nicely together on iOS. Both want to use GL / EAGLview, and of course they can't just both do glView = [[EAGLView alloc] init] because you can't have two root views. One has to init and the other one…
buildsucceeded
  • 4,203
  • 4
  • 34
  • 72
0
votes
0 answers

How can I refresh EAGLView in tabbar?

I am writing a tabbar app. I am entering some values in the first view (usual UIView). I want drawing to change in the second view in the tabbar (This is an EAGLView). This code so far draws default constructor (or default values) very well.…
meghaljani
  • 61
  • 9
0
votes
1 answer

Two libraries extend EAGLview and I want to use them both. How?

openFrameworks and cocos2d both have a wrapper for EAGLview.h, and of course you can't just use both. Just adding both libraries (libcocos2d.a and libofxiPhone_iphoneos_Release.a) to my project gives a linker error: ld: duplicate symbol…
buildsucceeded
  • 4,203
  • 4
  • 34
  • 72
0
votes
2 answers

Force redraw with CADisplayLink

I'm currently using CADisplayLink to show an OpenGL animation which works great. Sometimes, however a parameter changes and I need to redraw the view immediately and can't wait until the next frame is requested by CADisplayLink. If I don't do that,…
hanno
  • 6,401
  • 8
  • 48
  • 80
0
votes
1 answer

Forcing keyboard and sub-view orientation on iOS (iPad / iPhone)

We are just putting user input into our game so the user can enter email address etc. The entire game is Gl with no iOS UI at all. The EAGLView does not change orientation, it is always in portrait, however the game is in landscape and we handle…
MrMaxP
  • 503
  • 5
  • 17