Migration guide from previous version to v7.0 or ulterior
Luckily, migrating from a previous version to the v7.0 should be pretty straightforward as there are not many breaking changes.
Deprecations
Here's a list of all deprecated methods:
-
Curtains class:
- addPlane(): you should now use the Plane class constructor instead.v7.0
- addRenderTarget(): you should now use the RenderTarget class constructor instead.v7.0
- addShaderPass(): you should now use the ShaderPass class constructor instead.v7.0
- removePlane(): you should now use the Plane class remove() method instead.v7.0
- removeRenderTarget(): you should now use the RenderTarget class remove() method instead.v7.0
- removeShaderPass(): you should now use the ShaderPass class remove() method instead.v7.0
-
Plane class:
- setRelativePosition(): you should use the setRelativeTranslation() method instead.v8.0
- moveToFront(): you should use the setRenderOrder() method instead.v8.0
- planeResize(): you should use the resize() method instead.v7.3
-
Texture class:
- setFromTexture(): you should use the copy() method instead.v7.3
Parameters change
Here's a list of all the instanciation and method parameters that changed:
-
Plane class:
-
Creation:
-
Methods:
- mouseToPlaneCoords(): now uses a Vec2 class object instead of 2 floats.v7.0
- setRelativeTranslation(): now uses a Vec3 class object instead of 3 floats.v7.0
- setRotation(): now uses a Vec3 class object instead of 3 floats.v7.0
- setScale(): now uses a Vec2 class object instead of 2 floats.v7.0
- setTransformOrigin(): now uses a Vec3 class object instead of 3 floats.v7.0
-
-
Texture class:
-
Methods:
- setScale(): now uses a Vec2 class object instead of 2 floats.v7.0
-
-
ShaderPass class:
Properties changed
Here's a list of all the object properties name that changed:
-
Curtains class:
- glCanvas: has been renamed to canvas.v7.0
- productionMode: has been renamed to production.v7.0
-
Texture class:
- type: has been renamed to sourceType.v7.0