Giter Site home page Giter Site logo

Settings Type Mismatch about pixi-haxe HOT 11 CLOSED

DanScott90 avatar DanScott90 commented on June 9, 2024
Settings Type Mismatch

from pixi-haxe.

Comments (11)

DanScott90 avatar DanScott90 commented on June 9, 2024

Also have just noticed that PIXI.settings.PRECISION is now deprecated.

Replaced by
PIXI.settings.PRECISION_FRAGMENT
PIXI.settings.PRECISION_VERTEX

Could these be added to a new version, was only needing to modify the Fragment setting anyway.

Thanks,
Dan.

from pixi-haxe.

adireddy avatar adireddy commented on June 9, 2024

should be good now.. delete and reinstall pixijs haxelib to check

from pixi-haxe.

DanScott90 avatar DanScott90 commented on June 9, 2024

@adireddy Just a note on the RegEx, EReg actually didn't work for me, had to use the JS specific RegExp, EReg is missing exec function.

EReg is supposed to be the cross platform class, but not sure why it isn't working here, guess this is a haxe bug.

from pixi-haxe.

DanScott90 avatar DanScott90 commented on June 9, 2024

And the precision vars maybe should type:Pixi.Precisions

But this const is broken for me, think the extern should be:
@:native("PIXI.PRECISION") instead of @:native("PIXI.PRECISIONS")

from pixi-haxe.

adireddy avatar adireddy commented on June 9, 2024

try again now
changed EReg to js.RegEx and fixed PRECISION

from pixi-haxe.

DanScott90 avatar DanScott90 commented on June 9, 2024

@adireddy RegEx good, Precision Extern now good.

If PRECISION_VERTEX & PRECISION_FRAGMENT could be changed from string to Precision as well would all be perfect?

Thanks.

from pixi-haxe.

adireddy avatar adireddy commented on June 9, 2024

done 👍

from pixi-haxe.

DanScott90 avatar DanScott90 commented on June 9, 2024

@adireddy Since last change, need to add import at top of Settings.hx file

import pixi.core.Pixi.Precision;

from pixi-haxe.

adireddy avatar adireddy commented on June 9, 2024

:) this time I didn't compile

from pixi-haxe.

adireddy avatar adireddy commented on June 9, 2024

should be fixed now

from pixi-haxe.

DanScott90 avatar DanScott90 commented on June 9, 2024

Awesome, yep everything is perfect, thanks :)

from pixi-haxe.

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.