]> git.tdb.fi Git - libs/gl.git/blob - source/tag.cpp
Set both min and mag filters when exporting textures
[libs/gl.git] / source / tag.cpp
1 #include <cstring>
2 #include <msp/core/hash.h>
3 #include "tag.h"
4
5 namespace Msp {
6 namespace GL {
7
8 Tag::Tag(const char *s):
9         id((s && *s) ? hash32(s, strlen(s)) : 0)
10 { }
11
12 Tag::Tag(const std::string &s):
13         id(s.empty() ? 0 : hash32(s))
14 { }
15
16 } // namespace GL
17 } // namespace Msp