Coder Social home page Coder Social logo

Issue11942Test::Issue11942Test(): "drawCircle() with width" is not working correct (The second circle has no bigger lines) about axmol HOT 7 CLOSED

axmolengine avatar axmolengine commented on August 13, 2024
Issue11942Test::Issue11942Test(): "drawCircle() with width" is not working correct (The second circle has no bigger lines)

from axmol.

Comments (7)

halx99 avatar halx99 commented on August 13, 2024

Does official v4 works?

from axmol.

halx99 avatar halx99 commented on August 13, 2024

Well, mybe because at windows, engine-x use angleproject GLES, try switch to OpenGL, then check whether setLineWidth(width) works?

from axmol.

halx99 avatar halx99 commented on August 13, 2024

Just change the macros 'CC_USE_GLES_ON_DESKTOP=0' at CCPlatformConfig.h

from axmol.

aismann avatar aismann commented on August 13, 2024

rebuild and works correct now (on official v4 it works too).
Thanks for the hint.

maybe a snippet like this is usefull?
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROIDS)
#define CC_USE_GLES_ON_DESKTOP 1
#else
#define CC_USE_GLES_ON_DESKTOP 0
#endif

Information:
The circle looks very ugly too.

from axmol.

aismann avatar aismann commented on August 13, 2024

But I think there is a second bug on it:

Both circle having the same width, but it should be different 1 and 10 (on v4 it has the same behavior).
Maybe a bug on the angleproject GLES,

from axmol.

halx99 avatar halx99 commented on August 13, 2024

Yeah, maybe bug on angleproject, I will attention on it later.

from axmol.

halx99 avatar halx99 commented on August 13, 2024

rebuild and works correct now (on official v4 it works too).
Thanks for the hint.

maybe a snippet like this is usefull?
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROIDS)
#define CC_USE_GLES_ON_DESKTOP 1
#else
#define CC_USE_GLES_ON_DESKTOP 0
#endif

Information:
The circle looks very ugly too.

doen't need t adjust platform macros, because on android, always use GLES

from axmol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.