glenable man page on SunOS

Man page or keyword search:  
man Server   20652 pages
apropos Keyword Search (all sections)
Output format
SunOS logo
[printable version]

GLENABLE(3gl)							 GLENABLE(3gl)

NAME
       glEnable, glDisable - enable or disable server-side GL capabilities

C SPECIFICATION
       void glEnable( GLenum cap )

PARAMETERS
       cap  Specifies a symbolic constant indicating a GL capability.

C SPECIFICATION
       void glDisable( GLenum cap )

PARAMETERS
       cap    Specifies a symbolic constant indicating a GL capability.

DESCRIPTION
       glEnable	 and  glDisable	 enable and disable various capabilities.  Use
       glIsEnabled or glGet to determine the current setting of	 any  capabil‐
       ity.  The  initial  value  for  each  capability	 with the exception of
       GL_DITHER is GL_FALSE. The initial value for GL_DITHER is GL_TRUE.

       Both glEnable and glDisable take a  single  argument,  cap,  which  can
       assume one of the following values:

       GL_ALPHA_TEST		If enabled, do alpha testing. See glAlphaFunc.

       GL_AUTO_NORMAL		If   enabled,  generate	 normal	 vectors  when
				either GL_MAP2_VERTEX_3 or GL_MAP2_VERTEX_4 is
				used to generate vertices.  See glMap2.

       GL_BLEND			If enabled, blend the incoming RGBA color val‐
				ues with the values in the color buffers.  See
				glBlendFunc.

       GL_CLIP_PLANEi		If enabled, clip geometry against user-defined
				clipping plane i.  See glClipPlane.

       GL_COLOR_LOGIC_OP	If enabled, apply the currently selected logi‐
				cal  operation	to the incoming RGBA color and
				color buffer values. See glLogicOp.

       GL_COLOR_MATERIAL	If enabled, have one or more material  parame‐
				ters  track the current color.	See glColorMa‐
				terial.

       GL_COLOR_SUM_ARB		If enabled, and a  vertex  shader  is  active,
				the  primary  and secondary colors are summed.
				If a vertex shader is not active this value is
				ignored.  See glSecondaryColor.

       GL_CONVOLUTION_1D_EXT	If enabled, the 1-dimensional convolution fil‐
				ter is applied to  image  passed  to  glTexIm‐
				age1D,	and  to 1-dimensional textures queried
				by   glGetTexImage.    See   glConvolutionFil‐
				ter1DEXT.

       GL_CONVOLUTION_2D_EXT	If enabled, the 2-dimensional convolution fil‐
				ter is applied to 2D images passed to  glDraw‐
				Pixels,	 glCopyPixels,	glReadPixels, glTexIm‐
				age2D,	  glTexSubImage2DEXT,	  glCopyTexIm‐
				age2DEXT,   glCopyTexSubImage2DEXT,   and   to
				2-dimensional images queried by glGetTexImage.
				See glConvolutionFilter2DEXT.

       GL_CULL_FACE		If enabled, cull polygons based on their wind‐
				ing in window coordinates.  See glCullFace.

       GL_DEPTH_TEST		If enabled, do depth  comparisons  and	update
				the  depth buffer. Note that even if the depth
				buffer exists and the depth mask is  non-zero,
				the  depth  buffer is not updated if the depth
				test is disabled. See glDepthFunc and
				glDepthRange.

       GL_DITHER		If enabled, dither color components or indices
				before they are written to the color buffer.

       GL_FOG			If  enabled,  blend a fog color into the post‐
				texturing color.  See glFog.

       GL_FRAGMENT_PROGRAM_ARB	If enabled, the current	 fragment  program  is
				exectued  when	performing fragment processing
				instead of the fixed  function	fragment  pro‐
				cessing.   See glBindProgramARB and glProgram‐
				StringARB.

       GL_GLOBAL_ALPHA_SUN	If enabled, multiple  a	 global	 alpha	factor
				into  the pretexturing color.  See glGlobalAl‐
				phaFactorSUN.

       GL_HISTOGRAM_EXT		If enabled, do a histogram  operation  on  the
				incoming  RGBA	values	in  the pixel transfer
				pipeline.  See glHistogramEXT.

       GL_INDEX_LOGIC_OP	If enabled, apply the currently selected logi‐
				cal  operation to the incoming index and color
				buffer indices. See
				glLogicOp.

       GL_LIGHTi		If enabled, include light i in the  evaluation
				of the lighting equation. See glLightModel and
				glLight.

       GL_LIGHTING		If enabled, use the current  lighting  parame‐
				ters  to  compute  the	vertex color or index.
				Otherwise, simply associate the current	 color
				or index with each vertex. See
				glMaterial, glLightModel, and glLight.

       GL_LINE_SMOOTH		If enabled, draw lines with correct filtering.
				Otherwise,   draw    aliased	lines.	   See
				glLineWidth.

       GL_LINE_STIPPLE		If  enabled, use the current line stipple pat‐
				tern when drawing lines. See glLineStipple.

       GL_MAP1_COLOR_4		If  enabled,  calls  to	  glEvalCoord1,	  glE‐
				valMesh1,  and glEvalPoint1 generate RGBA val‐
				ues.  See glMap1.

       GL_MAP1_INDEX		If  enabled,  calls  to	  glEvalCoord1,	  glE‐
				valMesh1,   and	 glEvalPoint1  generate	 color
				indices.  See glMap1.

       GL_MAP1_NORMAL		If  enabled,  calls  to	  glEvalCoord1,	  glE‐
				valMesh1,  and	glEvalPoint1 generate normals.
				See glMap1.

       GL_MAP1_TEXTURE_COORD_1	If  enabled,  calls  to	  glEvalCoord1,	  glE‐
				valMesh1,  and glEvalPoint1 generate s texture
				coordinates.  See glMap1.

       GL_MAP1_TEXTURE_COORD_2	If  enabled,  calls  to	  glEvalCoord1,	  glE‐
				valMesh1,  and	glEvalPoint1  generate s and t
				texture coordinates.  See glMap1.

       GL_MAP1_TEXTURE_COORD_3	If  enabled,  calls  to	  glEvalCoord1,	  glE‐
				valMesh1,  and glEvalPoint1 generate s, t, and
				r texture coordinates.	See glMap1.

       GL_MAP1_TEXTURE_COORD_4	If  enabled,  calls  to	  glEvalCoord1,	  glE‐
				valMesh1,  and	glEvalPoint1 generate s, t, r,
				and q texture coordinates.  See glMap1.

       GL_MAP1_VERTEX_3		If  enabled,  calls  to	  glEvalCoord1,	  glE‐
				valMesh1,  and glEvalPoint1 generate x, y, and
				z vertex coordinates.  See glMap1.

       GL_MAP1_VERTEX_4		If  enabled,  calls  to	  glEvalCoord1,	  glE‐
				valMesh1,  and	glEvalPoint1  generate homoge‐
				neous x, y, z, and w vertex coordinates.   See
				glMap1.

       GL_MAP2_COLOR_4		If   enabled,	calls  to  glEvalCoord2,  glE‐
				valMesh2, and glEvalPoint2 generate RGBA  val‐
				ues.  See glMap2.

       GL_MAP2_INDEX		If   enabled,	calls  to  glEvalCoord2,  glE‐
				valMesh2,  and	glEvalPoint2  generate	 color
				indices.  See glMap2.

       GL_MAP2_NORMAL		If   enabled,	calls  to  glEvalCoord2,  glE‐
				valMesh2, and glEvalPoint2  generate  normals.
				See glMap2.

       GL_MAP2_TEXTURE_COORD_1	If   enabled,	calls  to  glEvalCoord2,  glE‐
				valMesh2, and glEvalPoint2 generate s  texture
				coordinates.  See glMap2.

       GL_MAP2_TEXTURE_COORD_2	If   enabled,	calls  to  glEvalCoord2,  glE‐
				valMesh2, and glEvalPoint2 generate  s	and  t
				texture coordinates.  See glMap2.

       GL_MAP2_TEXTURE_COORD_3	If   enabled,	calls  to  glEvalCoord2,  glE‐
				valMesh2, and glEvalPoint2 generate s, t,  and
				r texture coordinates.	See glMap2.

       GL_MAP2_TEXTURE_COORD_4	If   enabled,	calls  to  glEvalCoord2,  glE‐
				valMesh2, and glEvalPoint2 generate s,	t,  r,
				and q texture coordinates.  See glMap2.

       GL_MAP2_VERTEX_3		If   enabled,	calls  to  glEvalCoord2,  glE‐
				valMesh2, and glEvalPoint2 generate x, y,  and
				z vertex coordinates.  See glMap2.

       GL_MAP2_VERTEX_4		If   enabled,	calls  to  glEvalCoord2,  glE‐
				valMesh2, and  glEvalPoint2  generate  homoge‐
				neous  x, y, z, and w vertex coordinates.  See
				glMap2.

       GL_MINMAX_EXT		If enabled,  do	 a  minmax  operation  on  the
				incoming  RGBA	values	in  the pixel transfer
				pipeline.  See glMinmaxEXT.

       GL_NORMALIZE		If  enabled,  normal  vectors  specified  with
				glNormal  are  scaled  to  unit	 length	 after
				transformation. See glNormal.

       GL_POINT_SMOOTH		If enabled, draw points with proper filtering.
				Otherwise,  draw aliased points.  See glPoint‐
				Size.

       GL_POLYGON_OFFSET_EXT	If enabled, and if the polygon is rendered  in
				GL_FILL mode, an offset is added to depth val‐
				ues of a polygon's fragments before the	 depth
				comparison  is	performed. See glPolygonOffse‐
				tEXT.

       GL_POLYGON_OFFSET_FILL	If enabled, and if the polygon is rendered  in
				GL_FILL mode, an offset is added to depth val‐
				ues of a polygon's fragments before the	 depth
				comparison is performed. See glPolygonOffset.

       GL_POLYGON_OFFSET_LINE	If  enabled, and if the polygon is rendered in
				GL_LINE mode, an offset is added to depth val‐
				ues  of a polygon's fragments before the depth
				comparison is performed. See glPolygonOffset.

       GL_POLYGON_OFFSET_POINT	If enabled, an offset is added to depth values
				of a polygon's fragments before the depth com‐
				parison is performed, if the polygon  is  ren‐
				dered in GL_POINT mode. See
				glPolygonOffset.

       GL_POLYGON_SMOOTH	If  enabled, draw polygons with proper filter‐
				ing.  Otherwise, draw  aliased	polygons.  For
				correct anti-aliased polygons, an alpha buffer
				is needed and  the  polygons  must  be	sorted
				front to back.

       GL_POLYGON_STIPPLE	If  enabled,  use  the current polygon stipple
				pattern when rendering polygons.  See  glPoly‐
				gonStipple.

       GL_POST_CONVOLUTION_COLOR_TABLE_SGI
				If enabled, pass output from convolution oper‐
				ation through post  convolution	 color	table.
				See glColorTableSGI.

       GL_SCISSOR_TEST		If enabled, discard fragments that are outside
				the scissor rectangle.	See glScissor.

       GL_SEPARABLE_2D_EXT	If enabled, the separable 2-dimensional convo‐
				lution	filter	is applied to 2D images passed
				to glDrawPixels,  glCopyPixels,	 glReadPixels,
				glTexImage2D, glTexSubImage2DEXT, glCopyTexIm‐
				age2DEXT,   glCopyTexSubImage2DEXT,   and   to
				2-dimensional images queried by glGetTexImage.
				See glSeparableFilter2DEXT.

       GL_STENCIL_TEST		If enabled, do stencil testing and update  the
				stencil buffer.	 See glStencilFunc and glSten‐
				cilOp.

       GL_TEXTURE_1D		If enabled, one-dimensional texturing is  per‐
				formed	(unless	 two-dimensional  texturing is
				also enabled). See glTexImage1D.

       GL_TEXTURE_2D		If enabled, two-dimensional texturing is  per‐
				formed. See glTexImage2D.

       GL_TEXTURE_CUBE_MAP	If  enabled,  cube-mapped  texturing  is  per‐
				formed. See glTexImage2D.

       GL_TEXTURE_GEN_Q		If enabled, the q texture coordinate  is  com‐
				puted  using  the  texture generation function
				defined with glTexGen.	Otherwise, the current
				q texture coordinate is used.  See glTexGen.

       GL_TEXTURE_GEN_R		If  enabled,  the r texture coordinate is com‐
				puted using the	 texture  generation  function
				defined with glTexGen.	Otherwise, the current
				r texture coordinate is used.  See glTexGen.

       GL_TEXTURE_GEN_S		If enabled, the s texture coordinate  is  com‐
				puted  using  the  texture generation function
				defined with glTexGen.	Otherwise, the current
				s texture coordinate is used.  See glTexGen.

       GL_TEXTURE_GEN_T		If  enabled,  the t texture coordinate is com‐
				puted using the	 texture  generation  function
				defined with glTexGen.	Otherwise, the current
				t texture coordinate is used.  See glTexGen.

       GL_MULTISAMPLE_ARB	If enabled, draw primitives  with  multisample
				rasterization.	  Otherwise,  draw  primitives
				with single rasterization. Multisample raster‐
				ization	  cannot  be  enabled  unless  GL_SAM‐
				PLE_BUFFERS_ARB is 1.

       GL_SAMPLE_ALPHA_TO_COVERAGE_ARB
				If enabled, the fragment alpha value  is  used
				to  generate  a temporary coverage value which
				is ANDed with the  coverage  value.  Otherwise
				the fragment coverage value is unchanged.

       GL_SAMPLE_ALPHA_TO_ONE_ARB
				If  enabled, fragment alpha is replaced by the
				maximum representable alpha value.  Otherwise,
				fragment alpha value is not changed.

       GL_SAMPLE_COVERAGE_ARB	If  enabled,  the  fragment  coverage is ANDed
				with  a	 temporary  coverage  generated	 using
				GL_SAMPLE_COVERAGE_VALUE_ARB	and    GL_SAM‐
				PLE_COVERAGE_INVERT_ARB, defined by the	 func‐
				tion glSampleCoverageARB.

       GL_VERTEX_PROGRAM_ARB	If  enabled,  the  current  vertex  program is
				exectued  when	performing  vertex  processing
				instead	 of the fixed function vertex process‐
				ing.   See  glBindProgramARB  and   glProgram‐
				StringARB.

       GL_VERTEX_PROGRAM_POINT_SIZE_ARB
				If  enabled,  and  a  vertex shader is active,
				the  point  size  is  taken  from  the	vertex
				shader's point size result.  See glBindProgra‐
				mARB and glProgramStringARB.

       GL_VERTEX_PROGRAM_TWO_SIDE_ARB
				If enabled, and a vertex shader is active  the
				color  is  selected between the front and back
				colors	otherwise  the	vertex	shader	always
				selectes  the  front color.  See glBindProgra‐
				mARB and glProgramStringARB.

       GL_VIDEO_RESIZE_COMPENSATION_SUN
				If enabled, the line widths, point  sizes  and
				pixel  operations  will	 be  scaled internally
				with the resize factor to  approximately  com‐
				pensate	 for  video  resizing;	otherwise,  no
				internal scaling will be applied.  The default
				for video size compensation is enabled.

       GL_TEXTURE_TARGET_SUN	If  enabled, texture downloads will be target‐
				ted to specified pipelines  in	multi-pipeline
				frame  buffers(such as XVR-4000). Applications
				can specify which pipelines  to	 target	 using
				glSetTextureTargetiSUN.	  Also	see  glSetTex‐
				tureTargetModeSUN.

NOTES
       GL_POLYGON_OFFSET_FILL,	   GL_POLYGON_OFFSET_LINE,     GL_POLYGON_OFF‐
       SET_POINT,  GL_COLOR_LOGIC_OP, and GL_INDEX_LOGIC_OP are only available
       if the GL version is 1.1 or greater.

       GL_VIDEO_RESIZE_COMPENSATION_SUN is only available if the GL  implemen‐
       tation supports GLX_SUN_video_resize extension.

ERRORS
       GL_INVALID_ENUM	is  generated  if  cap is not one of the values listed
       previously.

       GL_INVALID_OPERATION is generated if glEnable or glDisable is  executed
       between	the  execution	of  glBegin and the corresponding execution of
       glEnd.

SEE ALSO
       glAlphaFunc,  glBlendFunc,  glClipPlane,	 glColorMaterial,   glColorTa‐
       bleSGI, glConvolutionFilter1DEXT, glConvolutionFilter2DEXT, glCullFace,
       glDepthFunc,  glDepthRange, glEnableClientState, glFog, glHistogramEXT,
       glGet, glIsEnabled, glLight, glLightModel, glLineWidth,	glLineStipple,
       glLogicOp,  glMap1, glMap2, glMaterial, glMinmaxEXT, glNormal, glPoint‐
       Size, glPolygonMode, glPolygonOffset, glPolygonOffsetEXT,
       glPolygonStipple,  glScissor,  glSeparableFilter2DEXT,	glStencilFunc,
       glStencilOp, glTexGen, glTexImage1D, glTexImage2D, glGlobalAlphaFactor‐
       SUN, glSampleCoverageARB, glXVideoResizeSUN, glXGetVideoResizeSUN.

				  01 June 01			 GLENABLE(3gl)
[top]

List of man pages available for SunOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net