Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/view.cc')
-rw-r--r--src/client/view.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/view.cc b/src/client/view.cc
index 6f5ceca..aaf8210 100644
--- a/src/client/view.cc
+++ b/src/client/view.cc
@@ -19,6 +19,7 @@
#include "client/video.h"
#include "render/draw.h"
#include "render/render.h"
+#include "render/textures.h"
#include "core/core.h"
#include "math/mathlib.h"
#include "sys/sys.h"
@@ -100,7 +101,7 @@ void draw_loader()
{
using namespace render;
- glBindTexture(GL_TEXTURE_2D, render::textures[0]); // bitmaps/loader.tga
+ render::Textures::bind("bitmaps/loader");
gl::color(1.0f, 1.0f, 1.0f, 1.0f);
gl::begin(gl::Quads);
@@ -206,7 +207,7 @@ void draw_cursor()
using namespace render;
- glBindTexture(GL_TEXTURE_2D, render::textures[2]); // bitmaps/crosshairs.tga
+ render::Textures::bind("bitmaps/crosshair");
math::Color color;
if (draw_crosshaircolor && draw_crosshaircolor->value()) {
@@ -288,7 +289,7 @@ void frame(float seconds)
}
// draw text elements
- glBindTexture(GL_TEXTURE_2D, render::textures[1]); // bitmaps/conchars.tga
+ render::Textures::bind("bitmaps/conchars");
console::draw();
chat::draw();