pave the way for hi-res textures

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6416 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
sireus
2011-05-10 20:03:06 +00:00
parent 54b6b66266
commit a89b9f2dab
5 changed files with 47 additions and 11 deletions
+12 -2
View File
@@ -6026,13 +6026,15 @@ Output:
<description>Binds a texture to the current texture slot.</description>
<remarks>
<remark>Binds the texture indicated in the filename to the current texture slot and increments the slot number.</remark>
<remark>The texture is rendered at the given scale. At scale 1.0 (or if scale is 0), 32x32 texels cover one cube. At scale 2.0, which is the current maximum, it's 64x64.</remark>
</remarks>
<references>
<identifierReference name="loadnotexture" identifier="loadnotexture"/>
<identifierReference name="texture" identifier="loadnotexture"/>
<identifierReference name="texturereset" identifier="texturereset"/>
<identifierReference name="hirestextures" identifier="hirestextures"/>
</references>
<arguments>
<argument token="0" description="This is a redundant value. Always leave this value as 0 here so it doesn'tbreak your configurations." valueNotes="0"/>
<argument token="S" description="Scale of the texture to load (should be a power of two)." valueNotes="Float"/>
<argument token="F" description="File name of the texture to bind" valueNotes="String"/>
</arguments>
</command>
@@ -6316,6 +6318,14 @@ Output:
<value token="N" description="TODO" minValue="-1" maxValue="3" defaultValue="0" />
</variable>
<variable name="hirestextures">
<description>controls whether textures with a non-default scale will be scaled down while loading to increase performance (0) or stay at higher resolution (1).</description>
<value token="N" description="TODO" minValue="0" maxValue="1" defaultValue="1" />
<references>
<identifierReference name="texture" identifier="texture"/>
</references>
</variable>
<variable name="texturescale">
<description>TODO</description>
<value token="N" description="TODO" minValue="16" maxValue="64" defaultValue="32" />