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