コード例 #1
0
 /// <summary>
 /// retrieve the location of a sample (on multisample framebuffers)
 /// If the multisample mode does not have fixed sample locations, the returned values may only reflect the locations of samples within some pixels.
 /// </summary>
 /// <param name="pname">Specifies the sample parameter name. pname must be GL_SAMPLE_POSITION.</param>
 /// <param name="index">index must be between zero and the value of GL_SAMPLES - 1.</param>
 /// <returns>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.</returns>
 public static float[] GetMultisamplefv(MultisampleParameters pname, uint index)
 {
     float[] tmp = new float[2];
     Delegates.glGetMultisamplefv(pname, index, ref tmp[0]);
     return tmp;
 }
コード例 #2
0
 /// <summary>
 /// retrieve the location of a sample (on multisample framebuffers)
 /// If the multisample mode does not have fixed sample locations, the returned values may only reflect the locations of samples within some pixels.
 /// </summary>
 /// <param name="pname">Specifies the sample parameter name. pname must be GL_SAMPLE_POSITION.</param>
 /// <param name="index">index must be between zero and the value of GL_SAMPLES - 1.</param>
 /// <returns>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.</returns>
 public static float[] GetMultisamplefv(MultisampleParameters pname, uint index)
 {
     float[] tmp = new float[2];
     Delegates.glGetMultisamplefv(pname, index, ref tmp[0]);
     return(tmp);
 }
コード例 #3
0
 //ARB_texture_multisample
 /// <summary>
 /// retrieve the location of a sample (on multisample framebuffers)
 /// If the multisample mode does not have fixed sample locations, the returned values may only reflect the locations of samples within some pixels.
 /// </summary>
 /// <param name="pname">Specifies the sample parameter name. pname must be GL_SAMPLE_POSITION.</param>
 /// <param name="index">index must be between zero and the value of GL_SAMPLES - 1.</param>
 /// <param name="val">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.</param>
 public static void GetMultisamplefv(MultisampleParameters pname, uint index, float[] val)
 {
     Delegates.glGetMultisamplefv(pname, index, ref val[0]);
 }
コード例 #4
0
 //ARB_texture_multisample
 /// <summary>
 /// retrieve the location of a sample (on multisample framebuffers)
 /// If the multisample mode does not have fixed sample locations, the returned values may only reflect the locations of samples within some pixels.
 /// </summary>
 /// <param name="pname">Specifies the sample parameter name. pname must be GL_SAMPLE_POSITION.</param>
 /// <param name="index">index must be between zero and the value of GL_SAMPLES - 1.</param>
 /// <param name="val">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.</param>
 public static void GetMultisamplefv(MultisampleParameters pname, uint index, float[] val)
 {
     Delegates.glGetMultisamplefv(pname, index, ref val[0]);
 }