Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Dear Users,

Now, we are seeking users who can give us a hand with expertise to evolve our software more dynamically.
If you are willing to help us, we’d like you to make a registration for “Live2D Creators Circle” via the link below.
Designers, programmers, translators are especially welcomed so far.
(More detailed explanation will be given to you before we ask you to do tasks)

[SDK] Can Cocos2d-x SDK be used for generic opengl game?

Is there any code specific for cocos2d-x which prevent it been used for generic opengl game? That will open up lots of possibility if live2d sdk can be used in all other opengl game engine.

There're live2d::DrawProfileCocos2D::preDraw() and live2d::DrawProfileCocos2D::postDraw() which (judge by name) seems only work for Cocos2D.


  • You can use generic openGL game.

    But live2d::DrawProfileCocos2D::preDraw(and postDraw) only works for Cocos2d-x.
    It is as you say.
    In this method,OpenGL is back to the original (as in cocos2d-x has been configured).
    If you use other game engine, it should work with correct OpenGL state setteings without this method.(this can be a little difficult)

    If you try with other game engine, please share how it did or didn't work out!
Sign In or Register to comment.