mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 03:20:46 -05:00
cogl/pipeline: Rename and export cogl_pipeline_get_layer_filters
For symmetry with cogl_pipeline_set_layer_filters. Suggested by Jonas Ådahl. v2: * Align function parameters. (Jonas Ådahl) Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2757>
This commit is contained in:
parent
1f65ab4be1
commit
1ad3d265e3
@ -317,12 +317,6 @@ _cogl_pipeline_layer_get_filters (CoglPipelineLayer *layer,
|
||||
const CoglSamplerCacheEntry *
|
||||
_cogl_pipeline_layer_get_sampler_state (CoglPipelineLayer *layer);
|
||||
|
||||
void
|
||||
_cogl_pipeline_get_layer_filters (CoglPipeline *pipeline,
|
||||
int layer_index,
|
||||
CoglPipelineFilter *min_filter,
|
||||
CoglPipelineFilter *mag_filter);
|
||||
|
||||
typedef enum
|
||||
{
|
||||
COGL_PIPELINE_LAYER_TYPE_TEXTURE
|
||||
|
@ -1247,7 +1247,7 @@ _cogl_pipeline_layer_get_filters (CoglPipelineLayer *layer,
|
||||
}
|
||||
|
||||
void
|
||||
_cogl_pipeline_get_layer_filters (CoglPipeline *pipeline,
|
||||
cogl_pipeline_get_layer_filters (CoglPipeline *pipeline,
|
||||
int layer_index,
|
||||
CoglPipelineFilter *min_filter,
|
||||
CoglPipelineFilter *mag_filter)
|
||||
|
@ -327,6 +327,22 @@ cogl_pipeline_set_layer_matrix (CoglPipeline *pipeline,
|
||||
COGL_EXPORT int
|
||||
cogl_pipeline_get_n_layers (CoglPipeline *pipeline);
|
||||
|
||||
/**
|
||||
* cogl_pipeline_get_layer_filters:
|
||||
* @pipeline: A #CoglPipeline object
|
||||
* @layer_index: the layer number to change.
|
||||
* @min_filter: Return location for the filter used when scaling a texture down.
|
||||
* @mag_filter: Return location for the filter used when magnifying a texture.
|
||||
*
|
||||
* Returns the decimation and interpolation filters used when a texture is
|
||||
* drawn at other scales than 100%.
|
||||
*/
|
||||
COGL_EXPORT void
|
||||
cogl_pipeline_get_layer_filters (CoglPipeline *pipeline,
|
||||
int layer_index,
|
||||
CoglPipelineFilter *min_filter,
|
||||
CoglPipelineFilter *mag_filter);
|
||||
|
||||
/**
|
||||
* cogl_pipeline_set_layer_filters:
|
||||
* @pipeline: A #CoglPipeline object
|
||||
|
Loading…
Reference in New Issue
Block a user