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

image_texfilter - Switch object video filtering mode.

nil
image_texfilter( vid, mode )

Each object inherits a global default filtering mode upon creation. This mode can be overridden for individual objects through this function. Valid filtering modes are: FILTER_NONE , FILTER_LINEAR , FILTER_BILINEAR , FILTER_TRILINEAR

1
Filtering mode is connected to the gl storage, and the options to share storage between objects through instancing or explicit sharing will retain this property.

function image_texfilter0()
      a = load_image("test.png");
      b = load_image("test.png");
      c = load_image("test.png");
      d = load_image("test.png");
      w = VRESW * 0.5;
      h = VRESW * 0.5;
      resize_image({a,b,c,d}, w, h);
      show_image({a,b,c,d});
      move_image(b, w, 0);
      move_image(c, 0, h);
      move_image(d, w, h);
      image_texfilter(a, FILTER_NONE);
      image_texfilter(b, FILTER_LINEAR);
      image_texfilter(c, FILTER_BILINEAR);
      image_texfilter(d, FILTER_TRILINEAR);
end

function image_texfilter0()
      image_texfilter(BADID, FILTER_NONE);
end

function image_texfilter1()
      image_texfilter(fill_surface(32, 32, 255, 0, 0), FILTER_NONE);
end

function image_texfilter2()
      image_texfilter(color_surface(32, 32, 255, 0, 0), FILTER_LINEAR);
end

switch_default_texfilter(3)

June 2022 image

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.