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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:36:23+00:00 2026-06-12T04:36:23+00:00

I need to give the user the possibility to insert some custom geometry, like

  • 0

I need to give the user the possibility to insert some custom geometry, like a point.

He can specify size and color.

Trying to get how the different parameters work, I got these values on my platform:

GL_POINT_SIZE_MIN: 33062

GL_POINT_SIZE_MAX: 33063

GL_POINT_SIZE_RANGE and GL_POINT_SIZE_GRANULARITY are deprecated in GL
versions 1.2 and greater. Their functionality has been replaced by
GL_SMOOTH_POINT_SIZE_RANGE and GL_SMOOTH_POINT_SIZE_GRANULARITY.

GL_SMOOTH_POINT_SIZE_RANGE: 2834

GL_SMOOTH_POINT_SIZE_GRANULARITY: 2835

Could somebody explain to me these strange values? I mean, how can differ the min and max values by just one?

The values above are taken in the following way:

System.out.println("max: "+GL2.GL_POINT_SIZE_MAX+" min: "+GL2.GL_POINT_SIZE_MIN);
System.out.println("range: "+GL2.GL_SMOOTH_POINT_SIZE_RANGE+" granularity: "+GL2.GL_SMOOTH_POINT_SIZE_GRANULARITY);

On the suggestions of datenwolf and Denis Germ I am now retriving parameters as follows:

float ps[] = new float[5];

gl2.glGetFloatv(GL2.GL_POINT_SIZE_MIN, ps, 0);
gl2.glGetFloatv(GL2.GL_POINT_SIZE_MAX, ps, 1);
gl2.glGetFloatv(GL2.GL_SMOOTH_POINT_SIZE_RANGE, ps, 2);
gl2.glGetFloatv(GL2.GL_SMOOTH_POINT_SIZE_GRANULARITY, ps,4);
        
System.out.println("min: "+ps[0]+" max: "+ps[1]);
System.out.println("range: "+ps[2]+" - "+ps[3]+" granularity: "+ps[4]);

And now I get:

min: 0.0 max: 63.375

range: 1.0 – 63.375 granularity: 0.125

It looks better, but still, if range starts from 1.0, why min is 0.0f?

  • 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-12T04:36:25+00:00Added an answer on June 12, 2026 at 4:36 am

    GL_POINT_SIZE_RANGE: glGet will return two values, where the first is the minimum and the secound is the maximum point size (range from min to max).

    GL_POINT_SIZE_GRANULARITY: glGet will return a single value, which describes the granularity, for example, 0.1: you can specify point sizes as 1.1, 1.2, 1.3, but not 1.05, 1.15, etc.

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

Sidebar

Related Questions

I need to give the user a snippet of js code that will insert
I need to give to user TARGETUSER the rights to select/insert/update to all tables
i am building a php based website but now i need to give user
When comparing doubles for equality, we need to give a tolerance level, because floating-point
I need to give my user a web interface to change the session timeout
I need to access list box selected item from the user control. How can
I need to give user ability to enter a time in form hh:mm:ss (with
I have to develop a Spring MVC project. This give user the possibility to
In my application I need to give user opportinity to see/edit all available fields
I need to give user one alert after saving an item.So I am using

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.