Return used sampler names and units so application could configure shader's sampler uniform(s). Cubemap just used one sampler at unit 0 with "samplerObj" as its name. */
| 100 | Cubemap just used one sampler at unit 0 with "samplerObj" as its name. |
| 101 | */ |
| 102 | void Texture::GetActiveSamplerInfo(std::vector<std::string>& names, |
| 103 | std::vector<GLint>& units) { |
| 104 | names.clear(); |
| 105 | names.push_back(std::string("samplerObj")); |
| 106 | units.clear(); |
| 107 | units.push_back(0); |
| 108 | } |