X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=render.h;h=22c05726ddd0222a7b567e6b47c1c87ddea18540;hb=859178c6d4b2a9b9a95f8b01b113f589ce0f197f;hp=ea88ecc4df956c54f206f50a3b5c5946a17aea43;hpb=22f62f001f21d1b91fefd9fc495c122d9ddf205a;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/render.h b/render.h index ea88ecc..22c0572 100644 --- a/render.h +++ b/render.h @@ -10,6 +10,7 @@ #include "shaders/blit.h" #include "shaders/blitblur.h" #include "shaders/blitcolour.h" +#include "shaders/blit_transition.h" #define WORKSHOP_PREVIEW_WIDTH 504 #define WORKSHOP_PREVIEW_HEIGHT 336 @@ -33,7 +34,8 @@ static struct pipeline{ framebuffer *fb_main, *fb_water_reflection, *fb_water_beneath, - *fb_workshop_preview; + *fb_workshop_preview, + *fb_network_status; int ready; } gpipeline; @@ -190,6 +192,22 @@ framebuffers[] = .attachment = GL_DEPTH_STENCIL_ATTACHMENT } } + }, + { + "network_status_ui", + .link = &gpipeline.fb_network_status, + .resolution_div = 0, + .fixed_w = 128, .fixed_h = 48, + .attachments = + { + { + "colour", k_framebuffer_attachment_type_texture, + .internalformat = GL_RGB, + .format = GL_RGB, + .type = GL_UNSIGNED_BYTE, + .attachment = GL_COLOR_ATTACHMENT0 + } + } } }; @@ -597,6 +615,7 @@ static void render_init(void) shader_blit_register(); shader_blitblur_register(); shader_blitcolour_register(); + shader_blit_transition_register(); vg_async_call( async_render_init, NULL, 0 ); }