Howdy, Stranger!

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

Please limit one question/topic per post.
Please provide the following details depending on types of question

▼ For question regarding Editor, please provide:
- Live2D Software Version: (e.g. Cubism Editor 3.1.02, Euclid Editor 1.2.02)
- OS & Version: (e.g. Windows 10, macOS HighSierra)
- PC Model: (e.g. MacBookPro 2017)
- Graphics Specifications: (e.g. GeForce GTX 950M)
- Memory: (e.g. 8GB)
- Illustration Software used: (e.g. Photoshop, ClipStudio, SAI)
- Attach screenshot or capture video to show your problem:
---------------------------
▼ For question regarding SDK, please provide:
- For us to reproduce the issue you wish to inquire about, please provide either a minimum project file which has the issue. or specific instructions on how to reproduce the issue.
- Types and version of Cubism SDK you are using.
---------------------------
▼ For question regarding Cubism Software License,
For issues related to purchasing, your order, license key, and subscription, please contact us via contact form:
https://www.live2d.com/en/contact/contact_form

[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.

Comments

  • 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.