new PrimitivesStack()
sdk/operations/filter-operation/filters/primitives-stack.js, line 61
Methods
-
clear()
sdk/operations/filter-operation/filters/primitives-stack.js, line 85 -
Clears the stack
-
dispose()
sdk/operations/filter-operation/filters/primitives-stack.js, line 215 -
Cleans up this instance
-
disposeRenderTextures()
sdk/operations/filter-operation/filters/primitives-stack.js, line 205 -
Disposes the render textures, frees some memory
-
isDirtyForRenderer(renderer){Boolean}
sdk/operations/filter-operation/filters/primitives-stack.js, line 176 -
Checks if this operation is dirty for the given renderer
Name Type Description renderer
PhotoEditorSDK.Engine.BaseRenderer Returns:
Type Description Boolean -
isEmpty(){Boolean}
sdk/operations/filter-operation/filters/primitives-stack.js, line 167 -
Returns whether this stack is empty
Returns:
Type Description Boolean -
push(primitive)
sdk/operations/filter-operation/filters/primitives-stack.js, line 78 -
Adds the given primitive to the stack
Name Type Description primitive
PhotoEditorSDK.Operations.FilterOperation.Filter.Primitive -
render(sdk, inputTexture, outputTexture){Promise}
sdk/operations/filter-operation/filters/primitives-stack.js, line 101 -
This takes the output sprite's current texture and renders it to this stack's internal render texture. It then uses the internal texture as a uniform for a blend shader and renders the sprite with the original texture and the blend shader to the outputTexture
Name Type Description sdk
PhotoEditorSDK inputTexture
PhotoEditorSDK.Engine.Texture outputTexture
PhotoEditorSDK.Engine.RenderTexture Returns:
Type Description Promise -
setDirty(dirty)
sdk/operations/filter-operation/filters/primitives-stack.js, line 196 -
Sets the dirtiness for all renderers
Name Type Description dirty
Boolean -
setDirtyForRenderer(dirty, renderer)
sdk/operations/filter-operation/filters/primitives-stack.js, line 188 -
Sets the dirtiness for the given renderer
Name Type Description dirty
Boolean renderer
PhotoEditorSDK.Engine.BaseRenderer