ResourceInteractiveLoader

Inherits: Reference < Object Resource loader.

Description

Resource loader. This object is returned by ResourceLoader when performing an interactive load. It allows loading resources with high granularity, which makes it mainly useful for displaying loading bars or percentages.

Methods

Method Descriptions

  • Resource get_resource ( ) null otherwise.

  • int get_stage ( ) const get_stage_count.

  • int get_stage_count ( ) const poll) needed to completely load this resource.

  • Error poll ( ) Polls the loading operation, i.e. loads a data chunk up to the next stage. @GlobalScope.OK if the poll is successful but the load operation has not finished yet (intermediate stage). This means poll will have to be called again until the last stage is completed. @GlobalScope.ERR_FILE_EOF if the load operation has completed successfully. The loaded resource can be obtained by calling get_resource. Error code if the poll has failed.

  • Error wait ( ) poll fails. @GlobalScope.ERR_FILE_EOF if the load operation has completed successfully. The loaded resource can be obtained by calling get_resource. Error code if a poll has failed, aborting the operation.