@@ -4,18 +4,12 @@ Temporary Notes
44
55This needs to be restructured into actual docs.
66
7- - Shaders and textures can be easily loaded by using the ``get_texture `` and
8- ``get_shader `` method inherited from ``Effect ``.
97- The ``cube `` objects is a ``VAO `` that you bind supplying the shader and the system
108 will figure out the attribute mapping.
11- - Please look in the ``demosys.opengl.geometry `` module for the valid attribute names and
12- look at shaders in the testdemo _.
139- You currently define vertex,
1410 fragment and geometry shader in one glsl file separated by
1511 preprocessors.
16- - Effects not defined in the ``settings.py `` module will not run.
1712
18- That should give you an idea..
1913
2014Anything we draw to the screen must be implemented as an ``Effect ``. If
2115that effect is one or multiple things is entirely up to you. An effect
@@ -46,20 +40,6 @@ Some babble about the current state of the project:
4640 in a shader that only use position (or any other combination of attributes
4741 in the VAO); the VAO class will on-the-fly generate a version internally
4842 with only positions.
49- - We only support 2D textures at the moment loaded with PIL/Pillow, but
50- this is trivial to extend.
51- - Resource loading is supported in the ``Effect `` class itself. In ``__init__() ``
52- you can fetch resources using for example ``self.get_shader `` or\ ``self.get_texture ``.
53- This will return a lazy object that will be populated after the loading
54- stage is done.
55- - Resources shared between effects can be put outside effect packages
56- inside your project directory. For example in ``testdemo/resources/shaders ``
57- and ``testdemo/resources/textures ``. Make sure you add those paths in the
58- settings file.
59- - We don't have any scene/mesh loaders. You can hack something in yourself
60- for now or just stick to or extend the ``geometry `` module. - We try to
61- do as much validation as possible and give useful feedback when something
62- goes wrong.
6343- The ``time `` value passed to the effects ``draw `` method is the current
6444 duration in the playing music. If no music is loaded, a dummy timer is used.
6545
0 commit comments