glGetMultisamplefv

glGetMultisample: man3/glGetMultisample.xml

glGetMultisamplefv queries the location of a given sample. pname specifies the sample parameter to retrieve and must be GL_SAMPLE_POSITION. index corresponds to the sample for which the location should be returned. The sample location is returned 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) this corresponds to the pixel center. index must be between zero and the value of GL_SAMPLES - 1. If the multisample mode does not have fixed sample locations, the returned values may only reflect the locations of samples within some pixels.

@OpenGL_Version(OGLIntroducedIn.V3P2)
@OpenGL_Extension("GL_ARB_texture_multisample")
fn_glGetMultisamplefv glGetMultisamplefv;

See Also

glGenFramebuffers, glBindFramebuffer

Meta