render to image surface
This commit is contained in:
@@ -12,6 +12,10 @@
|
||||
#include <cairo.h>
|
||||
#include <cairo-xlib.h>
|
||||
|
||||
#define STATUS_NOTHING 0
|
||||
#define STATUS_REDRAW 1
|
||||
#define STATUS_QUIT 2
|
||||
|
||||
typedef struct {
|
||||
cairo_t *cairo;
|
||||
cairo_matrix_t matrix;
|
||||
@@ -33,6 +37,11 @@ typedef struct {
|
||||
Atom wm_protocols;
|
||||
Atom wm_delete_window;
|
||||
cairo_surface_t *surface;
|
||||
cairo_t *front_context;
|
||||
|
||||
cairo_surface_t *buffer_surface;
|
||||
unsigned char *buffer;
|
||||
|
||||
struct timeval start_time;
|
||||
unsigned long frames;
|
||||
double elapsed, frametime;
|
||||
|
||||
Reference in New Issue
Block a user