c++ - how to change the hsv of texture in opengl -


this question has answer here:

im having 3 dimensional array of rgba texture , im displaying on viewport.

how can change color hue, saturation , value input user gave . im new opengl need guidance change hsv according user selection .

get glm , @ implementation in gtx/color_space.inl of these functions

template<typename valtype > detail::tvec3< valtype >    hsvcolor (detail::tvec3< valtype > const &rgbvalue)  template<typename valtype > detail::tvec3< valtype >    rgbcolor (detail::tvec3< valtype > const &hsvvalue) 

prototyped in gtx/color_space.hpp


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -