pplugins/pui/textures.h

33 lines
447 B
C

#ifndef TEXTURES_H
#define TEXTURES_H
enum {
TEX_BACKTILE,
TEX_BACKGLOW,
TEX_SLIDER1,
TEX_SLIDER1_PRE,
TEX_TROUGH1,
TEX_SLIDER2,
TEX_SLIDER2_PRE,
TEX_TROUGH2,
TEX_KNOB,
TEX_END,
};
struct PTextures {
bool initialised;
GLuint tex[TEX_END];
int w[TEX_END];
int h[TEX_END];
void InitTextures();
void BindTexture(int texture, int width, int height, const unsigned char *data, int format = GL_RGBA);
};
#endif /* TEXTURES_H */