Hello, i need to draw rectangle with border. I want to make function like this:
drawRectangle(float width, float height, float backgroundR, float backgroundG, float backgroundB, float borderSize, float borderR, float borderG, float borderB)
I will often change function parameters, so i need good performance. And i want rotate it too. My first idea was do it in fragment shader with gl_FragCoord, but what if i will want to rotate it? My next idea was render it to texture and it then map on two triangles, but is it fast enough? How can i do it? I am using OpenGL 3.3. Sorry for my bad english.