Jump to content

GetPixels() exposed to Lua


Rick
 Share

Recommended Posts

Shadmar was able to create a thief like light detection but had to make a custom exe in C++ to expose GetPixels(). Can we get this functionality exposed by default with LE so everyone can enjoy this system?

 

http://www.leadwerks.com/werkspace/topic/11991-csg-shape-to-mimic-light/

 

agree this would be great to havebiggrin.png

OS: Windows 7

Processor: AMD A6-3420M APU integrated Radeon HD Graphics 1.50 GHz

Link to comment
Share on other sites

The idea with that is basically an array of char right? Can't you just have that be a table in Lua and do the translation of the table to char* and back? So GetPixel() will return a table that is acting as an array, and SetPixel() takes the lua table as an argument and inside the C++ code it converts that table to char* and calls the C++ version of SetPixel().

 

It may not be a direct translation from C++ but it can still look like it's working the same way from the users end.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...