Difference between revisions of "GLAPI/glPointParameter"

From OpenGL Wiki
Jump to navigation Jump to search
m (Renaming category: 'API Reference 4' to 'Core API Reference'.)
 
(2 intermediate revisions by one other user not shown)
Line 8: Line 8:
 
== Function Definition ==
 
== Function Definition ==
  
   void '''glPointParameterf'''(GLenum ''pname'', GLfloat ''param'');
+
   void '''glPointParameterf'''(GLenum {{param|pname}}, GLfloat {{param|param}});
   void '''glPointParameteri'''(GLenum ''pname'', GLint ''param'');
+
   void '''glPointParameteri'''(GLenum {{param|pname}}, GLint {{param|param}});
  
 
; pname
 
; pname
: Specifies a single-valued point parameter. {{code|GL_POINT_FADE_THRESHOLD_SIZE}}, and {{code|GL_POINT_SPRITE_COORD_ORIGIN}} are accepted.
+
: Specifies a single-valued point parameter. {{enum|GL_POINT_FADE_THRESHOLD_SIZE}}, and {{enum|GL_POINT_SPRITE_COORD_ORIGIN}} are accepted.
 
; param
 
; param
: Specifies the value that ''pname'' will be set to.
+
: Specifies the value that {{param|pname}} will be set to.
  
 
== Function Definition ==
 
== Function Definition ==
  
   void '''glPointParameterfv'''(GLenum ''pname'', const GLfloat * ''params'');
+
   void '''glPointParameterfv'''(GLenum {{param|pname}}, const GLfloat * {{param|params}});
   void '''glPointParameteriv'''(GLenum ''pname'', const GLint * ''params'');
+
   void '''glPointParameteriv'''(GLenum {{param|pname}}, const GLint * {{param|params}});
  
 
; pname
 
; pname
: Specifies a point parameter. {{code|GL_POINT_FADE_THRESHOLD_SIZE}}, and {{code|GL_POINT_SPRITE_COORD_ORIGIN}} are accepted.
+
: Specifies a point parameter. {{enum|GL_POINT_FADE_THRESHOLD_SIZE}}, and {{enum|GL_POINT_SPRITE_COORD_ORIGIN}} are accepted.
 
; params
 
; params
: Specifies the value to be assigned to ''pname''..
+
: Specifies the value to be assigned to {{param|pname}}..
  
 
== Description ==
 
== Description ==
  
The following values are accepted for ''pname'':
+
The following values are accepted for {{param|pname}}:
  
; {{code|GL_POINT_FADE_THRESHOLD_SIZE}}
+
; {{enum|GL_POINT_FADE_THRESHOLD_SIZE}}
 
:  
 
:  
''params'' is a single floating-point value that specifies the threshold value to which point sizes are clamped if they exceed the specified value. The default value is 1.0.
+
{{param|params}} is a single floating-point value that specifies the threshold value to which point sizes are clamped if they exceed the specified value. The default value is 1.0.
; {{code|GL_POINT_SPRITE_COORD_ORIGIN}}
+
; {{enum|GL_POINT_SPRITE_COORD_ORIGIN}}
 
:  
 
:  
''params'' is a single enum specifying the point sprite texture coordinate origin, either {{code|GL_LOWER_LEFT}} or {{code|GL_UPPER_LEFT}}. The default value is {{code|GL_UPPER_LEFT}}.
+
{{param|params}} is a single enum specifying the point sprite texture coordinate origin, either {{enum|GL_LOWER_LEFT}} or {{enum|GL_UPPER_LEFT}}. The default value is {{enum|GL_UPPER_LEFT}}.
 
== Errors ==
 
== Errors ==
  
{{code|GL_INVALID_VALUE}} is generated if the value specified for {{code|GL_POINT_FADE_THRESHOLD_SIZE}} is less than zero.
+
{{enum|GL_INVALID_VALUE}} is generated if the value specified for {{enum|GL_POINT_FADE_THRESHOLD_SIZE}} is less than zero.
  
{{code|GL_INVALID_ENUM}} is generated If the value specified for {{code|GL_POINT_SPRITE_COORD_ORIGIN}} is not {{code|GL_LOWER_LEFT}} or {{code|GL_UPPER_LEFT}}.
+
{{enum|GL_INVALID_ENUM}} is generated If the value specified for {{enum|GL_POINT_SPRITE_COORD_ORIGIN}} is not {{enum|GL_LOWER_LEFT}} or {{enum|GL_UPPER_LEFT}}.
  
 
== Associated Gets ==
 
== Associated Gets ==
  
[[GLAPI/glGet|glGet]] with argument {{code|GL_POINT_FADE_THRESHOLD_SIZE}}
+
{{apifunc|glGet}} with argument {{enum|GL_POINT_FADE_THRESHOLD_SIZE}}
  
[[GLAPI/glGet|glGet]] with argument {{code|GL_POINT_SPRITE_COORD_ORIGIN}}
+
{{apifunc|glGet}} with argument {{enum|GL_POINT_SPRITE_COORD_ORIGIN}}
  
 
== See Also ==
 
== See Also ==
  
[[GLAPI/glPointSize|glPointSize]]
+
{{apifunc|glPointSize}}
  
 
== Copyright ==
 
== Copyright ==
  
Copyright © 1991-2006 Silicon Graphics, Inc. Copyright © 2010 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see [http://oss.sgi.com/projects/FreeB/ http://oss.sgi.com/projects/FreeB/].
+
Copyright © 1991-2006 Silicon Graphics, Inc. Copyright © 2010 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see [https://khronos.org/registry/OpenGL-Refpages/LICENSES/LicenseRef-FreeB.txt LicenseRef-FreeB].
  
 
[[Category:Core API Ref Rasterization|PointParameter]]
 
[[Category:Core API Ref Rasterization|PointParameter]]
 
[[Category:Core API Reference|PointParameter]]
 
[[Category:Core API Reference|PointParameter]]

Latest revision as of 21:06, 5 February 2021

glPointParameter
Core in version 4.6
Core since version 1.4

glPointParameter: specify point parameters

Function Definition

 void glPointParameterf(GLenum pname​, GLfloat param​);
 void glPointParameteri(GLenum pname​, GLint param​);
pname
Specifies a single-valued point parameter. GL_POINT_FADE_THRESHOLD_SIZE, and GL_POINT_SPRITE_COORD_ORIGIN are accepted.
param
Specifies the value that pname​ will be set to.

Function Definition

 void glPointParameterfv(GLenum pname​, const GLfloat * params​);
 void glPointParameteriv(GLenum pname​, const GLint * params​);
pname
Specifies a point parameter. GL_POINT_FADE_THRESHOLD_SIZE, and GL_POINT_SPRITE_COORD_ORIGIN are accepted.
params
Specifies the value to be assigned to pname​..

Description

The following values are accepted for pname​:

GL_POINT_FADE_THRESHOLD_SIZE

params​ is a single floating-point value that specifies the threshold value to which point sizes are clamped if they exceed the specified value. The default value is 1.0.

GL_POINT_SPRITE_COORD_ORIGIN

params​ is a single enum specifying the point sprite texture coordinate origin, either GL_LOWER_LEFT or GL_UPPER_LEFT. The default value is GL_UPPER_LEFT.

Errors

GL_INVALID_VALUE is generated if the value specified for GL_POINT_FADE_THRESHOLD_SIZE is less than zero.

GL_INVALID_ENUM is generated If the value specified for GL_POINT_SPRITE_COORD_ORIGIN is not GL_LOWER_LEFT or GL_UPPER_LEFT.

Associated Gets

glGet with argument GL_POINT_FADE_THRESHOLD_SIZE

glGet with argument GL_POINT_SPRITE_COORD_ORIGIN

See Also

glPointSize

Copyright

Copyright © 1991-2006 Silicon Graphics, Inc. Copyright © 2010 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see LicenseRef-FreeB.