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

  • Home
  • SEARCH
  • 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 5973395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:47:39+00:00 2026-05-22T20:47:39+00:00

In Xcode 4, the OpenGL ES template/boilerplate is different from previous versions. (All of

  • 0

In Xcode 4, the OpenGL ES template/boilerplate is different from previous versions. (All of the tutorials I have read and watched use Xcode 3.X) When I start a new project, there is no ES1renderer or ES2renderer. All of the code that is usually found in these classes is found in ViewContoller. My question is: should I create those classes myself, or just place my code in the ViewController? (I’m new to OpenGL ES–and iPhone development for that matter–so be gentle).

  • 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-05-22T20:47:40+00:00Added an answer on May 22, 2026 at 8:47 pm

    The old template neatly divided ES 1.1 code from 2.0 code. That makes sense because the two APIs are very different in significant ways. However, it’s rare that a shipping app actually supports both — normally you’ll either go 1.1 and limit yourself in some visual respects or 2.0 and limit yourself in hardware support. 2.0 is available from the iPhone 3GS onwards and on all iPads, but not on the lowest capacity last generation iPod Touch (ie, the one that stopped being current in September 2010) so there are some people who’ve owned for less than a year that you’ll be eliminating from your potential customer pool.

    The new template takes that issue out of the (latest) sample EAGLView. You have to hand it a suitable context, and then it does only context neutral things. The ES 1.1 or 2.0 logic is now in the view controller. Lines 43 to 57 ensure a suitable context is created for the latest supported version of GLES, line 187 branches depending on the API in use.

    The CADisplayLink for timing is also now in the view controller.

    So for library, boilerplate code you’d probably want something like the new EAGLView, which makes no assumptions about API or about how you’ll push graphics to it. In terms of how you’ll draw, you’ll probably just want to pick a horse, and implement either ES1 or ES2.

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

Sidebar

Related Questions

I have included the opengl.framework and glut.framework from /systems/library/framework into my xcode project. However
I use xcode Opengl App template to create a sample. I am new to
I'm just using the opengl SDL template with Xcode, and everything runs fine. I
XCode's OpenGL template seems to be cheating to solve this stretched viewport problem I've
I was looking at the template for OpenGL ES 2.0 in Xcode, and I
I have xcode 3.2.5 x64. Im creating a standard iphone openglES template application. By
I am programming in Xcode / OpenGL and have some 3d objects displayed in
I'm running on XCode and using OpenGL ES 1.1 and I have two classes
Xcode allows you to create automated scripts for performing repetitive tasks. What scripts have
In Xcode, I can use CMD - R to run (or CMD - Y

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.