mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-14 16:09:06 +07:00
set_viewport as rect
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user