diff --git a/cogl/cogl/cogl-pipeline-layer-private.h b/cogl/cogl/cogl-pipeline-layer-private.h index 461a45519..c89e80e21 100644 --- a/cogl/cogl/cogl-pipeline-layer-private.h +++ b/cogl/cogl/cogl-pipeline-layer-private.h @@ -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 diff --git a/cogl/cogl/cogl-pipeline-layer-state.c b/cogl/cogl/cogl-pipeline-layer-state.c index a56b89c19..66d64196a 100644 --- a/cogl/cogl/cogl-pipeline-layer-state.c +++ b/cogl/cogl/cogl-pipeline-layer-state.c @@ -1247,10 +1247,10 @@ _cogl_pipeline_layer_get_filters (CoglPipelineLayer *layer, } void -_cogl_pipeline_get_layer_filters (CoglPipeline *pipeline, - int layer_index, - CoglPipelineFilter *min_filter, - CoglPipelineFilter *mag_filter) +cogl_pipeline_get_layer_filters (CoglPipeline *pipeline, + int layer_index, + CoglPipelineFilter *min_filter, + CoglPipelineFilter *mag_filter) { CoglPipelineLayer *layer; CoglPipelineLayer *authority; diff --git a/cogl/cogl/cogl-pipeline-layer-state.h b/cogl/cogl/cogl-pipeline-layer-state.h index a8ce9b858..c7b068464 100644 --- a/cogl/cogl/cogl-pipeline-layer-state.h +++ b/cogl/cogl/cogl-pipeline-layer-state.h @@ -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