Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7978225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:25:55+00:00 2026-06-04T09:25:55+00:00

According to Apple’s OpenGL ES Programming Guide , If [a] framebuffer is intended to

  • 0

According to Apple’s OpenGL ES Programming Guide, “If [a] framebuffer is intended to be displayed to the user, use a special Core Animation-aware renderbuffer.”

The text goes on to say that to make this Core Animation aware renderbuffer, one needs to “Subclass UIView to create an OpenGL ES view for [the] iOS application [and] Override the layerClass” by using this code:

+ (Class) layerClass
{
    return [CAEAGLLayer class];
}

However, if one examines Apple’s GLCameraRipple example which displays OpenGL to the end user, the layerClass never appears to be overridden. A text search on layerClass or CAEAGLLayer reveals they are missing.

If you look for other approaches to display directly to users, Apple gives two other OpenGL approaches, but both seem to imply that they are not for displaying directly to users but rather are for off-screen rendering. (i.e. “If the framebuffer is used to perform offscreen image processing, attach a renderbuffer. If the framebuffer image is used as an input to a later rendering step, attach a texture.”)

Is there another way to display OpenGL content than using a Core Animation aware renderbuffer – or is Apple somehow overrriding the layer class so the OpenGL content is becoming Core Animation aware in another way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T09:25:57+00:00Added an answer on June 4, 2026 at 9:25 am

    The reason you don’t see a subclassed UIView with a CAEAGLLayer backing it in the GLCameraRipple example is because it uses a GLKView. GLKView is a class introduced in iOS 5.0 as part of GLKit, and it wraps some common code, such as the explicit override to use a CAEAGLLayer and the setup of its matching renderbuffer.

    This is still being done, it’s just abstracted away from you. For displaying OpenGL ES content to the screen, you still need to go through a CAEAGLLayer one way or another.

    Offscreen rendering is a different animal, because there you aren’t attaching to a layer for display, so there’s no layer needed. If you want to render to a texture, attach a texture as a target for your FBO, and that’s it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to Apple's Objective C guide, methods with the same name all use the
According to the Apple UIView Programming Guide, you can only change a uiview's CA
I have MAC OS 10.6 (Snow Leopard) and according to Apple's guide on HTTP
According to Apple's guide line, an iPhone app's launch image/splash screen should be a
According to Apple guidelines: What url should I use to verify my receipt (iOS)?
I'm trying to use CGBitmapContextCreate . According to Apple's documentation the ApplicationServices framework is
According to Apple documentation on debugging Core Data it says we should be able
According to Apple's documentation , @font-face is deprecated for use on the iPhone version
According to Apple's description, the aurioTouch sample app is suppose to get the audio
I need to apply/remove to an input field according to a user's selection in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.