Hello,
my problem is that lines don’t draw anymore on cocos2dx 3rc (it worked in alpha0).
I’m doing it like this:
// setup
scene->addChild(gameMainLayer);
scene->addChild(myGUIlayer);
scene->addChild(debugLayerForGame); // this doesn't draw lines anymore
scene->addChild(debugLayerForGUI);
// in my game world debug class:
virtual void draw(cocos2d::Renderer *renderer, const kmMat4& transform, bool transformUpdated)
{
cocos2d::DrawPrimitives::setDrawColor4F(...);
cocos2d::DrawPrimitives::drawLine(...);
}
Am I missing something in the new draw function?
Edit: I also tried debugging OpenGL with AMD GPU Perf Studio in Windows 8, but it doesn’t want to connect( though this is supposedly an issue with GPU Perf studio not liking Windows8).