Add background texture
parent
a5cd60d516
commit
47d1d19a6c
|
@ -1,6 +1,7 @@
|
||||||
#include <pugl/pugl.h>
|
#include <pugl/pugl.h>
|
||||||
#include "pui.h"
|
#include "pui.h"
|
||||||
|
|
||||||
|
#include "textures/background.c"
|
||||||
#include "textures/slider1-vert.c"
|
#include "textures/slider1-vert.c"
|
||||||
#include "textures/slider1-vert-prelight.c"
|
#include "textures/slider1-vert-prelight.c"
|
||||||
#include "textures/trough1-vertical.c"
|
#include "textures/trough1-vertical.c"
|
||||||
|
@ -29,6 +30,10 @@ void PTextures::InitTextures()
|
||||||
|
|
||||||
glGenTextures(TEX_END, this->tex);
|
glGenTextures(TEX_END, this->tex);
|
||||||
|
|
||||||
|
BindTexture(TEX_BACK,
|
||||||
|
background.width,
|
||||||
|
background.height,
|
||||||
|
background.pixel_data);
|
||||||
BindTexture(TEX_SLIDER1,
|
BindTexture(TEX_SLIDER1,
|
||||||
slider1_vert.width,
|
slider1_vert.width,
|
||||||
slider1_vert.height,
|
slider1_vert.height,
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
#define TEXTURES_H
|
#define TEXTURES_H
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
TEX_BACK,
|
||||||
|
|
||||||
TEX_SLIDER1,
|
TEX_SLIDER1,
|
||||||
TEX_SLIDER1_PRE,
|
TEX_SLIDER1_PRE,
|
||||||
TEX_TROUGH1,
|
TEX_TROUGH1,
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue