Skip to content

Commit aaf365d

Browse files
committed
Doc update
1 parent 400b588 commit aaf365d

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

TODO.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ don't have a binary distribution for darwin.
66

77
- Write documentation (readthedocs)
88
- Pyrr / Math
9-
- EffectManagers
109
- Properly verify all settings
1110
- Make EffectControllers
1211
- TrackSystemEffectController

docs/source/effects.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,18 @@ Remember that you can also create global resource directories for all
7070
the effects in your projects as well. This can be achieved by configuring
7171
resource finders in :doc:`settings`.
7272

73+
Methods fetching resources can take additional parameters to override defaults.
74+
75+
Example setting texture repeat and enable anisotropic filtering:
76+
77+
.. code-block:: bash
78+
79+
self.get_texture("cube/texture.png",
80+
wrap_s=GL_REPEAT, wrap_t=GL_REPEAT,
81+
anisotropy=16)
82+
83+
This will also automatically generate mipmaps for the texture.
84+
7385
The Effect Module
7486
^^^^^^^^^^^^^^^^^
7587

0 commit comments

Comments
 (0)