2
Copyright © 2008 Neil Roberts
3
Copyright © 2008 Christian Persch
5
This program is free software: you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation, either version 3 of the License, or
8
(at your option) any later version.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
15
You should have received a copy of the GNU General Public License
16
along with this program. If not, see <http://www.gnu.org/licenses/>.
19
#ifndef AR_CARD_TEXTURES_CACHE_H
20
#define AR_CARD_TEXTURES_CACHE_H
22
#include <glib-object.h>
23
#include <cogl/cogl.h>
26
#include "ar-card-theme.h"
30
#define AR_TYPE_CARD_TEXTURES_CACHE (ar_card_textures_cache_get_type())
31
#define AR_CARD_TEXTURES_CACHE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), AR_TYPE_CARD_TEXTURES_CACHE, ArCardTexturesCache))
32
#define AR_CARD_TEXTURES_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), AR_TYPE_CARD_TEXTURES_CACHE, ArCardTexturesCacheClass))
33
#define AR_IS_CARD_TEXTURES_CACHE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AR_TYPE_CARD_TEXTURES_CACHE))
34
#define AR_IS_CARD_TEXTURES_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), AR_TYPE_CARD_TEXTURES_CACHE))
35
#define AR_CARD_TEXTURES_CACHE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), AR_TYPE_CARD_TEXTURES_CACHE, ArCardTexturesCacheClass))
37
typedef struct _ArCardTexturesCache ArCardTexturesCache;
38
typedef struct _ArCardTexturesCacheClass ArCardTexturesCacheClass;
39
typedef struct _ArCardTexturesCachePrivate ArCardTexturesCachePrivate;
41
struct _ArCardTexturesCacheClass
43
GObjectClass parent_class;
46
struct _ArCardTexturesCache
50
ArCardTexturesCachePrivate *priv;
53
GType ar_card_textures_cache_get_type (void);
55
ArCardTexturesCache *ar_card_textures_cache_new (void);
57
void ar_card_textures_cache_drop (ArCardTexturesCache *cache);
59
void ar_card_textures_cache_set_theme (ArCardTexturesCache *cache,
62
ArCardTheme *ar_card_textures_cache_get_theme (ArCardTexturesCache *cache);
64
CoglHandle ar_card_textures_cache_get_card_texture (ArCardTexturesCache *cache,
67
CoglHandle ar_card_textures_cache_get_card_texture_by_id (ArCardTexturesCache *cache,
70
CoglHandle ar_card_textures_cache_get_slot_texture (ArCardTexturesCache *cache);
74
#endif /* AR_CARD_TEXTURES_CACHE_H */