Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port to kha? #4

Open
Sondro opened this issue Apr 5, 2018 · 1 comment
Open

Port to kha? #4

Sondro opened this issue Apr 5, 2018 · 1 comment

Comments

@Sondro
Copy link

Sondro commented Apr 5, 2018

How hard would this be to port to kha?

It looks like it's just using OpenFL for blobs and bitmap data which kha has.

@ngrebenshikov
Copy link
Owner

I don't think that it's too hard to port it to Kha.

I'll add that it also uses Flash drawing API. It's in pdf.PDF.hx

/*
	* AlivePDF Drawing API
	*
	* moveTo()
	* lineTo()
	* drawLine()
	* end()
	* curveTo()
	* lineStyle()
	* beginFill()
	* beginBitmapFill()
	* endFill()
	* drawRect()
	* drawRoundRect()
	* drawComplexRoundRect()
	* drawCircle()
	* drawEllipse()
	* drawPolygone()
	* drawRegularPolygone()
	* drawPath()
	*/

I'm not so familiar with Kha to port. If you can do it, it'll be good. We can think about a common wrapper to have OpenFL and Kha backends.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants