Parent Directory | Revision Log | Patch
revision 1.2 by tjl, Tue Apr 8 20:22:22 2003 UTC | revision 1.3 by tjl, Fri Aug 15 19:39:29 2003 UTC | |
---|---|---|
# | Line 86 namespace Mosaic { | Line 86 namespace Mosaic { |
86 | /** Cause OpenGL to bind this texture. | /** Cause OpenGL to bind this texture. |
87 | */ | */ |
88 | void bind(GLenum target = GL_TEXTURE_2D) const { | void bind(GLenum target = GL_TEXTURE_2D) const { |
89 | if(!id) throw InvalidTexture(); | // No, it may be zero - it's allowed |
90 | // if(!id) throw InvalidTexture(); | |
91 | glBindTexture(target, id); | glBindTexture(target, id); |
92 | } | } |
93 | void unbind(GLenum target = GL_TEXTURE_2D) const { | void unbind(GLenum target = GL_TEXTURE_2D) const { |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |