psychopy.tools.gltools.createTexImage2DMultisample

psychopy.tools.gltools.createTexImage2DMultisample(width, height, target=37120, samples=1, internalFormat=32856, texParameters=())[source]

Create a 2D multisampled texture.

Parameters
  • width (int) – Texture width in pixels.

  • height (int) – Texture height in pixels.

  • target (int) – The target texture (e.g. GL_TEXTURE_2D_MULTISAMPLE).

  • samples (int) – Number of samples for multi-sampling, should be >1 and power-of-two. Work with one sample, but will raise a warning.

  • internalFormat (int) – Internal format for texture data (e.g. GL_RGBA8, GL_R11F_G11F_B10F).

  • texParameters (list of tuple of int) – Optional texture parameters specified as a list of tuples. These values are passed to ‘glTexParameteri’. Each tuple must contain a parameter name and value. For example, texParameters=[(GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR), (GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR)]

Returns

A TexImage2DMultisample descriptor.

Return type

TexImage2DMultisample


Back to top