little less overloaded core functionality

This commit is contained in:
BlackMATov
2020-01-09 13:26:29 +07:00
parent 349d88bc05
commit 0766d75ba7
18 changed files with 117 additions and 196 deletions

View File

@@ -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;