Class NVFramebufferMixedSamples
This extension allows multisample rendering with a raster and depth/stencil sample count that is larger than the color sample count. Rasterization and the results of the depth and stencil tests together determine the portion of a pixel that is "covered". It can be useful to evaluate coverage at a higher frequency than color samples are stored. This coverage is then "reduced" to a collection of covered color samples, each having an opacity value corresponding to the fraction of the color sample covered. The opacity can optionally be blended into individual color samples.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.static final intAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.static final intAccepted by thecapparameter of Enable, Disable, IsEnabled.static final intAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.static final intAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.static final intAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.static final intAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.static final intAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.static final intAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.static final intAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.static final intAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.static final intAccepted by thecapparameter of Enable, Disable, IsEnabled.static final intAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.static final intAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidglCoverageModulationNV(int components) static voidglCoverageModulationTableNV(float[] v) Array version of:CoverageModulationTableNVstatic voidstatic voidglGetCoverageModulationTableNV(float[] v) Array version of:GetCoverageModulationTableNVstatic voidstatic voidglRasterSamplesEXT(int samples, boolean fixedsamplelocations) Selects the number of samples to be used for rasterization.static voidnglCoverageModulationTableNV(int n, long v) Unsafe version of:CoverageModulationTableNVstatic voidnglGetCoverageModulationTableNV(int bufsize, long v)
-
Field Details
-
GL_RASTER_MULTISAMPLE_EXT
public static final int GL_RASTER_MULTISAMPLE_EXTAccepted by thecapparameter of Enable, Disable, IsEnabled.- See Also:
-
GL_COVERAGE_MODULATION_TABLE_NV
public static final int GL_COVERAGE_MODULATION_TABLE_NVAccepted by thecapparameter of Enable, Disable, IsEnabled.- See Also:
-
GL_RASTER_SAMPLES_EXT
public static final int GL_RASTER_SAMPLES_EXTAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.- See Also:
-
GL_MAX_RASTER_SAMPLES_EXT
public static final int GL_MAX_RASTER_SAMPLES_EXTAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.- See Also:
-
GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXT
public static final int GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXTAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.- See Also:
-
GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXT
public static final int GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXTAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.- See Also:
-
GL_EFFECTIVE_RASTER_SAMPLES_EXT
public static final int GL_EFFECTIVE_RASTER_SAMPLES_EXTAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.- See Also:
-
GL_COLOR_SAMPLES_NV
public static final int GL_COLOR_SAMPLES_NVAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.- See Also:
-
GL_DEPTH_SAMPLES_NV
public static final int GL_DEPTH_SAMPLES_NVAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.- See Also:
-
GL_STENCIL_SAMPLES_NV
public static final int GL_STENCIL_SAMPLES_NVAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.- See Also:
-
GL_MIXED_DEPTH_SAMPLES_SUPPORTED_NV
public static final int GL_MIXED_DEPTH_SAMPLES_SUPPORTED_NVAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.- See Also:
-
GL_MIXED_STENCIL_SAMPLES_SUPPORTED_NV
public static final int GL_MIXED_STENCIL_SAMPLES_SUPPORTED_NVAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.- See Also:
-
GL_COVERAGE_MODULATION_NV
public static final int GL_COVERAGE_MODULATION_NVAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.- See Also:
-
GL_COVERAGE_MODULATION_TABLE_SIZE_NV
public static final int GL_COVERAGE_MODULATION_TABLE_SIZE_NVAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.- See Also:
-
-
Method Details
-
glRasterSamplesEXT
public static void glRasterSamplesEXT(int samples, boolean fixedsamplelocations) Selects the number of samples to be used for rasterization.samplesrepresents a request for a desired minimum number of samples. Since different implementations may support different sample counts, the actual sample pattern used is implementation-dependent. However, the resulting value forRASTER_SAMPLES_EXTis guaranteed to be greater than or equal tosamplesand no more than the next larger sample count supported by the implementation. IffixedsamplelocationsisTRUE, identical sample locations will be used for all pixels. The sample locations chosen are a function of only the parameters to RasterSamplesEXT and not of any other state.If
RASTER_MULTISAMPLE_EXTis enabled, then the sample pattern chosen by RasterSamplesEXT will be used instead of sampling at the center of the pixel. The sample locations can be queried withGetMultisamplefvwith apnameofSAMPLE_POSITION, similar to normal multisample sample locations.The value
MULTISAMPLE_RASTERIZATION_ALLOWED_EXTisTRUEifSAMPLE_BUFFERSis one or ifRASTER_MULTISAMPLE_EXTis enabled. The valueEFFECTIVE_RASTER_SAMPLES_EXTis equal toRASTER_SAMPLES_EXTifRASTER_MULTISAMPLE_EXTis enabled, otherwise is equal toSAMPLES.Explicit multisample rasterization can not be used in conjunction with depth, stencil, or depth bounds tests, multisample framebuffers, or if
RASTER_SAMPLES_EXTis zero. IfRASTER_MULTISAMPLE_EXTis enabled, the errorINVALID_OPERATIONwill be generated by Draw commands if- the value of
RASTER_SAMPLES_EXTis zero - the depth, stencil, or depth bounds test is enabled
- a multisample draw framebuffer is bound (
SAMPLE_BUFFERSis one)
Errors
An
INVALID_VALUEerror is generated ifsamplesis greater than the value ofMAX_RASTER_SAMPLES_EXT(the implementation-dependent maximum number of samples).- Parameters:
samples- the number of samples to be used for rasterizationfixedsamplelocations- ifTRUE, identical sample locations will be used for all pixels
- the value of
-
nglCoverageModulationTableNV
public static void nglCoverageModulationTableNV(int n, long v) Unsafe version of:CoverageModulationTableNV- Parameters:
n- The size of the coverage modulation table. Must be equal to the value of COVERAGE_MODULATION_TABLE_SIZE_NV.
-
glCoverageModulationTableNV
-
nglGetCoverageModulationTableNV
public static void nglGetCoverageModulationTableNV(int bufsize, long v) -
glGetCoverageModulationTableNV
-
glCoverageModulationNV
public static void glCoverageModulationNV(int components) -
glCoverageModulationTableNV
public static void glCoverageModulationTableNV(float[] v) Array version of:CoverageModulationTableNV -
glGetCoverageModulationTableNV
public static void glGetCoverageModulationTableNV(float[] v) Array version of:GetCoverageModulationTableNV
-