cginternals / globjects

C++ library strictly wrapping OpenGL objects.
https://globjects.org
MIT License
539 stars 59 forks source link

TransformFeedback::setVaryings(): Take std::string instead of const char* #268

Closed mrzzzrm closed 9 years ago

mrzzzrm commented 9 years ago

For the two convenience methods taking std::array and std::vector as parameters, change the template type from const char* to std::string. Note that, e.g., {"o_position", "o_color"} can still be used as a parameter. Programs that are not hard-coding the names of their transform feedback varyings benefit from this change.