mutter/cltr-texture.h

41 lines
688 B
C
Raw Normal View History

2005-03-29 18:26:36 -05:00
#ifndef _HAVE_CLTR_TEX_H
#define _HAVE_CLTR_TEX_H
#include "cltr.h"
2005-04-03 12:13:08 -04: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 11:52:02 -05:00
CltrTexture*
cltr_texture_new(Pixbuf *pixb);
2005-03-29 18:26:36 -05:00
2005-03-31 13:19:25 -05:00
void
cltr_texture_unrealize(CltrTexture *texture);
void
cltr_texture_realize(CltrTexture *texture);
2005-03-29 18:26:36 -05:00
void
2005-03-30 11:52:02 -05:00
cltr_texture_render_to_gl_quad(CltrTexture *texture,
int x1,
int y1,
int x2,
int y2);
2005-03-29 18:26:36 -05:00
#endif