mutter/clutter/cltr-texture.h

41 lines
688 B
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-03 16:13:08 +00:00
typedef struct CltrTexture CltrTexture;
struct CltrTexture
{
Pixbuf *pixb;
int width, height;
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;
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-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
#endif