Displaying 2 results from an estimated 2 matches for "donepaintscreen".
Did you mean:
clonepaintscreen
2006 Dec 06
1
Drawing On the Desktop
...y might exist. I realize beryl is not the same as compiz, but I
hope that the differences are not too big on this matter, if not excuse me for
this post.
My drawing currently works like this:
PaintScreen: Paint the screen with a beryl specific mask called
PAINT_SCREEN_ORDER_BACK_TO_FRONT_MASK
DonePaintScreen: Damage Desktop Window
PaintWindow: if desktop window then render snow
Is this really not so good? Can it be done better?
Also, the continous redrawing is rather expensive, is there a good way to
implement some Max FPS option? I have tried without success so far(2)
Thanks in advance,
Eckhart P...
2007 Jun 12
0
[PATCH] Added rotation state.
...ube.h
+++ b/include/cube.h
@@ -77,6 +77,13 @@ typedef enum _PaintOrder
FTB
} PaintOrder;
+typedef enum _RotationState
+{
+ RotationNone = 0,
+ RotationChange,
+ RotationManual
+} RotationState;
+
typedef struct _CubeScreen {
PreparePaintScreenProc preparePaintScreen;
DonePaintScreenProc donePaintScreen;
@@ -98,6 +105,8 @@ typedef struct _CubeScreen {
int xRotations;
PaintOrder paintOrder;
+ RotationState rotationState;
+
GLfloat distance;
GLushort color[3];
GLfloat tc[12];
diff --git a/plugins/cube.c b/plugins/cube.c
index 7c4df03.....