mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-17 12:58:11 +00:00
[client] egl: refactor damage mesh generation into desktop_rects
This mesh will later be used to render only damaged portions of the desktop. We also moved the coordinate transformation for damage overlay into a matrix and computed by the shader.
This commit is contained in:
@@ -22,6 +22,8 @@
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "common/KVMFR.h"
|
||||
#include "interface/renderer.h"
|
||||
#include "desktop_rects.h"
|
||||
|
||||
struct DesktopDamage
|
||||
{
|
||||
@@ -37,4 +39,5 @@ void egl_damage_free(EGL_Damage ** damage);
|
||||
void egl_damage_setup(EGL_Damage * damage, int width, int height);
|
||||
void egl_damage_resize(EGL_Damage * damage, float translateX, float translateY,
|
||||
float scaleX, float scaleY);
|
||||
bool egl_damage_render(EGL_Damage * damage, bool rotate, const struct DesktopDamage * data);
|
||||
bool egl_damage_render(EGL_Damage * damage, LG_RendererRotate rotate,
|
||||
const struct DesktopDamage * data);
|
||||
|
Reference in New Issue
Block a user