3 This file is part of libmspgl
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
11 #include "version_1_3.h"
23 bool TexUnit::set_texture(const Texture *tex)
25 bool result=(tex!=texture);
30 TexUnit &TexUnit::activate(unsigned n)
35 if(cur_unit!=&units[n] && (cur_unit || n))
37 require_version(1, 3);
38 glActiveTexture(GL_TEXTURE0+n);
45 TexUnit &TexUnit::current()
52 vector<TexUnit> TexUnit::units;
53 TexUnit *TexUnit::cur_unit=0;