Module CS/plugins/csparser/services/

back to main page

Summary Period: 2001-09-28 to 2003-06-22

Modules

[root]/CS/plugins/csparser/services

Lines Of Code


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

Authors

Author Changes Lines of code Lines per change
Totals 109 (100.0%) 3727 (100.0%) 34.1
jorrit 70 (64.2%) 1965 (52.7%) 28.0
norman 8 (7.3%) 1343 (36.0%) 167.8
res2002 8 (7.3%) 311 (8.3%) 38.8
sunshine 9 (8.3%) 45 (1.2%) 5.0
matzebraun 5 (4.6%) 30 (0.8%) 6.0
dentoid 3 (2.8%) 21 (0.6%) 7.0
mgeisse 2 (1.8%) 6 (0.2%) 3.0
philwyett 3 (2.8%) 3 (0.1%) 1.0
ab031ns 1 (0.9%) 3 (0.1%) 3.0

Most Recent Commits

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.

14 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:

jorrit 2003-05-21 11:15

Jorrit did various changes related to portal management:
- Moved iPortal definition from imesh/thing/portal.h to
iengine/portal.h. The reason is that portals are now an engine
concept and not only for things. The only portal implementation
is currently still in thing though.
- Added the ability to get the portal vertices from iPortal.
- Added iMeshObject->GetPortalCount() and iMeshObject->GetPortal().
- Also added default implementations of those to csMeshObject
(supporting no portals).
- At two places in the engine (GetNearbyObjects() and PlaceMesh())
this new function is used instead of first querying for
iThingState. This makes those functions a bit faster and is (in
theory) also more general (in the sense of being able to add
portals to any mesh object). However later on most functions
still query for iThingState so this promise of more generality
is not fulfilled yet.

1 lines of code changed in:

res2002 2003-05-17 18:32

- made the following changes:
- extended the stdpt plugin with a fire texture loader.
- added experimental 'convenient token list', currently used by
above loader.
- added a simple color gradient class to csgfx.
- added the possibility to the fire texture to set a user-defined
palette.
- added a gradient parser to the syntax services.
- changed partsys so that a fire system now has a small procedural
fire instead of 'raindrop' texture.

205 lines of code changed in:

jorrit 2003-05-14 13:59

Jorrit fixed a bug in the syntax services. When a polygon is a
portal it is now marked as excluded from the visculling mesh.
Without this fix portals would actually cull geometry even if that
wasn't the idea.

18 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:

jorrit 2003-04-18 10:20

- Removed all the ToText() routines in iSyntaxService. They are not
useful anymore with the new XML format and they prevent the
syntax services plugin from being totally thread-safe.
- Removed all broken implementations of the WriteDown() functions
in the mesh savers. These need to be reimplemented using
XML.

0 lines of code changed in:

matzebraun 2003-04-08 20:20

added the Jamfiles

9 lines of code changed in:

matzebraun 2003-04-02 02:17

Removed the csSome, csConstSome and uint datatypes.

4 lines of code changed in:

jorrit 2003-03-27 14:28

- Updated API mod doc with regards to this new change.
- Syntax service loader no longer supports loading of planes. It now
gives an error saying you must use levtool -planes.
- Removed all texture mapping plane related stuff from
iThingEnvironment.
- Removed the plane loader and saver addon from the thing loader
plugin.
- Removed iPolyTxtPlane interface and fixed thing plugin related to
that. This should already speed up things a tiny bit.

11 lines of code changed in:

jorrit 2003-03-25 11:40

- Changed API of OpenPortal() to accept a G3DPolygonDFP instead
of a 2D polygon. I need z-information.
- First version of OpenGL implementation of OpenPortal().
- Added CS_PORTAL_FLOAT option for portals. This will enable the
portal to use the new OpenPortal() code.
- Added <float> flag to the portal loading code to enable this new
flag. Currently this new feature is not yet working properly.
Needs more testing and fixing.
- Optimized the polygon drawing structures in graph3d.h a little.

5 lines of code changed in:

jorrit 2003-03-20 10:56

- Split iThingState with iThingState and iThingFactoryState.
- Renamed GetPolygonStatic() to GetPolygon().

12 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.

8 lines of code changed in:

jorrit 2003-03-11 11:14

csPolygon3D and csThing no longer inherit from csObject. This added
unneeded overhead (especially in the case of polygons). The
QueryObject() function has been removed. However it is still
possible to set names on polygons. To do that you can use
SetName() and GetName().

4 lines of code changed in:

jorrit 2003-03-05 14:42

- Worked a bit further on blocks: now no longer uses gouraud shaded
polygons.
- Completely changed the way polygons can be shaded. Now it is only
possible to use lightmaps. Previously it was also possible to use
gouraud shading but for that it is better to use genmesh (this
support was never very good anyway). The <shading> keyword
has been changed to accept a boolean instead of NONE, FLAT, GOURAUD,
and LIGHTMAP. With this you can enable/disable texture mapping.
Several API calls in iPolygon3D has been modified for this.
Additionally all iPolyTex* interfaces have been removed.
The functions from iPolyTexNone and iPolyTexLightMap have moved
to iPolygon3D.
- Did some further optimizations in the polygon class with regards to
memory usage and also time efficiency. A single polygon now
takes considerably less memory.
- Removed iPolygon3D->GetPolygonID() since this ID was not used
and not useful. Also removed iCurve->GetCurveID().
- Removed cosinus factor API calls from iPolygon3D and moved them
to iThingState instead. Now it is only possible to control this
on a per-thing level. This change also reflects in the thing
loader.
- Remove csPolyPlane and merged all planes into the polygon class.
This saves on object creation and speed (less pointer indirection).
- Removed some fields from csPolyTexture.
- Cache data in csPolyTexture is now allocated on demand. This
makes the structure smaller at the expense of a little more
memory usage for software renderer alone. Only the software renderer
uses this cache data.
- Also removed the camera space plane from the polygon structure.
This camera space plane is now computed as needed (this was
happening anyway).
- Created new API doc appendix for 0.96 to 0.98.

15 lines of code changed in:

dentoid 2003-02-26 23:01

Made the following changes related to the new renderer.
- Fixed a bug in mtex plugin causing crashes at shutdown
- Fixed an erroneous buffer release in the renderer causing VAR
to crash. VAR still doesn't release buffer correctly, and can't
be used yet.
- Made the windows GL canvas force alpha in framebuffer when using
new renderer. Probably something similar needs to be done in
other canvases.
- Fixed some errors in shader loading. Shaders wasn't prepared
correctly.
- Added possibility to override blendmode per shader pass, and a new
blendmode in new renderer. (DESTALPHAADD)
- Added two example PPL-shaders. They both need some special
attenuationmaps and material setup.
- Fixed a bug in genmesh anonymous stream loading.

10 lines of code changed in:

dentoid 2003-02-02 17:22

Minor fixes and tweaks for the new renderer.

0 lines of code changed in:

jorrit 2003-01-14 12:55

- Added csPDelArray. This is similar to csPArray but it will
delete elements that are removed from the array.
- Replaced all occurances of CS_DECLARE_TYPED_VECTOR with
csPDelArray.
- Removed the CS_DECLARE_TYPED_VECTOR defines.
- Removed the CS_DECLARE_TYPED_IBASE_VECTOR defines.
- Changed the return of csRefArray<T>::Pop() from csRef<T> to
csPtr<T>. This is a lot safer since you can assign a csRef<T>
to a normal pointer and that error isn't detected by a compiler.
But you cannot assign a csPtr<T> to a normal pointer. You are
forced to use a csRef<T> then.
- Fixed mdltool to use a csRef<T> to catch the Pop().
- Fixed compile error in thing plugin (curve templates). Put the
DecRef() back in since it is needed. It will now work correctly.
- csMovable now uses a csRefArray for the listeners. Previously
it wouldn't do that with potentially bad results (i.e. it would
keep no refs to the listeners).
- Fixed the documentation on typed vectors and added documentation
for all new templated arrays.

1 lines of code changed in:

(52 more)


Generated by StatCvs v0.2-dev