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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:47:01+00:00 2026-05-13T12:47:01+00:00

I have 2 separate renderers, one for 1.1 and another for 2.2 I have

  • 0

I have 2 separate renderers, one for 1.1 and another for 2.2

I have a bunch of Items which hold image information and the texture handle generated by whichever renderer I am using.

Items are just dumb objects and I don’t want to introduce any OpenGL specific functionality into them. The problem is, I need to store their texture handle somewhere. I would like to store it inside each Item, however a handle is of type GLuint.

If I use a GLuint it means including either the gl.h from ES1/ or from ES2/. Now they are both typedef’d as unsigned ints… is it OK to just use an unsigned int? It seems like bad practice… For example if OpenGL 3.0 came out and a GLuint was something completely different, Item would be broken.

Any ideas?

Thanks for reading.

  • 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-13T12:47:01+00:00Added an answer on May 13, 2026 at 12:47 pm

    Subsequent versions of OpenGL are supersets of their previous versions. The OpenGL specific types are meant to hide the underlying systems but be consistent across versions. For example if you have int as a 16 bit then GLuint might be defined as unsigned long.

    Therefore I would say: Go with the smallest common denominator (ES1.1).

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

Sidebar

Related Questions

I have web application which we deployed in a production . We have separate
I have an ASP.Net application which renders sensitive information. The application needs users to
Do I need to have separate/multiple workers to run multiple websites (each with a
What's the best way to have separate CSS for IE and other browsers? I'm
In my ASP.NET application I have separate projects for the Data, Business and UI
I use subversion to manage my yii website (php framework) and have separate backend
I am trying to integrate CAS on Liferay. I have separate CAS server running
I have 2 separate java services that use a complex type that is a
We have two separate web-apps, say 'retailUI' and 'bulkUI'. These two are basically two
I have three separate applications A, B and C. All of them use service

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.