INLINE C++ for direct control over OpenGL shaders

Previous topic - Next topic

r0ber7

Hi,

I was thinking: could you use INLINE C++ to control the OpenGL shaders?
I found some code:

http://r3dux.org/2013/08/a-simple-c-opengl-shader-loader/

Could that be of any use? I'm not very good in C++ (yet).

MrTAToad

There should be some INLINE OpenGL stuff around the forums, which may or may not already have the shader functions in - if not, then it should be easy to add your code to it.

r0ber7

Hmm, thank you. I seem to remember that the X_ commands are 3D only. Will this no-brainer solution work in 2D as well? :)

kanonet

Im pretty sure X_SHADER... commands work with 2D too, but cant test right now. If not or if you need more advanced shader stuff, send me a PN, i have done some work in last weeks.
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64