mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-23 08:17:34 -04:00
parallel resource downloading
This commit is contained in:
parent
fb587a6d30
commit
fe5244d458
11 changed files with 116 additions and 40 deletions
|
@ -60,17 +60,17 @@ func send_filehandle(filehandle_path: String) -> void:
|
|||
func set_texture_format(format: RenderingDevice.DataFormat) -> void:
|
||||
match format:
|
||||
RenderingDevice.DATA_FORMAT_R8G8B8A8_UNORM:
|
||||
set_param("ext_texture_is_bgra", false)
|
||||
set_param(&"ext_texture_is_bgra", false)
|
||||
Debug.logclr("External texture format is set to RGBA8", Color.DIM_GRAY)
|
||||
RenderingDevice.DATA_FORMAT_B8G8R8A8_UNORM:
|
||||
set_param("ext_texture_is_bgra", true)
|
||||
set_param(&"ext_texture_is_bgra", true)
|
||||
Debug.logclr("External texture format is set to BGRA8", Color.DIM_GRAY)
|
||||
_:
|
||||
Debug.logerr("Texture format %d is not supported" % [format])
|
||||
|
||||
|
||||
func show_render() -> void:
|
||||
set_param("show_render", true)
|
||||
set_param(&"show_render", true)
|
||||
|
||||
|
||||
func set_param(param: StringName, value: Variant) -> void:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue