Skip to content

Conversation

MovementGH
Copy link

Add a few blocks of code to enable graphics support in WebPdL2Ork

  • When compiling for WebPdL2Ork, record a unique id for each lua object (used by WebPdL2Ork to manage graphics calls)
  • When compiling for WebPdL2Ork, accept mouse events using a mouse_event message
  • When compiling for WebPdL2Ork, redirect vmess to webpdl2ork stub functions
  • Add object to pd._objects map before calling _creategui. This prevents the object in the object map from being null while all of the graphics setup is going on (throughout both C and lua parts of the process) and allows repainting to occur.

These patches were designed to be as minimally disruptive as possible. Let me know if any changes should be made.

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

Successfully merging this pull request may close these issues.

1 participant