mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-14 16:09:06 +07:00
custom color and depth formats for render target
This commit is contained in:
@@ -186,7 +186,9 @@ int e2d_main() {
|
||||
|
||||
const auto rt = the<render>().create_render_target(
|
||||
the<window>().real_size() / 10u,
|
||||
render_target::type::color_and_depth);
|
||||
pixel_declaration::pixel_type::rgba8,
|
||||
pixel_declaration::pixel_type::depth16,
|
||||
render_target::external_texture::color_and_depth);
|
||||
|
||||
const keyboard& k = the<input>().keyboard();
|
||||
while ( !the<window>().should_close() && !k.is_key_just_released(keyboard_key::escape) ) {
|
||||
|
||||
Reference in New Issue
Block a user