GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
define_arcantarget(3) Arcan Lua API define_arcantarget(3)

define_arcantarget - Create a rendertarget bound subsegment for drawing to another arcan instance

bool
define_arcantarget( vid:vstore, string:type, vidtbl:vpipe, function:handler )

This function is used to request and bind 'subsegments' useful for secondary outputs.

It works like any other normal rendertarget such as one allocated through define_rendertarget , but the clocking and updates are explicitly tied to what the arcan instance the segment is connected to decides.

The design and inner workings for this function is marked as experimental and may be subject to breaking changes without notice.

1
Valid types are: 'cursor', 'popup', 'icon', 'clipboard', 'titlebar',
2
An invalid vstore or unsupported type is a terminal state transition.

function define_arcantarget0()
      local ok =
            define_arcantarget(buffer, "media", {test},
            function(source, status)
                  if status.kind == "terminated" then
                        delete_image(source)
                  end
                  print(status.kind)
            end
      )
      if not ok then
            delete_image(buffer)
      end
end
end

June 2022 targetcontrol

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.