output: add initial renderer

This will only render the clearing for now as there is no damage
tracking yet.
This commit is contained in:
Jente Hidskes 2020-07-02 23:47:41 +02:00
parent ab1eac11df
commit 9b1641aa14
No known key found for this signature in database
GPG key ID: 04BE5A29F32D91EA
7 changed files with 212 additions and 1 deletions

11
desktop/util.h Normal file
View file

@ -0,0 +1,11 @@
#ifndef CG_UTIL_H
#define CG_UTIL_H
#include <wlr/types/wlr_box.h>
/** Apply scale to a width or height. */
int scale_length(int length, int offset, float scale);
void scale_box(struct wlr_box *box, float scale);
#endif