This project shows how to set up a basic texture ( onto another texture ) system in OpenGl using OpenFrameworks ...
PlumCantaloupe/Projective-Texture-Shader-in-Cinder
Showing how one could set up spotlight textures or the like ( using Cinder Frameworks )
C++