I am using Cocos2D-X 2.3 under Marmalade 7.3 and I am trying to draw a line on my screen.
The code that I am using is below.
void draw()
{
glLineWidth(10);
ccDrawColor4B(0, 0, 0, 255);
ccDrawLine(ccp(0, screenSize.height), ccp(screenSize.width, screenSize.height));
}
With this code the line is drawn, but no matter what I do I can change its width. It seems that the glLineWidth function simply doesn't work.