I am porting a code from DirectX/HLSL to OpenGL/GLSL. I am stuck with inputting two vertex buffers into vertex shader. My code in HLSL is as below:

HLSL:
Code :
float4 vs_main(float4 pos0 : POSITION0, float4 pos1 : POSITION1)
{
   return something;
}


I need to get two positions, two texture coords and ... and i need the GLSL and C++ code to bind the vertex buffers. I googled this and searched my opengl book, but no luck.

Any help is appreciated.