smart-fun / smartGL

SmartGL is a Graphic Engine for creating Android Games and Apps. It is based on OpenGL and handles 2D Sprites and 3D Textured Objects.
Apache License 2.0
109 stars 24 forks source link

Excellent library, can we draw lines ? #17

Closed Binary-Finery closed 5 years ago

Binary-Finery commented 6 years ago

Congratulations on this awesome library, is it possible to draw a line connecting two moving points ? I'd like to recreate the Windows mystify screen saver.

Thank you.

smart-fun commented 6 years ago

Hello Dean,

no it's not possible to draw lines with smartGL, but you can do this with the standard Android API. You could for example create a class (MystifyView?) which extends ImageView, and in the onDraw(Canvas) method call canvas.drawline(). Also put a in the layout of your Activity or Fragment.

I think it's the simplest / fastest way to achieve what you want to do.

Arnaud.

Binary-Finery commented 6 years ago

Hi,

Thank you for your reply, great idea, I shall give it a go.

Regards, Dean.

On Sun, 13 May 2018, 10:04 pm Arnaud Guyon, notifications@github.com wrote:

Hello Dean,

no it's not possible to draw lines with smartGL, but you can do this with the standard Android API. You could for example create a class (MystifyView?) which extends ImageView, and in the onDraw(Canvas) method call canvas.drawline(). Also put a in the layout of your Activity or Fragment.

I think it's the simplest / fastest way to achieve what you want to do.

Arnaud.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/smart-fun/smartGL/issues/17#issuecomment-388655886, or mute the thread https://github.com/notifications/unsubscribe-auth/AO83GbguVUSjqpDZ0RRJ8kQ1CAsuzEzeks5tyJ_tgaJpZM4T5pLi .