ResourceInteractiveLoader
Category: Core
Interactive loader.
Interactive Resource loader. This object is returned by when performing an interactive load. It allows to load with high granularity, so this is mainly useful for displaying loading bars/percentages.
- Resource get_resource ( )
Returns the load stage. The total amount of stages can be queried with .
- int get_stage_count ( ) const
Returns the total amount of stages (calls to ) needed to completely load this resource.
- Error poll ( )
Polls the loading operation, i.e. loads a data chunk up to the next stage.
Returns if the load operation has completed successfully. The loaded resource can be obtained by calling get_resource.
Returns another code if the poll has failed.
Polls the loading operation successively until the resource is completely loaded or a poll fails.
Returns another code if a poll has failed, aborting the operation.