Module CS/plugins/engseq/

back to main page

Summary Period: 2002-09-23 to 2003-06-24

Modules

[root]/CS/plugins/engseq

Lines Of Code


Total Lines Of Code: 2808 (2003-07-11 20:29)

Authors

Author Changes Lines of code Lines per change
Totals 78 (100.0%) 4817 (100.0%) 61.7
jorrit 53 (67.9%) 4396 (91.3%) 82.9
vengeance2001 10 (12.8%) 363 (7.5%) 36.3
sunshine 9 (11.5%) 30 (0.6%) 3.3
res2002 2 (2.6%) 11 (0.2%) 5.5
matzebraun 2 (2.6%) 10 (0.2%) 5.0
dentoid 1 (1.3%) 6 (0.1%) 6.0
philwyett 1 (1.3%) 1 (0.0%) 1.0

Most Recent Commits

jorrit 2003-06-24 14:03

- Jorrit did the following sequence manager related changes:
- Added four different operations (AddOperationSetVariable())
to the engine sequence manager with which you can set a variable
(or add to it).
- Added the 'setvar' command to sequences. With this you can
do the following:
<setvar var="v" value="3"/> set 'v' to value 3.
<setvar var="v" add="-2"/> subtract 2 from 'v'.
<setvar var="v" value_var="z"/> copy var 'z' to 'v'.
<setvar var="v" add_var="z"/> add var 'z' to 'v' (as float).
<setvar var="v" x="1" y="2" z="1"/> set vector 1,2,1 to 'v'.
<setvar var="v" red="0" green="0" blue="1"/> set 'v' to blue.
- These changes are totally untested!

166 lines of code changed in:

sunshine 2003-06-22 22:38

Eric Sunshine removed the unused, obsolete, and deprecated top-level <name>
node from the .csplugin files.

0 lines of code changed in:

sunshine 2003-06-05 15:44

Eric Sunshine performed Phase Three of the elimination of the monolithic
scf.cfg:

-*- Eliminated the SCF information which was hardcoded in the .cpp files
of plugin modules, and which duplicated information in the external
.csplugin files.

-*- Plugin modules no longer maintain and export a monolithic class list.
Now, each factory implemented by the code is exported automatically.

-*- Added a new <implementation> child node to the <class> node in
.csplugin files. The value of this node is the name of the C++ class
which implements the SCF class. For instance, C++ class csVFS
implements crystalspace.kernel.vfs.

-*- Eliminated the following SCF macros which were related to exporting
SCF information from .cpp code and/or registering classes manually:

SCF_EXPORT_CLASS_TABLE
SCF_EXPORT_CLASS
SCF_EXPORT_CLASS_DEP
SCF_EXPORT_CLASS_TABLE_END
SCF_REGISTER_STATIC_CLASS_DEP

-*- Eliminated the following methods from iSCF:

RegisterStaticClass
RegisterClassList

-*- Plugin modules are now initialized/shutdown lazily as classes are
requested from them. The first time a class is requested, the plugin
is initialized. The plugin is shutdown after the last class instance
has been destroyed.

-*- Fixed bug in scf.h where SCF_PRINT_CALL_ADDRESS was not being enabled
for gcc 3.x.

-*- Fixed bug in win32.jam where GenerateExportDefs rule failed to ensure
that directory containing output file existed before creating file.
Also fixed bug where it failed to set up a dependency between the
input and output files.

-*- Still To-Do:

- Remove references to scf.cfg and scfreg from documentation. Also
document new .csplugin resources.

- Add platform-specific function to scan and locate plugins
automatically rather than using the ad-hoc approach inherited from
scanning for .scf files.

- Add platform-specific function to query a plugin's meta-information.
This should be used by SCF to do the raw extraction. Provide and
finalize API for higher-level clients to access meta-information.

- Augment static linking to work with the new facility. (Removal of
the hardcoded SCF information, has now broken static linking. It
worked until this time, even with all of the preceding changes.)

1 lines of code changed in:

jorrit 2003-05-29 08:06

Replaced NULL with 0.

55 lines of code changed in:

sunshine 2003-05-26 09:49

Eric Sunshine performed Phase One of the elimination of the monolithic
scf.cfg:

-*- Plugin modules are now self-describing. This information can be
queried at run-time without having to actually load the module.

-*- The plugin maintainer now manages the plugin's meta-information in an
external .csplugin file, rather than hard-coding the information into
the plugin's source code. The mechanism by which the meta-information
is bound to the plugin is platform-dependent. Presently, all
platforms simply lay down the meta-information in a plain text file
alongside the plugin itself; with the same basename and extension
.csplugin. This may change in the future. For example, on MacOS/X,
the meta-information will probably be encapsulated within the plugin's
bundle wrapper.

-*- Plugin meta-information is now maintained in XML format. Here is an
example:

<?xml version="1.0"?>
<!-- gl3d.csplugin -->
<plugin>
<name>gl3d</name>
<scf>
<classes>
<class>
<name>crystalspace.graphics3d.opengl</name>
<description>OpenGL 3D graphics driver</description>
<requires>
<class>crystalspace.font.server.</class>
</requires>
</class>
</classes>
</scf>
</plugin>

-*- Since meta-information is now extensible, maintainers can choose to
publish supplementary information about plugins (in addition to the
SCF information already published). For example, image loading
plugins could publish "image indendification" information which would
allow the image loading multiplexor to selectively request image
loading plugins on-demand, rather than requesting all plugins
unconditionally, even if they are not needed. Here is an example of a
possible meta-information table for the PNG loader:

<?xml version="1.0"?>
<!-- cspngimg.csplugin -->
<plugin>
<name>cspngimg</name>
<scf>...</scf>
<imageloader>
<imagetype>
<class>crystalspace.graphic.image.io.png</class>
<identify>
<mimetype>image/png</mimetype>
<extension>png</extension>
<extension>PNG</extension>
<scan length="4" bytes="\0x89PNG"/>
</identify>
</imagetype>
</imageloader>
</plugin>

In this example, the PNG loader meta-information tells the multiplexor
several different ways to identify a PNG image: by checking file
extension, if available; by checking MIME type, if available; by
checking for the magic-string "\0x89PNG" in the raw image data. If
the multiplexor identifies the image as PNG, only then will it
actually request the PNG loader.

-*- Added the --meta-file directive to msvcgen.pl to allow specification
of the meta-information file for a module. The value of this option
is interpolated into template files via the new %metafile% variable.
msvcgen.mak now utilizes this flag with the value of the new
INC.PROJECT makefile variable. Augmented the MSVC6 and MSVC7 plugin
template files (plugin.tpl) to make use of %metafile%.

-*- Changed the file extension for plugins on MacOS/X from .csplugin to
.csbundle to avoid conflict with new meta-information resource which
uses the extension .csplugin.

-*- Still To-Do:

- Augment SCF to utilize the new meta-information resources, and to
understand the new XML format. Presently, these resources are
ignored at run-time.

- Add platform-specific function to scan and locate plugins
automatically, rather than relying upon a monolithic registry such
as scf.cfg.

- Add platform-specific function to query a plugin's meta-information.

- Eliminate the monolithic scf.cfg.

- Augment static linking to work with the new facility.

- Eliminate the hard-coded SCF registration information in each
plugin's source code.

15 lines of code changed in:

res2002 2003-05-12 19:52

- fixed the iPolygonMesh issue for the ball plugin.
- changed the Sprite3d and Genmesh objects to emit a notification
if iPolygonMesh is queried.
- changed the sequence operations working with sequences in the
'normal' and engine sequence manager to not store references on
sequences. That makes loops etc. possible without causing circular
references. Also updated the interface docs to reflect this change.
- fixed a few cases where iPolygonMesh was queried from a mesh
object to use iObjectModel->"GetPolygonMeshColldet().
- improved the wording on the paragraph about the iPolygonMesh
changes in the api mod documentation a bit.

11 lines of code changed in:

sunshine 2003-04-27 11:33

Eric Sunshine made the following changes:

-*- Modified configure.ac so that it emits a SRCDIR property to
config.mak. This value represents the --srcdir argument given to the
configure script (or "." if --srcdir is omitted). This points at the
directory containing the CS source code (which may differ from the
build directory, which is typically the current working directory).

-*- Modified makefiles and build scripts throughout the project so that
they respect $(SRCDIR). This allows the project to be built in a
directory other than the source directory, thus it is possible to
place the source directory on a readonly filesystem (such as a
CD-ROM), or to share a single NFS-mounted source directory among
different builds, where each build inhabits its own directory. For
example, if CS resides at /home/CS and you wish to build the project
in /home/build:

% cd /home/build
% ../CS/configure
% make -k all
% make install

(Note that the Jam-base build system already supports this build
paradigm.)

-*- Modified configure.ac so that it emits EXTENSIVE_MEMDEBUG to
config.mak since this variable is used by Makefile.in for the
`showconfig' target.

-*- Modified configure.ac so that it emits MONITOR_MAKEFILE_CACHE when the
value is either "yes" or "no", instead of emitting it only when the
value is "yes". This was necessary because CS/mk/cache.mak prints the
value of this variable as part of $(SYSMODIFIER).

3 lines of code changed in:

matzebraun 2003-04-08 20:22

added the Jamfiles

9 lines of code changed in:

matzebraun 2003-04-03 15:43

cleaned up csutil as proposed in the crystal-develop list

1 lines of code changed in:

jorrit 2003-03-19 14:35

Split iPolygon3D into iPolygon3D and iPolygon3DStatic. The static
part contains all information that is static and could be in
a factory. Several functions (like iThingState->CreatePolygon)
will now return an iPolygon3DStatic instead of an iPolygon3D.

1 lines of code changed in:

jorrit 2003-02-11 10:47

- Fixed lightning command in walktest to also work if there is no
light called 'l1'.
- Fixed lightning sequence in flarge a bit.
- Added iSequenceManager->GetDeltaTime(). This time should be added
to GetMainTime() if you want to know the current main time when
NOT in an operation callback! If you are in an operation callback
then you should use the delta time that is given to you as a
parameter instead.
- The sequence manager now fires in the 'final' stage
(cscmdFinalProcess) instead of cscmdPostProcess. The engine
sequence manager now fires in the cscmdPostProcess stage instead
of cscmdPreProcess. This is to ensure that the following order
of execution is guaranteed for every frame:
1. Frame is rendered.
2. Engine sequence manager fires and performs remaining
timed operations.
3. Sequence manager fires and performs operations.
We REALLY need a better event priority system so that we don't
have to depend on those ugly 'pre', 'final', and 'post' things.

7 lines of code changed in:

vengeance2001 2003-01-16 10:07

Added ability to reference an iSharedVariable from a <setambient>
sequence command using a color_var attribute. Walktest now sets
the ambient in the large room to the color of light on the stairs at the
moment you hit Ctrl-L to start the lightning.

46 lines of code changed in:

jorrit 2003-01-10 14:05

- Made the calling of the movable callbacks safe so that they now
can delete themselves from the movable. This basically amounts
to walking the callback list in reverse order.
- Changed the loops in all iLightCallback functions to go in reverse
order instead of the solution that is now used.
- Added iLight parameter to the functions in iLightCallback. That
way you can use the same callback instance for listening to
multiple lights at once.
- Added iObjectWatcher interface. This is a new system so that you
can easily watch a number of objects at the same time. Currently
this system supports lights and movables.
- Added iEngine->CreateObjectWatcher(). This will create an empty
object watcher for your own personal use.
- Added csPtrArray. This is a templated array similar to csRefArray.
The main difference is that no reference counting is used.
The difference with csVector is that csPtrArray is type-safe.

5 lines of code changed in:

jorrit 2003-01-08 13:39

- Added OnDestroy() to iLightCallback.
- The comments in iLightCallback indicated that it was safe to
remove the callback from inside the callback itself. But this
was actually not true. Changed the loops in light code to make
it really safe.

1 lines of code changed in:

jorrit 2003-01-08 10:45

- Fixed a memory leak in the light callbacks (for color changes)
that were added some time ago to the lighting class. The code
used a csVector to store the light callbacks but csVector doesn't
automatically DecRef() the contents when destructed. Now uses
csRefArray instead.
- Added OnPositionChange() to iLightCallback. This is called when
the position of a light changes.
- Added OnSectorChange() to iLightCallback. This is called when
the sector of a light changes.
- Added OnRadiusChange() to iLightCallback. This is called when
the radius of a light changes.
- Added GetLightNumber() to iLight. This can be used to check if
a light has changed position, color, sector, or radius since last
time you called that function.
- Bounding box is not correctly updated after doing HardTransform() on
a 3D sprite.

20 lines of code changed in:

dentoid 2002-12-18 20:29

Fixes compiling errors with new renderer.

6 lines of code changed in:

sunshine 2002-12-12 08:51

Eliminated compilation warning.

0 lines of code changed in:

vengeance2001 2002-12-12 07:32

Change delay time to attribute from contents in delay sequence tag.
Added min and max attributes to allow for randomization of delay times.

69 lines of code changed in:

jorrit 2002-12-11 13:56

Another compile fix.

2 lines of code changed in:

jorrit 2002-12-11 13:54

Fixed compile error in recent addition to engine sequence manager.

2 lines of code changed in:

(28 more)


Generated by StatCvs v0.2-dev