Skip to content

Commit

Permalink
Update some comments of the Layer class.
Browse files Browse the repository at this point in the history
  • Loading branch information
domchen committed Dec 27, 2024
1 parent 7f90db0 commit 478988b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/tgfx/layers/Layer.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class Layer {
* not create a new offscreen image to replace the original layer content. Instead, they add
* visual elements either below or above the layer content, blending directly with the existing
* content on the canvas. Each layer style uses the same layer content as input and draws on the
* canvas.
* canvas. Layer styles are applied before filters. The default value is an empty list.
*/
const std::vector<std::shared_ptr<LayerStyle>>& layerStyles() const {
return _layerStyles;
Expand All @@ -237,7 +237,8 @@ class Layer {
/**
* Returns the list of filters applied to the layer. Layer filters create new offscreen images
* to replace the original layer content. Each filter takes the output of the previous filter as
* input, and the final output is drawn on the canvas.
* input, and the final output is drawn on the canvas. Layer filters are applied after layer
* styles. The default value is an empty list.
*/
const std::vector<std::shared_ptr<LayerFilter>>& filters() const {
return _filters;
Expand Down

0 comments on commit 478988b

Please sign in to comment.