Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums General General Discussion v
« Previous 1 … 6 7 8 9 10 … 13 Next »
Lua - a drawing library for Android
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Lua - a drawing library for Android
21-10-2015, 09:49 AM,
#4
Yuri6037 Offline
TSCM Member
***
Posts: 216
Threads: 45
Joined: Feb 2015
RE: Lua - a drawing library for Android
Use Android NDK then create C lua lib for GL bindings. Note also that Android uses OpenGLES while most computers uses OpenGL.

Some functions in standard OpenGL may not be included in the ES version.

Anyways, I'd myself use Android NDK to develop a C application as a window base and implement rendering support using direct bindings to GL. That means sf render functions such as drawRect are not included gl works completely differently, it works with vertex draw. It's similar to drawPoly in SF.
After I don't recomend you using Java to bind rendering to lua for one good reason, Java runs through a virtual machine before it can be interpreted by the physical CPU. Adding lua on top would make 2 virtual machines before running to the physical CPU.
Instead, making C lua bindings for GL will reduce virtual machines by 1. C will interpret lua, and C is already directly interpreted by the physical CPU.

This said, I'm not an expert in Android development. I haven't succeeded to compile anything through Android NDK. It seams to be much more easy to compil for android on a Linux machine.
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Lua - a drawing library for Android - by Destiny's Player - 20-10-2015, 11:00 AM
RE: Lua - a drawing library for Android - by rouing - 20-10-2015, 03:07 PM
RE: Lua - a drawing library for Android - by Destiny's Player - 20-10-2015, 03:29 PM
RE: Lua - a drawing library for Android - by Yuri6037 - 21-10-2015, 09:49 AM

  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.