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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T12:03:57+00:00 2026-06-02T12:03:57+00:00

I want to parse a model and render 4-vertex polygons (rectangles) in OpenGL ES

  • 0

I want to parse a model and render 4-vertex polygons (rectangles) in OpenGL ES 2.0, and instead of using two triangles I thought of using one triangle strip for each quad/rectangle.

The problem is my rectangles are not connected throughout the model. If I have three quads (12 vertices) I would like to draw them like this (numOfQuadFaces = 3):

glDrawArrays(GL_TRIANGLE_STRIP, 0, numOfQuadFaces*4);

With the vertex array ordered so that the a new quad is begun every four vertex. But of course OpenGL interprets it like a new triangle is begun for every new vertex beyond the third vertex in the array. Can I specify somewhere that I want individual triangle strips/quads of length 4? – So that I draw similar to this (if course in only on glDrawArrays- call):

glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
glDrawArrays(GL_TRIANGLE_STRIP, 4, 4);
glDrawArrays(GL_TRIANGLE_STRIP, 8, 4);
  • 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-02T12:03:58+00:00Added an answer on June 2, 2026 at 12:03 pm

    Your best option is to convert the quads to triangles. In ordinary OpenGL if you used indexed triangle strip, there is glPrimitiveRestartIndex which basically specifies an index that when sent restarts the strip, this isn’t available in OpenGL ES 2.0 though so I guess that’s no help.

    Another option is to connect the “strips” with degenerate triangles, but this will take as much memory as just converting the quads to triangles (two extra vertices).

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

Sidebar

Related Questions

I have an XML file in the drawable-folder. I want parse the XML-file using
Hi I want to parse an excel file using zend framework. I went to
I have class model for XML structure, where i want parse xml into it.
I'm using a multidimensional array in a form and I want to parse these
My back-end has two separate pages, one for handling the model save request and
i have two models binded with section model this two models called (gallery,article),i want
I've made a little forum and I want parse the date on newest posts
I want to parse .csv file which is in public folder, I've tried /../
I want to parse a config file sorta thing, like so: [KEY:Value] [SUBKEY:SubValue] Now
I want to parse some HTML in order to find the values of some

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.