diff options
author | Will McKinnon <[email protected]> | 2022-10-20 21:18:25 -0400 |
---|---|---|
committer | Will McKinnon <[email protected]> | 2022-10-20 21:18:25 -0400 |
commit | f27ee32bd85447f1b82382ad33247b99f257667e (patch) | |
tree | 83a4e2dd5614d26b2fbbeda3cc9ac5767fd37ec0 /sway/desktop/fx_renderer.c | |
parent | 734dda8ffcfe8a77b6e7ccd5ecbb029b81531575 (diff) |
style: cleaned up comments
Diffstat (limited to 'sway/desktop/fx_renderer.c')
-rw-r--r-- | sway/desktop/fx_renderer.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/sway/desktop/fx_renderer.c b/sway/desktop/fx_renderer.c index e644eedd..eb281bd5 100644 --- a/sway/desktop/fx_renderer.c +++ b/sway/desktop/fx_renderer.c @@ -1,8 +1,5 @@ -/* - primarily stolen from: - - https://gitlab.freedesktop.org/wlroots/wlroots/-/tree/master/render/gles2 - - https://github.com/vaxerski/Hyprland/blob/main/src/render/OpenGL.cpp -*/ +// The original wlr_renderer was heavily referenced in making this project +// https://gitlab.freedesktop.org/wlroots/wlroots/-/tree/master/render/gles2 // TODO: add push / pop_gles2_debug(renderer)? @@ -21,11 +18,6 @@ #include "sway/output.h" #include "sway/server.h" - -/************************ - Matrix Consts -*************************/ - static const GLfloat verts[] = { 1, 0, // top right 0, 0, // top left @@ -33,10 +25,6 @@ static const GLfloat verts[] = { 0, 1, // bottom left }; -/************************ - General Functions -*************************/ - static GLuint compile_shader(GLuint type, const GLchar *src) { GLuint shader = glCreateShader(type); glShaderSource(shader, 1, &src, NULL); @@ -105,7 +93,6 @@ bool init_frag_shader(struct gles2_tex_shader *shader, GLuint prog) { return true; } -// TODO: Hyprland way? struct fx_renderer *fx_renderer_create(struct wlr_egl *egl) { struct fx_renderer *renderer = calloc(1, sizeof(struct fx_renderer)); if (renderer == NULL) { @@ -230,10 +217,6 @@ void fx_renderer_scissor(struct wlr_box *box) { } } -/************************ - Rendering Functions -*************************/ - bool fx_render_subtexture_with_matrix(struct fx_renderer *renderer, struct wlr_texture *wlr_texture, const struct wlr_fbox *src_box, const struct wlr_box *dst_box, const float matrix[static 9], float alpha, int radius) { |