mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
pipeline: Expose min/mag filter getters
This exposes cogl_pipeline_get_layer_{min,max}_filter functions so that applications can query back the filters set using cogl_pipeline_set_layer_filters(). Reviewed-by: Neil Roberts <neil@linux.intel.com>
This commit is contained in:
parent
ae78215443
commit
31097c0488
@ -1526,7 +1526,7 @@ _cogl_pipeline_get_layer_filters (CoglPipeline *pipeline,
|
||||
}
|
||||
|
||||
CoglPipelineFilter
|
||||
_cogl_pipeline_get_layer_min_filter (CoglPipeline *pipeline,
|
||||
cogl_pipeline_get_layer_min_filter (CoglPipeline *pipeline,
|
||||
int layer_index)
|
||||
{
|
||||
CoglPipelineFilter min_filter;
|
||||
@ -1538,7 +1538,7 @@ _cogl_pipeline_get_layer_min_filter (CoglPipeline *pipeline,
|
||||
}
|
||||
|
||||
CoglPipelineFilter
|
||||
_cogl_pipeline_get_layer_mag_filter (CoglPipeline *pipeline,
|
||||
cogl_pipeline_get_layer_mag_filter (CoglPipeline *pipeline,
|
||||
int layer_index)
|
||||
{
|
||||
CoglPipelineFilter min_filter;
|
||||
|
@ -369,6 +369,48 @@ cogl_pipeline_set_layer_filters (CoglPipeline *pipeline,
|
||||
CoglPipelineFilter min_filter,
|
||||
CoglPipelineFilter mag_filter);
|
||||
|
||||
/**
|
||||
* cogl_pipeline_get_layer_min_filter:
|
||||
* @pipeline: A #CoglPipeline object
|
||||
* @layer_index: the layer number to change.
|
||||
*
|
||||
* Retrieves the currently set minification #CoglPipelineFilter set on
|
||||
* the specified layer. The miniifcation filter determines how the
|
||||
* layer should be sampled when down-scaled.
|
||||
*
|
||||
* The default filter is %COGL_PIPELINE_FILTER_LINEAR but this can be
|
||||
* changed using cogl_pipeline_set_layer_filters().
|
||||
*
|
||||
* Return value: The minification #CoglPipelineFilter for the
|
||||
* specified layer.
|
||||
* Since: 1.10
|
||||
* Stability: unstable
|
||||
*/
|
||||
CoglPipelineFilter
|
||||
cogl_pipeline_get_layer_min_filter (CoglPipeline *pipeline,
|
||||
int layer_index);
|
||||
|
||||
/**
|
||||
* cogl_pipeline_get_layer_mag_filter:
|
||||
* @pipeline: A #CoglPipeline object
|
||||
* @layer_index: the layer number to change.
|
||||
*
|
||||
* Retrieves the currently set magnification #CoglPipelineFilter set on
|
||||
* the specified layer. The magnification filter determines how the
|
||||
* layer should be sampled when up-scaled.
|
||||
*
|
||||
* The default filter is %COGL_PIPELINE_FILTER_LINEAR but this can be
|
||||
* changed using cogl_pipeline_set_layer_filters().
|
||||
*
|
||||
* Return value: The magnification #CoglPipelineFilter for the
|
||||
* specified layer.
|
||||
* Since: 1.10
|
||||
* Stability: unstable
|
||||
*/
|
||||
CoglPipelineFilter
|
||||
cogl_pipeline_get_layer_mag_filter (CoglPipeline *pipeline,
|
||||
int layer_index);
|
||||
|
||||
/**
|
||||
* cogl_pipeline_set_layer_point_sprite_coords_enabled:
|
||||
* @pipeline: a #CoglHandle to a pipeline.
|
||||
|
Loading…
Reference in New Issue
Block a user