mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-14 16:09:06 +07:00
little less overloaded core functionality
This commit is contained in:
@@ -111,12 +111,14 @@ namespace
|
||||
the<vfs>().register_scheme_alias(
|
||||
"ships",
|
||||
url("piratepack://PNG/Retina/Ships"));
|
||||
|
||||
image texture_image;
|
||||
if ( !images::try_load_image(texture_image, the<vfs>().read(url("ships://ship (3).png"))) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
shader_ = the<render>().create_shader(
|
||||
vs_source_cstr, fs_source_cstr);
|
||||
|
||||
texture_ = the<render>().create_texture(
|
||||
the<vfs>().read(url("ships://ship (3).png")));
|
||||
shader_ = the<render>().create_shader(vs_source_cstr, fs_source_cstr);
|
||||
texture_ = the<render>().create_texture(texture_image);
|
||||
|
||||
if ( !shader_ || !texture_ ) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user