<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to switch_default_scalemode</title><link>https://sourceforge.net/p/arcanfe/wiki/switch_default_scalemode/</link><description>Recent changes to switch_default_scalemode</description><atom:link href="https://sourceforge.net/p/arcanfe/wiki/switch_default_scalemode/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 21 Jun 2012 15:26:06 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/arcanfe/wiki/switch_default_scalemode/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage switch_default_scalemode modified by Björn Ståhl</title><link>https://sourceforge.net/p/arcanfe/wiki/switch_default_scalemode/</link><description>&lt;pre&gt;--- v1
+++ v2
@@ -1,12 +1,28 @@
 **declaration:**
 
 ~~~~
-image_scale_txccos(vid, sf_u, sf_v) =&gt; nil
+switch_default_scalemode(scalemode) =&gt; nil
 ~~~~
 
-A wrapper around get/set txcos that allows you to set a scale-factor to the coordinates. Primarily useful for tiling a texture within the confines of a *vid*.
+This overrides the **global state** *scalemode* used when creating textures. Allowed values are defined by the constants below:
+
+**SCALE_NOPOW2** -- Use whatever size the source image defines
+
+**SCALE_POW2** -- Scale and filter image to fit a pow2 resolution. This is costly, and damaging to the quality of the texture.
+
+**SCALE_TXCOORD** -- Pad texture to a pow2 resolution, but only tweak the texture coordinates used. This may have effect on *mipmapping* but also on scripts that rely on texture coordinate manipulation.
 
 **related functions:**
-[image_get_txcos][image_set_txcos]
+[switch_default_texmode][switch_default_imagemode]
 
 **caveats:**
+Each image tracks its own mode that's copied from the current default upon creation (no push/pop/launch option should change this).
+
+This function may severely reduce the number of devices/systems that the script will behave properly on.
+
+For frameserver- and other dynamic sources, SCALE_POW2 may not currently work.
+
+**notes:**
+Accurately sizing textures plays a large part in virtually everything in the graphics pipeline. Historically, consumer-level 3D accelerators have forced them to be sized in powers of 2 (128,256,512,..) as this simplified the implementation of the higher level graphics APIs (e.g. OpenGL). 
+
+Unfortunately, not all implementations do this correctly -- some cause degraded performance or image quality, some wastes memory and it is unfortunately somewhat up to the user to be able to tweak (that's why the default can be set through the command-line).
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Björn Ståhl</dc:creator><pubDate>Thu, 21 Jun 2012 15:26:06 -0000</pubDate><guid>https://sourceforge.netf568db7f0be925cfccbd95e8fda2282e408d809d</guid></item><item><title>WikiPage switch_default_scalemode modified by Björn Ståhl</title><link>https://sourceforge.net/p/arcanfe/wiki/switch_default_scalemode/</link><description>**declaration:**

~~~~
image_scale_txccos(vid, sf_u, sf_v) =&gt; nil
~~~~

A wrapper around get/set txcos that allows you to set a scale-factor to the coordinates. Primarily useful for tiling a texture within the confines of a *vid*.

**related functions:**
[image_get_txcos][image_set_txcos]

**caveats:**
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Björn Ståhl</dc:creator><pubDate>Thu, 21 Jun 2012 15:02:52 -0000</pubDate><guid>https://sourceforge.net672226e61b58b4a6300ab8757c63ca50cafd41e3</guid></item></channel></rss>