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

Calculate FPS in opengl game for iphone ( EAGLView )

I used the apple's crash landing example as base to program some small games for iphone. Now i would like to meassure the frames per second in my games. I'm curious about how can I calculate the FPS per second, can anyone help me to understand or…
José Joel.
  • 2,040
  • 6
  • 28
  • 46
0
votes
1 answer

How co call methods of EAGLView from ES1Renderer?

Using the standard OpenGL ES iPad pattern we get such 'structure'. I've read some about delegating, protocols, but still got no direct answer for this particular purpose. Please enlighten me. Why would I need this? Well all the action goes on in…
Tom
  • 261
  • 2
  • 17
0
votes
1 answer

Limitation in EAGLView

Can I increase the frame of EAGLView(I am setting CGRectMake(0,0,320*3,480*3) above 1024, If i set frame above 1024 it works correctly in iOS 4.2 but in iOS 4.1 devices its not working if i set frame above 1024. DO i need to add any extra code for…
Chandan Shetty SP
  • 5,087
  • 6
  • 42
  • 63
0
votes
1 answer

glReadPixels returns incorrect image for iPhone 6, but works ok for iPad and iPhone 5

I'm using following code for reading on image from OpenGL ES scene: - (UIImage *)drawableToCGImage { CGRect myRect = self.bounds; NSInteger myDataLength = myRect.size.width * myRect.size.height * 4; glFinish(); glPixelStorei(GL_PACK_ALIGNMENT,…
Sashucity
  • 21
  • 4
0
votes
2 answers

Using UIImagePickerController in the game

I want to make a game, where the user can touch a picture of a TV and then choose a picture from their photo library. I had success working with UITextFields, adding them to my EAGLView as subviews But I haven't been able to do the same thing with…
0
votes
1 answer

Older EAGLView based apps are rendering 25% up and to the left on iPad Air (Landscape)

I am getting a very odd anomaly with iOS 8 where my screen is rendered 25% up and to the left... I check all the values coming from bounds etc and all seems correct. My project is based on the old EAGLview code, and I have tried using xib (which…
swuth
  • 31
  • 8
0
votes
1 answer

Take snapshot of the CCGLView

I want to take snapshot of the content in CCGLView in my viewController and display the resultant image in the same viewController. Right now I'm using the following method to do so : -(UIImage *) drawableToCGImage{ GLint backingWidth2,…
Chengappa C D
  • 1,841
  • 1
  • 12
  • 19
0
votes
3 answers

NSUserDefaults storing null image value

I have EAGLview to display overlay image and taking screenshot then save this in NSUserDefaults for retrieve from viewcontroller. But when i store the image into photo album it storing but it's not storing to NSUserDefaults. So, i'm getting NULL…
user3743552
  • 143
  • 3
  • 13
0
votes
4 answers

How to pass EAGLView UIButton frame to viewcontroller

I have EAGLView and it's UIButton. In ViewController i need to display the same button in landscape mode with click event what it has in EAGLView. I tried to set [eaglView.save setFrame:CGRectMake(360, 10, 40, 40)]; but the size is not changing in…
0
votes
1 answer

Receive touch event for subview

I have BooksEAGLView and it has UIButton for receiving touch event. Then my purpose of Augmented Reality overlay I am adding overlay view to BooksEAGLView then my button is not receiving touch event. How can i get touch event of both…
user3496826
  • 101
  • 2
  • 14
0
votes
0 answers

Button click event is not reponding

I'm working with vuforia augmented Reality app. I'm displaying a button in EAGLView. But the button is not responding to click event. I have to get screenshot of what augmenting in top of overlay while ImageTarget is detect. After image recognize…
user3496826
  • 101
  • 2
  • 14
0
votes
0 answers

I can't hide my EAGLView object for accessibility tools

I created a cocos2d-x project and there is a class called AppController.mm where an EAGLView object (__glView) is created. The accessibility of __glView is set to true/yes by default but I want it to be false/no so I can access my elements which are…
Southgarden116
  • 311
  • 3
  • 16
0
votes
1 answer

How can I display my UIImage on an EAGLView (iPhone)?

I have a UIImage. I have an EAGLView in my app, which is a derivative of the GLPaint ("Shake Me!") sample program. The UIImage is full-screen (320x480.) Actually, it's a screen-capture of the EAGLView's image from earlier in the program (like in…
Olie
  • 24,597
  • 18
  • 99
  • 131
0
votes
1 answer

iOS app: OpenGL Views within Storyboard-based Application

I have been working on an iOS, OpenGL-based app for the past few months. During this time, I have created both the main UIWindow and a single UIView in code, as opposed to using a storyboard. An important item to note is that I create an instance…
0
votes
2 answers

how to display ad banner (buzzcity) in cocos2d project?

is there a way to put UIView by converting it to EAGLView or should i have to add CAlayer ? whats the best way to do it? any Example codes related to BuzzCity for Cocos2d would be nice what i have found till now---- btnAD = [CCMenuItemImage…
Ashish P
  • 1,463
  • 1
  • 20
  • 29