22Settings
33========
44
5-
65The ``settings.py `` file must be present in your project containing settings
76for the project.
87
98When running your project with ``manage.py ``, the script will set
109the ``DEMOSYS_SETTINGS_MODULE `` environment variable. This tells
1110the framework where it can import the project settings. If the environment
12- variable is not set the project cannot start.
11+ variable is not set, the project cannot start.
1312
1413OPENGL
15- ^^^^^^
16-
17- .. Warning :: We cannot guarantee the framework will work properly for non-default values.
18- We strongly discourage enabling backwards compatibility.
19- It might of curse make sense in some cases if you bring in existing draw
20- code from older projects. Be extra careful when using deprecated OpenGL states.
21- Mixing in `PyOpenGL ` is also not recommended.
14+ ------
2215
23- Using default values we can be more confident that cross-platform support is
24- upheld. Remember that some platforms/drivers such as on OS X, core profiles
25- can only be forward compatible or the context creation will simply fail .
16+ Sets the minimum required OpenGL version to run your project.
17+ A forward compatible core context will be always be created. This means
18+ the system will pick the highest available OpenGL version available .
2619
27- The default OpenGL version is 3.3 to support a wider range of hardware.
20+ The default and lowest OpenGL version is 3.3 to support a wider
21+ range of hardware.
22+ To make your project work on OS X you cannot move past version 4.1 (sadly).
2823
2924.. code :: python
3025
3126 OPENGL = {
3227 " version" : (3 , 3 ),
33- " profile" : " core" ,
34- " forward_compat" : True ,
3528 }
3629
37- - ``version `` describes the major and minor version of the OpenGL context we
38- are creating
39- - ``profile `` should ideally always be ``core ``, but we leave it configurable
40- for those who might want to include legacy OpenGL code permanently or
41- temporary. Do note that not using core profile will exclude the project
42- from working on certain setups and may have unexpected side effects.
43-
44- - ``any ``: glfw.OPENGL_ANY_PROFILE,
45- - ``core ``: glfw.OPENGL_CORE_PROFILE,
46- - ``compat ``: glfw.OPENGL_COMPAT_PROFILE,
47-
48- - ``forward_compat `` True, is required for the project to work on OS X and
49- platforms only supporting forward compatibility.
50-
51- .. Note :: To make your project work on OS X you cannot move past version 4.1 (sadly).
30+ Only increase the OpenGL version if you use features above 3.3.
5231
5332WINDOW
54- ^^^^^^
33+ ------
5534
5635Window/screen properties. If you are using Retina or 4k displays, be aware that
5736these values can refer to the virtual size. The actual buffer size will be
@@ -92,7 +71,7 @@ The created window frame buffer will by default use:
9271- color and depth buffer is cleared for every frame
9372
9473MUSIC
95- ^^^^^
74+ -----
9675
9776The ``MUSIC `` attribute is used by timers supporting audio playback.
9877When using a timer not requiring an audio file, the value is ignored.
@@ -107,7 +86,7 @@ Should contain a string with the absolute path to the audio file.
10786 MUSIC = os.path.join(PROJECT_DIR , ' resources/music/tg2035.mp3' )
10887
10988 TIMER
110- ^^^^^
89+ -----
11190
11291This is the timer class that controls time in your project.
11392This defaults to ``demosys.timers.Timer `` that is simply keeps
@@ -129,7 +108,7 @@ Other timers are:
129108More information can be found in the :doc: `/guides/timers ` section.
130109
131110ROCKET
132- ^^^^^^
111+ ------
133112
134113Configuration of the pyrocket _ sync-tracker library.
135114
@@ -155,7 +134,7 @@ Configuration of the pyrocket_ sync-tracker library.
155134 }
156135
157136 EFFECTS
158- ^^^^^^^
137+ -------
159138
160139Effect packages that will be recognized by the project.
161140Initialization should happens in the order they appear in the list.
@@ -167,7 +146,7 @@ Initialization should happens in the order they appear in the list.
167146 )
168147
169148 EFFECT_MANAGER
170- ^^^^^^^^^^^^^^
149+ --------------
171150
172151Effect mangers are pluggable classed that initialize and run effects.
173152When only having a single effect we can run it using ``runeffect ``,
@@ -185,7 +164,7 @@ If we use the ``run`` sub-command, the first registered effect will run.
185164 More info in the :doc: `guides/effectmanagers ` section.
186165
187166SHADER_STRICT_VALIDATION
188- ^^^^^^^^^^^^^^^^^^^^^^^^
167+ ------------------------
189168
190169Boolean value. If ``True `` shaders will raise ``ShaderError `` when
191170setting uniforms variables that don't exist.
@@ -197,7 +176,7 @@ missing or incorrect uniforms. Other times you want to know in a more
197176brutal way that something is wrong.
198177
199178SHADER_DIRS/FINDERS
200- ^^^^^^^^^^^^^^^^^^^
179+ -------------------
201180
202181``SHADER_DIRS `` contains absolute paths the ``FileSystemFinder `` will
203182look for shaders.
@@ -220,7 +199,7 @@ your effect package.
220199 )
221200
222201 TEXTURE_DIRS/FINDERS
223- ^^^^^^^^^^^^^^^^^^^^
202+ --------------------
224203
225204Same principle as ``SHADER_DIRS `` and ``SHADER_FINDERS ``.
226205The ``EffectDirectoriesFinder `` will look for a ``textures `` directory in effects.
@@ -239,7 +218,7 @@ The ``EffectDirectoriesFinder`` will look for a ``textures`` directory in effect
239218 )
240219
241220 SCENE_DIRS/FINDERS
242- ^^^^^^^^^^^^^^^^^^
221+ ------------------
243222
244223Same principle as ``SHADER_DIRS `` and ``SHADER_FINDERS ``.
245224This is where scene files such as wavefront and gltf files are loaded from.
@@ -260,7 +239,7 @@ The ``EffectDirectoriesFinder`` will look for a ``scenes`` directory
260239
261240
262241 SCREENSHOT_PATH
263- ^^^^^^^^^^^^^^^
242+ ---------------
264243
265244Absolute path to the directory screenshots will be saved.
266245If not defined or the directory don't exist it will be created.
0 commit comments