How to hook up alpha channel of a texture in C++?

Thank you so much for sharing, I’ve wasted so much time trying to find this!