English 中文(简体)
无法从宇宙中提取
原标题:Unable to draw in cocos2d

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,那么这条线就没有中断,那么它就不单单是这样说了。

问题回答

暂无回答




相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签