Skip to content

Commit

Permalink
fix: image handling
Browse files Browse the repository at this point in the history
  • Loading branch information
triniwiz committed Mar 10, 2024
1 parent 8b97290 commit bff960d
Show file tree
Hide file tree
Showing 66 changed files with 5,139 additions and 4,710 deletions.
2 changes: 1 addition & 1 deletion packages/canvas-babylon/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/canvas-babylon",
"version": "2.0.0-beta.12",
"version": "2.0.0-beta.13",
"description": "",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/canvas-media/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/canvas-media",
"version": "2.0.0-beta.12",
"version": "2.0.0-beta.13",
"description": "Canvas media",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/canvas-phaser-ce/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/canvas-phaser-ce",
"version": "2.0.0-beta.12",
"version": "2.0.0-beta.13",
"description": "Tools for using Phaser-ce to build native 2D games in NativeScript 👾",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/canvas-phaser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/canvas-phaser",
"version": "2.0.0-beta.12",
"version": "2.0.0-beta.13",
"description": "Build awesome 2D games with Phaser.js and NativeScript",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/canvas-pixi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/canvas-pixi",
"version": "2.0.0-beta.12",
"version": "2.0.0-beta.13",
"description": "Plugin for using pixi.js in NativeScript",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/canvas-polyfill/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/canvas-polyfill",
"version": "2.0.0-beta.12",
"version": "2.0.0-beta.13",
"description": "Polyfill for making NativeScript compatible with web libs like pixi.js, three.js, phaser.js, babylon.js, etc....",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/canvas-three/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/canvas-three",
"version": "2.0.0-beta.12",
"version": "2.0.0-beta.13",
"description": "Utilities for using THREE.js on NativeScript",
"main": "index",
"typings": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/canvas/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/canvas",
"version": "2.0.0-beta.12",
"version": "2.0.0-beta.13",
"description": "DOM Canvas API for NativeScript",
"main": "index",
"typings": "index.d.ts",
Expand Down
Binary file modified packages/canvas/platforms/android/canvas-release.aar
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,29 @@ void canvas_native_context_draw_image_context(struct CanvasRenderingContext2D *c
float d_width,
float d_height);

void canvas_native_context_draw_image_dx_dy_webgl(struct CanvasRenderingContext2D *context,
struct WebGLState *source,
float dx,
float dy);

void canvas_native_context_draw_image_dx_dy_dw_dh_webgl(struct CanvasRenderingContext2D *context,
struct WebGLState *source,
float dx,
float dy,
float d_width,
float d_height);

void canvas_native_context_draw_image_webgl(struct CanvasRenderingContext2D *context,
struct WebGLState *source,
float sx,
float sy,
float s_width,
float s_height,
float dx,
float dy,
float d_width,
float d_height);

void canvas_native_context_draw_atlas(struct CanvasRenderingContext2D *context,
const uint8_t *data,
uintptr_t size,
Expand Down
Loading

0 comments on commit bff960d

Please sign in to comment.