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

rendertarget_noclear - Enable / Disable clearing a rendertarget before a renderpass.

success
rendertarget_noclear( vid, noclear )

By default, each pass for a rendertarget begins by clearing the buffer that will be drawn to. This may waste memory bandwidth if we know that the entire rendertarget will be populated with the objects that are to be drawn. rendertarget_noclear is used to change this behavior by setting a true value to a vid that is connected to a rendertarget.

1
Setting WORLDID as vid will change the clear behavior for the standard output rendertarget.
2
If the background is not actually covered by valid VID s, you will leave trails of previous frames behind, as in the MAIN example below.

function rendertarget_noclear0()
      rendertarget_noclear(WORLDID, true);
      a = color_surface(64, 64, 255, 0, 0, 0);
      show_image(a);
      move_image(a, 128, 128, 10);
end

function rendertarget_noclear0()
      rendertarget_noclear(BADID, "potatoe");
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.