| EdSceneObject.PAS Updated 02 Mar 2001 | Upper levels: - QuArK Information Base - 4. The Source Code - 4.6. File-by-file descriptions - 4.6.6. The 3D-Render classes

4.6.6.1. EdSceneObject.PAS | [ Prev - Up - Next ]

The abstract base-class for a 3D-Render window-class, and the texture-manager object which stores used textures for the 3D-view.

Index

- - The 'TSceneObject' class (02 Mar 2001)

The 'TSceneObject' class | Decker - 02 Mar 2001 | [ Top ]

Let me see, if I can explain what this class is all about. Mind you, I have not understanded it completly, so parts of this look-through explanation may be completly wrong. The idea of `TSceneObject` is to encapsulate the complex data structures and 3D-render API calls, in a general class interface for QuArK to use. It does not contain any code for a specific 3D-render, so one has to inherit from it and create a specialized class. The main function calls into this abstract class are the following: `procedure Init( ... ); virtual; abstract;` This function must; initialize the window, setup default data-structures and options, and ready the 3D-render API calls by for instance load a DLL. It is not defined in the TSceneObject class, as can be seen on the `abstract` keyword. So all classes that inherit from TSceneObject, must define the contents of this function. `procedure BuildScene( ... );` info missing... `procedure Render3DView; virtual; abstract;` info missing... `procedure AddPolyFace( ... );` info missing... `procedure AddModel( ... );` info missing... `procedure AddBezier( ... );` info missing... `procedure AddLight( ... ); virtual;` info missing...

GNU General Public License by The QuArK (Quake Army Knife) Community - http://www.planetquake.com/quark | [ Prev - Top - Next ]