mutter/clutter/cltr-texture.h

73 lines
1.2 KiB
C
Raw Normal View History

2005-03-29 23:26:36 +00:00
#ifndef _HAVE_CLTR_TEX_H
#define _HAVE_CLTR_TEX_H
#include "cltr.h"
2005-04-26 08:56:53 +00:00
2005-04-03 16:13:08 +00:00
struct CltrTexture
{
Pixbuf *pixb;
int width, height;
2005-04-26 08:56:53 +00:00
gboolean tiled;
2005-04-03 16:13:08 +00:00
int n_x_tiles, n_y_tiles;
int *tile_x_position, *tile_x_size, *tile_x_waste;
int *tile_y_position, *tile_y_size, *tile_y_waste;
GLuint *tiles;
2005-04-26 08:56:53 +00:00
GMutex *mutex;
2005-04-03 16:13:08 +00:00
gint refcnt;
};
2005-03-30 16:52:02 +00:00
CltrTexture*
cltr_texture_new(Pixbuf *pixb);
2005-03-29 23:26:36 +00:00
2005-04-27 22:17:45 +00:00
void
cltr_texture_ref(CltrTexture *texture);
void
cltr_texture_unref(CltrTexture *texture);
2005-04-26 08:56:53 +00:00
CltrTexture*
cltr_texture_no_tile_new(Pixbuf *pixb);
2005-03-31 18:19:25 +00:00
void
cltr_texture_unrealize(CltrTexture *texture);
void
cltr_texture_realize(CltrTexture *texture);
2005-03-29 23:26:36 +00:00
void
2005-03-30 16:52:02 +00:00
cltr_texture_render_to_gl_quad(CltrTexture *texture,
int x1,
int y1,
int x2,
int y2);
2005-03-29 23:26:36 +00:00
2005-04-22 18:03:55 +00:00
Pixbuf*
cltr_texture_get_pixbuf(CltrTexture* texture);
void
2005-04-26 08:56:53 +00:00
cltr_texture_lock(CltrTexture* texture);
void
cltr_texture_unlock(CltrTexture* texture);
void
cltr_texture_sync_pixbuf(CltrTexture* texture);
void
cltr_texture_force_rgb_data(CltrTexture *texture,
int width,
int height,
int *data);
2005-04-22 18:03:55 +00:00
2005-03-29 23:26:36 +00:00
#endif