Projects > cpp > Issues > Feature #3746

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Deprecate DrawPrimitives

Feature #3746 [Closed]
nite 2014-01-17 01:28 . Updated over 10 years ago

Deprecate DrawPrimitives to use DrawNode, convert the following test cases

ActionsTest,
DrawPrimitivesTest,
ArmatureScene,
LabelTest,
LabelTestNew,
TileMapTest

nite 2014-01-17 01:34
  • Subject changed from DrawPrimitives use RenderCommand to Deprecate DrawPrimitives
  • Description updated (diff)
nite 2014-01-17 01:34
  • Description updated (diff)
zhangbin@cocos2d-x.org 2014-02-19 03:41
  • Description updated (diff)
  • Assignee set to zhangbin@cocos2d-x.org
zhangbin@cocos2d-x.org 2014-02-21 09:53

@Nite
I found that DrawNode can't replace the functions in DrawPrimitives. Reason:
Methods in DrawPrimitives used many types of glDrawArrays, such as GL_LINES, GL_POINTS, GL_LINE_LOOP, GL_LINE_STRIP and so on.
But methods in DrawNode only used type GL_TRIANGLES.

And I think there is a problem in the implementation of DrawNode:
Developers can't remove specific shapes.

So I think we should refactor the DrawNode first before deprecate DrawPrimitives.

zhangxm 2014-02-26 01:48
  • Target version changed from 3.0-rc0 to Candidate

As @zhangbin said, i put this issue to next version.

zhangxm 2014-02-26 01:49
  • Parent task deleted (#3650)
zhangxm 2014-03-17 04:04
  • Target version changed from Candidate to 3.0-rc1
zhangxm 2014-03-24 09:34
  • Target version changed from 3.0-rc1 to v3.1
zhangxm 2014-04-05 02:49
  • Assignee changed from zhangbin@cocos2d-x.org to zhangxm
zhangxm 2014-05-20 06:56
  • Assignee changed from zhangxm to dabingnn
  • Target version changed from v3.1 to v3.2
zhangxm 2014-05-29 08:10
  • Target version changed from v3.2 to v3.3
zhangxm 2014-09-10 03:41
  • Assignee changed from dabingnn to huangsw
zhangxm 2014-09-16 10:25
  • Status changed from New to Closed

Atom PDF

Status:Closed
Start date:2014-01-17
Priority:Normal
Due date:
Assignee:huangsw
% Done:

0%

Category:all
Target version:v3.3
Estimated time:24.00 points