GLGETMULTISAMPLEFV(3G)

πŸŽ€ NAME

glGetMultisamplefv β€” retrieve the location of a sample. This is the GLGETMULTISAMPLEFV page from the 3G manual, header tag [FIXME: manual], and we're keeping every fact on board, bestie. πŸ’…

✨ C SPECIFICATION

void glGetMultisamplefv(GLenum pname, GLuint index, GLfloat *val);

πŸ¦‹ PARAMETERS

  • pname β€” the sample parameter name. It must be GL_SAMPLE_POSITION.
  • index β€” the index of the sample whose position you're querying.
  • val β€” the address of an array that receives the position of the sample.

πŸ’– DESCRIPTION

glGetMultisamplefv queries the location of a given sample. pname says which sample parameter to retrieve, and it must be GL_SAMPLE_POSITION. index is the sample whose location should be returned.

The sample location comes back as two floating-point values in val[0] and val[1], each between 0 and 1, corresponding to the x and y locations respectively in the GL pixel space of that sample. (0.5, 0.5) corresponds to the pixel center. index must be between zero and the value of GL_SAMPLES minus one.

If the multisample mode does not have fixed sample locations, the returned values may only reflect the locations of samples within some pixels.

πŸ”₯ ERRORS

  • GL_INVALID_ENUM is generated if pname is not one GL_SAMPLE_POSITION.
  • GL_INVALID_VALUE is generated if index is greater than or equal to the value of GL_SAMPLES.

πŸ‘‘ VERSION SUPPORT

The feature/function name is glGetMultisamplefv. Here's the OpenGL version tea, from 2.0 all the way to 4.5: not supported (-) on 2.0, 2.1, 3.0, 3.1; supported (βœ”) on 3.2, 3.3, 4.0, 4.1, 4.2, 4.3, 4.4, 4.5. That's the whole row, no cap. 🌈

🌸 SEE ALSO

  • glGenFramebuffers()
  • glBindFramebuffer()

Copyright Β© 2010-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.

Copyright Β© 2010-2014 Khronos Group.


Sign-off time, bestie: this page's source/version footer says [FIXME: source], and the date on it is 08/09/2021. 🫢✨

πŸ“¦ where this page comes from