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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:27:21+00:00 2026-06-09T21:27:21+00:00

OpenGL define its own datatype. Such as GLint or GLsizei . And they are

  • 0

OpenGL define its own datatype. Such as GLint or GLsizei. And they are different across platforms. Where can I find limits for the types?

Edit

Added language tag to clarify domain. And I know that GL* types will be resolved into basic C types, but it can be different by platform. (actually that’s why they are defined.) And even basic C types are not guaranteed to be fixed size on any platform. That’s why the limit.h is exist, and I expect there’s also similar thing in GL itself for GL* types because they’re semantically different with C types, and it means they need their own limit definitions.

  • 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-09T21:27:22+00:00Added an answer on June 9, 2026 at 9:27 pm

    Assuming you are using C++ you can use std::numeric_limits<GLint>::max() to get the correct maximum value for a type or any other property of the type.

    The spec doesn’t guarantee that GLint is actually an int on any platform but only that it is an at least 32bit wide signed integral type, so MAX_INT is the lower size bound on a platform where int is actually 32 bits wide (e.g. x86_64).

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

Sidebar

Related Questions

On the OpenGL FBO wiki page there is this snippet: You can also use
I have a glutSolidTeapot (which has its surface normals generated automatically according to opengl.org)
I was wondering whether the following can be easily implemented in OpenGL: divide window
OpenGL can colour a rectangle with a gradient of colours from 1 side to
Short Version How can I draw short text labels in an OpenGL mapping application
I'm working on an iPhone app that uses OpenGL ES 2 for its drawing.
I have seen the following macro being used in OpenGL VBO implementations: #define BUFFER_OFFSET(i)
How can I detect in my python script if its being run by the
In OpenGL for achieving a proper transparency effect I should use glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) but
In OpenGL superbible 4th ed, an example on pg 70 reads //returns space-delimited names

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.