added basic damage tracking
This commit is contained in:
parent
158af1eb09
commit
75af34da96
11 changed files with 259 additions and 84 deletions
|
|
@ -101,12 +101,9 @@ void CHyprError::draw() {
|
|||
if (g_pHyprOpenGL->m_RenderData.pMonitor != PMONITOR)
|
||||
return; // wrong mon
|
||||
|
||||
const auto TRANSFORM = wlr_output_transform_invert(WL_OUTPUT_TRANSFORM_NORMAL);
|
||||
float matrix[9];
|
||||
wlr_box windowBox = {0, 0, PMONITOR->vecSize.x, PMONITOR->vecSize.y};
|
||||
wlr_matrix_project_box(matrix, &windowBox, TRANSFORM, 0, PMONITOR->output->transform_matrix);
|
||||
|
||||
g_pHyprOpenGL->renderTexture(m_tTexture, matrix, 255.f, 0);
|
||||
g_pHyprOpenGL->renderTexture(m_tTexture, &windowBox, 255.f, 0);
|
||||
}
|
||||
|
||||
void CHyprError::destroy() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue