mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-11-21 06:59:49 -05:00
output: add initial renderer
This will only render the clearing for now as there is no damage tracking yet.
This commit is contained in:
parent
ab1eac11df
commit
9b1641aa14
7 changed files with 212 additions and 1 deletions
11
desktop/util.h
Normal file
11
desktop/util.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue