Skip to content

Commit efe8747

Browse files
committed
Doc cleanup and quickstart rewrite
1 parent 625e101 commit efe8747

20 files changed

+183
-232
lines changed

demosys/effects/effect.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ def __init__(self):
6767

6868
def post_load(self):
6969
"""
70+
Override this method if needed when creating an effect.
71+
7072
Called after all effects are initialized before drawing starts.
7173
Some initialization may be neccessary to do here such as
7274
interaction with other effects.

docs/index.rst

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,27 @@ A Python 3 cross platform OpenGL 3.3+ core framework based on `ModernGL <https:/
88
| |screenshot1| | |screenshot2| |
99
+-----------------+-----------------+
1010

11+
12+
User Guide
13+
----------
14+
15+
This is the user guide
16+
1117
.. toctree::
1218
:maxdepth: 2
13-
:caption: Contents:
1419

15-
quickstart
16-
settings.rst
17-
controls.rst
18-
guides/index.rst
19-
reference/index.rst
20+
user_guide/quickstart
21+
user_guide/controls
22+
user_guide/index
23+
24+
Reference
25+
---------
26+
27+
.. toctree::
28+
:maxdepth: 1
29+
30+
reference/effect
31+
reference/settings
2032

2133

2234
Indices and tables

docs/quickstart.rst

Lines changed: 0 additions & 155 deletions
This file was deleted.

docs/reference/effect.rst

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,48 @@
1-
Effect
2-
======
31

42
.. py:module:: demosys.effects
53
.. py:currentmodule:: demosys.effects
64
7-
The base Effect class extended in effect modules.
5+
Effect
6+
======
7+
8+
.. autodata:: Effect
9+
:annotation:
10+
11+
Initialization
12+
--------------
13+
14+
.. automethod:: Effect.__init__
15+
.. automethod:: Effect.post_load
816

917
Draw Methods
1018
------------
1119

12-
.. automethod:: Effect.draw(time, frametime, target)
13-
.. automethod:: Effect.post_load()
20+
.. automethod:: Effect.draw
1421

1522
Resource Methods
1623
----------------
1724

18-
.. automethod:: Effect.get_program(label) -> Program
19-
.. automethod:: Effect.get_texture(label) -> Texture
20-
.. automethod:: Effect.get_track(name) -> Track
21-
.. automethod:: Effect.get_scene(label) -> Scene
22-
.. automethod:: Effect.get_data(label) -> Any
23-
.. automethod:: Effect.get_effect(label) -> Effect
24-
.. automethod:: Effect.get_effect_class(effect_name, package_name=None) -> Type[_ForwardRef('Effect')]
25+
.. automethod:: Effect.get_texture
26+
.. automethod:: Effect.get_program
27+
.. automethod:: Effect.get_scene
28+
.. automethod:: Effect.get_data
29+
.. automethod:: Effect.get_effect
30+
.. automethod:: Effect.get_effect_class
31+
.. automethod:: Effect.get_track
2532

2633
Utility Methods
2734
---------------
2835

29-
.. automethod:: Effect.create_projection(fov=75.0, near=1.0, far=100.0, ratio=None)
30-
.. automethod:: Effect.create_transformation(rotation=None, translation=None)
31-
.. automethod:: Effect.create_normal_matrix(modelview)
36+
.. automethod:: Effect.create_projection
37+
.. automethod:: Effect.create_transformation
38+
.. automethod:: Effect.create_normal_matrix
3239

3340
Attributes
3441
----------
3542

43+
.. autoattribute:: Effect.runnable
3644
.. autoattribute:: Effect.ctx
45+
.. autoattribute:: Effect.window
3746
.. autoattribute:: Effect.sys_camera
3847
.. autoattribute:: Effect.name
3948
.. autoattribute:: Effect.label
40-
.. autoattribute:: Effect.window
41-
.. autoattribute:: Effect.runnable

docs/reference/effects.rst

Lines changed: 0 additions & 47 deletions
This file was deleted.

docs/reference/index.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)