Package com.banuba.sdk.scene
Interface RenderList
- All Known Implementing Classes:
RenderList.CppProxy
public interface RenderList
A list of render task.
Every task consist of entites layer to draw, render target in which draw, and optional
list of sub geomteries names. Cannot be changed after effect activation.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBlitTargetToTask
(RenderTarget dst, int taskIndex) add blit task to layer.int
addTask
(Layer layer, RenderTarget target, ArrayList<String> subGeoms) add render task to layer.void
clear()
Remove all render tasks.static RenderList
Fabric method for render_list creating.getName()
getTaskLayer
(int taskIndex) return render rask layer, by render task index.long
getTaskSubGeometries
(int taskIndex) return render selected task sub geometries.getTaskTarget
(int taskIndex) return render rask render target, by render task index.void
Set name of the render list
-
Method Details
-
setName
Set name of the render list- Parameters:
name
- (string)
-
getName
- Returns:
- name (string) of the render list
-
getTasksCount
long getTasksCount() -
addTask
int addTask(@Nullable Layer layer, @Nullable RenderTarget target, @Nullable ArrayList<String> subGeoms) add render task to layer.- Parameters:
layer
- (layer): entities layer.target
- (render_target): needed render target. Do not change if previous target was the same. (Target changing will trigger start/finish behavior.)subGeoms
- (optional<list>): if specified: only sub geometries from this list will be rendered.
-
addBlitTargetToTask
add blit task to layer. -
getTaskLayer
return render rask layer, by render task index. Throw if index >= tasks size.- Parameters:
taskIndex
- (int): render task index.- Returns:
- task layer (layer)
-
getTaskSubGeometries
return render selected task sub geometries. If list is empty - all sub geometries will be rendered- Parameters:
taskIndex
- (int): render task index.- Returns:
- sub geometries list (list
): list of sub geometries to render
-
getTaskTarget
return render rask render target, by render task index. Throw if index >= tasks size.- Parameters:
taskIndex
- (int): render task index.- Returns:
- task render target (render_target)
-
clear
void clear()Remove all render tasks. -
create
Fabric method for render_list creating.- Returns:
- created render list (render_list).
-