Newbie question - how to link program

I am a complete beginner to the Shading Language. I read that there are 3 components to a simple shader, source code for vertex shader, source code for fragment shader, and application code to initialize the 2 shaders. If I want to compile and link the shader program, do I put make a seperate file for vertex code, fragment code, and application code? How do I link the three files together and compile successfully? I am using Linux. Some example lines of code would be nice. Thanks.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.