added Engine::Object::setTextureScale() for box and plane texture scaling
git-svn-id: svn://anubis/anaglym/trunk@219 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
1 parent
d3a161b0a7
commit
fd4b6b27c8
5 files changed
+37
-3
No files matched your search
@@ -695,6 +695,17 @@ This function sets the texture of <tt>obj</tt> to <tt>tex</tt>.
|
||||
<a href="#ag_loadTexture">ag.loadTexture()</a>.
|
||||
</p>
|
||||
|
||||
<a name="object_setTextureScale" />
|
||||
<h3>setTextureScale</h3>
|
||||
<p><tt>obj:setTextureScale(scale)</tt></p>
|
||||
<p>
|
||||
This function sets the "texture scale" for <tt>obj</tt>.
|
||||
Currently, texture scaling is only supported for boxes and planes.
|
||||
<tt>scale</tt> actually scales the texture coordinates.
|
||||
Hence a scale of 4 would appear to shrink the texture by a factor of
|
||||
4 and tile the texture 16 times where it normally would have once.
|
||||
</p>
|
||||
|
||||
<a name="object_setVisible" />
|
||||
<h3>setVisible</h3>
|
||||
<p><tt>obj:setVisible(visible_flag)</tt></p>
|
||||
|
||||
Reference in new issue
Block a user