Skip to content

Commit

Permalink
scene
Browse files Browse the repository at this point in the history
  • Loading branch information
einarf committed Nov 30, 2024
1 parent f43e14f commit b9996c0
Show file tree
Hide file tree
Showing 12 changed files with 80 additions and 211 deletions.
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ creation and resource loading simple.
reference/resources
reference/timers/index
reference/utils/index
reference/scene/index
reference/scene


Indices and tables
Expand Down
66 changes: 66 additions & 0 deletions docs/reference/scene.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@

.. py:module:: moderngl_window.scene
moderngl_window.scene
=====================

.. autoclass:: Camera
:members:

.. autoclass:: KeyboardCamera
:members:
:show-inheritance:

.. autoclass:: OrbitCamera
:members:
:show-inheritance:

.. autoclass:: Scene
:members:

.. autoclass:: Node
:members:

.. autoclass:: Mesh
:members:

.. autoclass:: Material
:members:

.. autoclass:: MaterialTexture
:members:

.. autoclass:: MeshProgram
:members:

Mesh Programs
-------------

.. autoclass:: moderngl_window.scene.programs.VertexColorProgram
:members:
:show-inheritance:

.. autoclass:: moderngl_window.scene.programs.ColorLightProgram
:members:
:show-inheritance:

.. autoclass:: moderngl_window.scene.programs.TextureProgram
:members:
:show-inheritance:

.. autoclass:: moderngl_window.scene.programs.TextureVertexColorProgram
:members:
:show-inheritance:

.. autoclass:: moderngl_window.scene.programs.TextureLightProgram
:members:
:show-inheritance:

.. autoclass:: moderngl_window.scene.programs.TextureLightColorProgram
:members:
:show-inheritance:

.. autoclass:: moderngl_window.scene.programs.FallbackProgram
:members:
:show-inheritance:
24 changes: 0 additions & 24 deletions docs/reference/scene/camera.rst

This file was deleted.

15 changes: 0 additions & 15 deletions docs/reference/scene/index.rst

This file was deleted.

35 changes: 0 additions & 35 deletions docs/reference/scene/keyboardcamera.rst

This file was deleted.

22 changes: 0 additions & 22 deletions docs/reference/scene/material.rst

This file was deleted.

19 changes: 0 additions & 19 deletions docs/reference/scene/materialtexture.rst

This file was deleted.

19 changes: 0 additions & 19 deletions docs/reference/scene/mesh.rst

This file was deleted.

20 changes: 0 additions & 20 deletions docs/reference/scene/meshprogram.rst

This file was deleted.

29 changes: 0 additions & 29 deletions docs/reference/scene/node.rst

This file was deleted.

26 changes: 0 additions & 26 deletions docs/reference/scene/scene.rst

This file was deleted.

14 changes: 13 additions & 1 deletion moderngl_window/scene/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
# pylint: disable = missing-docstring
from .camera import Camera as Camera
from .camera import KeyboardCamera as KeyboardCamera
from .camera import OrbitCamera as OrbitCamera
from .material import Material as Material
from .material import MaterialTexture as MaterialTexture
from .mesh import Mesh as Mesh
from .node import Node as Node
from .programs import MeshProgram as MeshProgram
from .scene import Scene as Scene

__all__ = [
"Camera",
"KeyboardCamera",
"OrbitCamera",
"Material",
"MaterialTexture",
"Mesh",
"Node",
"MeshProgram",
"Scene",
]

0 comments on commit b9996c0

Please sign in to comment.