// $Id$
// -*- coding: utf-8; -*-
  
#ifndef _GANCHAN_H
#define _GANCHAN_H

/*
  animation_lib.h
  
  アニメーションサンプルウィジェット集のヘッダ
*/

#define WIDTH 610
#define HEIGHT 224
#define GROUND 80
#define MAPMAX 8
#define CNTMAX 50


/* ドローイングエリアにスプライトを描く */
static void draw_sprite(anime_pack *anime);

/* ドローイングエリアを更新 */
static void draw_animation(anime_pack *anime);

/* アニメーション画像を読み込む */
static GdkPixbufAnimation *read_anim(anime_pack *anime, char *filename);

/* スプライトを動かす */
static gint move_sprite(gpointer data);

/* スプライト用ピクスバッファを更新 */
static gint update_sprite(gpointer data);

static gint cb_expose_event(GtkWidget *widget, GdkEventExpose *event, gpointer data);

/* configureイベントのコールバック */
static gint cb_configure_event(GtkWidget *widget, GdkEventExpose *event, gpointer data);

/* 終了処理 */
static gint cb_delete_event(GtkWidget *widget, GdkEventExpose *event, gpointer data);

/* アニメーションgifが動くアニメーションサンプルウィジェット */
GtkWidget *my_animation_earth(GtkWidget *window, gboolean trans);

// 背景チェンジ
static gint move_back(gpointer data);

/* 背景画像の読み込みと設定 */
void set_background(GtkWidget *window);



#endif