triangle group code reorganization
This commit is contained in:
10
initcairo.h
10
initcairo.h
@@ -17,7 +17,6 @@
|
||||
#define STATUS_QUIT 2
|
||||
|
||||
typedef struct {
|
||||
cairo_t *cairo;
|
||||
cairo_matrix_t matrix;
|
||||
unsigned int width;
|
||||
unsigned int height;
|
||||
@@ -27,10 +26,9 @@ typedef struct {
|
||||
double center_x;
|
||||
double center_y;
|
||||
double radius;
|
||||
} DrawingContext;
|
||||
} DimensionsInfo;
|
||||
|
||||
typedef struct {
|
||||
DrawingContext *context;
|
||||
Display *display;
|
||||
Window win;
|
||||
Colormap cmap;
|
||||
@@ -40,11 +38,13 @@ typedef struct {
|
||||
cairo_t *front_context;
|
||||
|
||||
cairo_surface_t *buffer_surface;
|
||||
cairo_t *buffer_context;
|
||||
unsigned char *buffer;
|
||||
|
||||
struct timeval start_time;
|
||||
unsigned long frames;
|
||||
double elapsed, frametime;
|
||||
DimensionsInfo *dim;
|
||||
} GraphicsInfo;
|
||||
|
||||
GraphicsInfo *initCairo(int screen, int mask, int width, int height, const char *name);
|
||||
@@ -52,7 +52,7 @@ void destroyCairo(GraphicsInfo *info);
|
||||
|
||||
void startTimer(GraphicsInfo *info);
|
||||
void waitUpdateTimer(GraphicsInfo *info);
|
||||
int checkEvents(GraphicsInfo *info, int (*process)(GraphicsInfo*, XEvent*), void (*draw)(DrawingContext *));
|
||||
void updateDimensions(DrawingContext *ctx);
|
||||
int checkEvents(GraphicsInfo *info, int (*process)(GraphicsInfo*, XEvent*), void (*draw)(void *));
|
||||
void updateDimensions(DimensionsInfo *ctx);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user