In the draw method of a CCLayer subclass I am trying to draw 2 pixels/points, on the line x=150 where y=239 or 240.
改变 x的价值会影响/解决这一问题。
使用:
glColor4f(0.8, 1.0, 0.76, 1.0);
for (int i = 239; i < 241; i++) {
ccDrawPoint(CGPointMake(150, i));
}
what happens is that there is a point on y=239 and 241. This only happens on line y=240, which happens to be half of 480, the screen s height.
如果我不使用一只 lo子,2只ccDraw Point,那么它就仍然做正常的工作。
然而,如果我用一条线凌驾于/拦截和=240,那么这条线就没有中断,那么它就不单单是这样说了。