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 9008063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:51:19+00:00 2026-06-16T01:51:19+00:00

I have been learning and using Objective-C and cocos2d (iOS game-engine) for a couple

  • 0

I have been learning and using Objective-C and cocos2d (iOS game-engine) for a couple of years now and so I decided to start with OpenGL ES for iOS devices. I have started reading a book that covers this topic, however with little background in this area I have to admit that I am a little lost. I am a really practical person and I only learn by doing things myself. The book does give some nice examples, but unfortunately mostly covers triangular shapes.

So, I have a couple of questions regarding OpenGL:

  • Do vertices really need to be declared in a counter-clockwise order to prevent culling ?
  • Does OpenGL really draw all shapes based on triangles ?
  • If so, how would I draw a rectangle ?

I would really appreciate it if somebody could write a quick vertex array sample of how to achieve to draw a rect on the screen. No need for the buffers or anything, really just the vertices of the rectangle.

  • 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-16T01:51:20+00:00Added an answer on June 16, 2026 at 1:51 am

    OpenGl ES 2.0 supports the following rendering types: GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, and GL_TRIANGLES.

    If you ignore the ones for drawing points and lines you can choose between triangle strips, triangle fans and simple triangles. To draw a rectangle you can easily use two triangles.

    To specify the ordering for face culling you can use glFrontFace. However its common practise (as far as i know) to use counter clockwise ordering.

    If you have problems finding good opengl es 2.0 tutorials for ios you should maybe look for some tutorials on some plattforms. WebGL and Android are also using opengl es 2.0 and (except the syntax) the code will look nearly identical.

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

Sidebar

Related Questions

I have been learning Python2.7 for a little bit now. I'm using Windows 7
I'm learning scheme and until now have been using guile. I'm really just learning
I have been learning Scala for the past couple of months and now I
I am learning Javascript, I have been using PHP for about 10 years so
I have been learning iOS development for a few days now. At this moment,
I have been learning VBOs for a couple weeks now, and I have been
I have been learning opengl for about 4-5 months now. I am ready to
I have been learning about Delegation and Data Sources for iOS programming and need
I have been learning python for some time now. While starting this learning python
I have been learning about TDD (using JUnit) and I have a doubt about

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.