Hi bro,
i’m having troubles with GL_SCISSOR_TEST.
Under version 3.0 beta
i override visit() of layer (HelloWorld.cpp)
glEnable(GL_SCISSOR_TEST); glScissor(0, 0, 100, 100); Layer::visit(); glDisable(GL_SCISSOR_TEST);
The screen is still full, not cropped to glScissor
And under newest version 3.0 RC1
i can not override visit() so
i override visit(Renderer *renderer, const kmMat4& parentTransform, bool parentTransformUpdated)
glEnable(GL_SCISSOR_TEST); glScissor(0, 0, 100, 100); Layer::visit(renderer,parentTransform,parentTransformUpdated); glDisable(GL_SCISSOR_TEST);
and got no luck too.
All are tested on the HelloWorld project,just override visit(), no config
If in cocos2d-iphone and using glScissor, it worked.
So i don’t know how to use it with cocos2d-x
Please tell me if i do anything wrong.
Thanks