]> git.tdb.fi Git - libs/gl.git/commit
Always bind textures in a specific texture unit
authorMikko Rasa <tdb@tdb.fi>
Wed, 27 Nov 2013 21:23:33 +0000 (23:23 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 27 Nov 2013 21:51:00 +0000 (23:51 +0200)
commit6fd9b09f47ff6a07bd5ca7f9e8887db3486bfcb1
tree42da27c64df72c0db2197920d7fc0920c8efea14
parent787e0f5daaccb912fd351b26f9cb9026719ab384
Always bind textures in a specific texture unit

This eliminates one level of global state, simplifying the API and
offering new optimization possibilities.  Since single-texturing is a
common use case, the parameterless bind/unbind functions have been left
in but changed to operate on unit 0.
source/environmentmap.cpp
source/shadowmap.cpp
source/texenv.cpp
source/texenv.h
source/texgen.cpp
source/texgen.h
source/texture.cpp
source/texture.h
source/texturing.cpp
source/texunit.cpp
source/texunit.h