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
rendertarget_id(3) Arcan Lua API rendertarget_id(3)

rendertarget_id - Assign a numeric identifier to a rendertarget

id or nil
rendertarget_id( vid:rtgt )
rendertarget_id( vid:rtgt, int:id )

This function is intended to be used for the rendering cases where a shader need to distinguish between the destination rendertarget, e.g. the case when stereoscopically rendering a side-by-side packed textured source without manually managing multiple pipelines. To do this, create two rendertargets, one via define_rendertarget and the other via define_linktarget . Give each a unique identifier with the help of this function, and then write your shader so that it does this distinction via the builtin int uniform rtgt_id. The two forms of this function is simply one that retrieves the current identifier, and another that updates. If the vid specified with rtgt does not exist, nil will be returned.

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.