上のサンプルを書いてからメモリイメージに描画できるなら SDL*1の SDL_Surface にも描画できるんじゃないかしら?と思って試してみました. hello_on_SDL.c #include <cairo.h> #include <SDL.h> #include <stdlib.h> #define SCREEN_WIDTH 640 #define SCREEN_HEIGHT 480 int main (int argc, char *argv[]) { SDL_bool done; SDL_Surface* screen; cairo_surface_t *surface; cairo_t *cr; /* init SDL system and screen surface */ SDL_Init(SDL_INIT_VIDEO); atexit(SDL_Quit); screen