fixed examples
This commit is contained in:
parent
0329616148
commit
70f05160c5
2 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ int main() {
|
||||||
WindowWayland window(1280, 720, "Hello Input!");
|
WindowWayland window(1280, 720, "Hello Input!");
|
||||||
|
|
||||||
RenderingElementScaling element(
|
RenderingElementScaling element(
|
||||||
true, //opaque, wether the element is opague or semi-transparant
|
OpaqueType::FullyOpaque, //opaque, wether the element is opague or semi-transparant
|
||||||
2, //bufferWidth: the width of this elements pixel buffer
|
2, //bufferWidth: the width of this elements pixel buffer
|
||||||
1, //bufferHeight: the height of this elements pixel buffer
|
1, //bufferHeight: the height of this elements pixel buffer
|
||||||
FractionalToMapped(0.5), //anchorX: relative position where this elements x anchor (top-left) is placed to its parent x anchor
|
FractionalToMapped(0.5), //anchorX: relative position where this elements x anchor (top-left) is placed to its parent x anchor
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ int main() {
|
||||||
WindowWayland window(1280, 720, "Hello Input!");
|
WindowWayland window(1280, 720, "Hello Input!");
|
||||||
|
|
||||||
RenderingElement element(
|
RenderingElement element(
|
||||||
true,
|
OpaqueType::FullyOpaque,
|
||||||
2,
|
2,
|
||||||
1,
|
1,
|
||||||
FractionalToMapped(0.5), //anchorX: relative position where this elements x anchor (top-left) is placed to its parent x anchor
|
FractionalToMapped(0.5), //anchorX: relative position where this elements x anchor (top-left) is placed to its parent x anchor
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue