set_viewport as rect

This commit is contained in:
2018-10-24 19:25:32 +07:00
parent 51fc632125
commit 5624936f58
6 changed files with 14 additions and 16 deletions

View File

@@ -178,8 +178,7 @@ int e2d_main() {
the<vfs>().open(url("ships://ship (3).png")));
const auto shader = the<render>().create_shader(
make_memory_stream(buffer(vs_source_cstr, std::strlen(vs_source_cstr))),
make_memory_stream(buffer(fs_source_cstr, std::strlen(fs_source_cstr))));
vs_source_cstr, fs_source_cstr);
const auto indices = generate_cube_indices();
const auto index_buffer = the<render>().create_index_buffer(