Export to GitHub

glextensions - GL_SGIS_generate_mipmap.wiki


Contents

  • Dependencies
  • Overview
  • New Procedures and Functions
  • New Tokens
  • Errors
  • New State
  • New Implementation Dependent State

Dependencies

GL_EXT_texture is required

GL_EXT_texture3D affects the definition of this extension

GL_EXT_texture_object affects the definition of this extension

GL_SGIS_texture_lod affects the definition of this extension

Overview

This extension defines a mechanism by which OpenGL can derive the entire set of mipmap arrays when provided with only the base level array. Automatic mipmap generation is particularly useful when texture images are being provided as a video stream.

New Procedures and Functions

None

New Tokens

Accepted by the

<pname>

parameter of TexParameteri, TexParameterf, TexParameteriv, TexParameterfv, GetTexParameteriv, and GetTexParameterfv:

|GENERATE_MIPMAP_SGIS|0x8191| |:---------------------|:-----|

Accepted by the

<target>

parameter of Hint, and by the

<pname>

parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev:

|GENERATE_MIPMAP_HINT_SGIS |0x8192| |:----------------------------|:-----|

Errors

None

New State

| Get Value | Get Command | Type | Initial Value | |:--------------|:----------------|:---------|:------------------| |GENERATE_MIPMAP_SGIS | GetTexParameteriv|B |FALSE | |GENERATE_MIPMAP_HINT_SGIS | GetIntegerv |Z3 | DONT_CARE |

New Implementation Dependent State

None