Narendrabrsoft / cocos2d-android-1

Automatically exported from code.google.com/p/cocos2d-android-1
0 stars 0 forks source link

can't get click when use visit method to redraw #129

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Like this:

    public void visit(GL10 gl) {
        if (visiableRect.origin.x < 99999) {
        CGRect globalRect = clipRectFromRect();
        gl.glEnable(gl.GL_SCISSOR_TEST);
        gl.glScissor((int) globalRect.origin.x, (int) globalRect.origin.y,
        (int) globalRect.size.width, (int) globalRect.size.height);

        }
        super.visit(gl);
        if (visiableRect.origin.x < 99999)gl.glDisable(gl.GL_SCISSOR_TEST);
    }

hi,guys.
i use this method to redraw scene, however i found that child can't get move 
events
 in visiable area; (outside of the rect area can get move events).
please help me

What is the expected output? What do you see instead?
inside of the rect can move,like scrolling

What version of the product are you using? On what operating system?
lastest

Please provide any additional information below.

Original issue reported on code.google.com by tianzc0...@gmail.com on 3 Dec 2012 at 10:18

Attachments: