Browse Source

Same as before

Panagiotis Christopoulos Charitos 14 years ago
parent
commit
d2eac02a38
1 changed files with 42 additions and 28 deletions
  1. 42 28
      docs/drafts/scene-abstraction.txt

+ 42 - 28
docs/drafts/scene-abstraction.txt

@@ -5,41 +5,55 @@ Create a new scene organisation that follows some rules:
 
 
 Every scene node has a few properties that are actually interfaces. This interfaces are:
 Every scene node has a few properties that are actually interfaces. This interfaces are:
 
 
-+========================+==================+=================================+=====================+
-| Class name             | Base class       | Interface                       | Used                |
-+========================+==================+=================================+=====================+
-| BaseRenderable         | -                | - getVao                        | -                   |
-|                        |                  | - getVertIdsNum                 |                     |
-|                        |                  | - getWorldTransform             |                     |
-+------------------------+------------------+---------------------------------+---------------------+
-| Renderable             | BaseRenderable   | - getMaterial                   | PatchNode           |
-|                        |                  | - getMaterialRuntime (Mutable)  |                     |
-|                        |                  | - getMaterialRuntime (Const)    |                     |
-|                        |                  | - renderInMs (its not virtual)  |                     |
-+------------------------+------------------+---------------------------------+---------------------+
-| DebugRenderable        | BaseRenderable   | TODO                            | Camera, Light       |
-+------------------------+------------------+---------------------------------+---------------------+
-| IsRenderable           | BaseRenderable   | getShaderProgram                | Light               |
-+------------------------+------------------+---------------------------------+---------------------+
-| VisiblesContainable    | -                | - getVisiblesInfo               | Camera, Light       |
-|                        |                  | - testFrustum(VisibleCheckable) |                     |
-+------------------------+------------------+---------------------------------+---------------------+
-| VisibleCheckable       | -                | getCollisionShape               | Camera, Light,      |
-|                        |                  |                                 | ModelNode, SkinNode,|
-|                        |                  |                                 | PatchNode           |
-+------------------------+------------------+---------------------------------+---------------------+
-| RenderablesContainable | -                | - getRenderables                | ModelNode, SkinNode |
-|                        |                  | - nodesInheritCollisionShape    |                     |
-+------------------------+------------------+---------------------------------+---------------------+
-	
++========================+==================+===================================+=====================+
+| Class name             | Base class       | Interface                         | Used                |
++========================+==================+===================================+=====================+
+| BaseRenderable         | -                | - getVao(level, type)             | -                   |
+|                        |                  | - getVertIdsNum(level, type)      |                     |
+|                        |                  | - getWorldTransform(level, type)  |                     |
++------------------------+------------------+-----------------------------------+---------------------+
+| Renderable             |                  | - getMaterial                     | PatchNode           |
+|                        |                  | - getMaterialRuntime (Mutable)    |                     |
+|                        |                  | - getMaterialRuntime (Const)      |                     |
+|                        |                  | - renderInMs (its not virtual)    |                     |
++------------------------+------------------+-----------------------------------+---------------------+
+| DebugRenderable        | BaseRenderable   | -                                 | Camera, Light       |
++------------------------+------------------+-----------------------------------+---------------------+
+| IsRenderable           | BaseRenderable   | getShaderProgram                  | Light               |
++------------------------+------------------+-----------------------------------+---------------------+
+| VisiblesContainable    | -                | - getVisiblesInfo                 | Camera, Light       |
+|                        |                  | - testFrustum(VisibleCheckable)   |                     |
++------------------------+------------------+-----------------------------------+---------------------+
+| VisibleCheckable       | -                | getCollisionShape                 | Camera, Light,      |
+|                        |                  |                                   | ModelNode, SkinNode,|
+|                        |                  |                                   | PatchNode           |
++------------------------+------------------+-----------------------------------+---------------------+
+| RenderablesContainable | -                | - getRenderables                  | ModelNode, SkinNode |
+|                        |                  | - nodesInheritCollisionShape      |                     |
++------------------------+------------------+-----------------------------------+---------------------+
+
+Rendering passes:
+	- Level n
+		- Color
+		- Depth
+		- DepthParaboloid
+		
+	- Debug
+
+
 Other classes:
 Other classes:
 	
 	
+
+**BaseRenderableInfo**: Contains a class with public interface of:
+
+	- 
+
 **VisiblesInfo**: Contains the lists of:
 **VisiblesInfo**: Contains the lists of:
 
 
 	- Renderables
 	- Renderables
 		- renderables in MS
 		- renderables in MS
 		- renderables in BS
 		- renderables in BS
-	- Lights
+	- IsRenderables
 		- point lights
 		- point lights
 		- spot lights
 		- spot lights