Module CS/plugins/video/canvas/ddraw8/

back to main page

Summary Period: 2001-06-03 to 2003-06-22

Modules

[root]/CS/plugins/video/canvas/ddraw8

Lines Of Code


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

Authors

Author Changes Lines of code Lines per change
Totals 53 (100.0%) 1301 (100.0%) 24.5
philwyett 12 (22.6%) 1091 (83.9%) 90.9
sunshine 21 (39.6%) 94 (7.2%) 4.4
jorrit 15 (28.3%) 93 (7.1%) 6.2
matzebraun 3 (5.7%) 19 (1.5%) 6.3
pgarceau 1 (1.9%) 2 (0.2%) 2.0
mgeisse 1 (1.9%) 2 (0.2%) 2.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:45

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:

sunshine 2003-06-05 11:52

Eric Sunshine fixed ddraw8/Jamfile so that it only enables the ddraw8
target if DirectDraw8 is present (DDRAW8.AVAILABLE=yes). This prevents
Jam from trying to build this plugin when a lesser version of DirectDraw
is enabled (in which case the build would fail). Note that we need to add
a DirectDraw8-specific check to configure.ac.

2 lines of code changed in:

jorrit 2003-05-29 08:07

Replaced NULL with 0.

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

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

9 lines of code changed in:

matzebraun 2003-04-08 20:21

added the Jamfiles

15 lines of code changed in:

pgarceau 2003-01-09 01:23

Relocate -I /directx references for Win32gcc (Mingw-Msys)

2 lines of code changed in:

sunshine 2002-12-24 11:47

Eric Sunshine added a patch to the canvas class which allows the
configuration key "Video.DisplayNumber" to select the display (monitor)
number. If the configuration key is absent, or is set to 0, then the
primary display is used (which is the old behavior). If it is greater
than zero, then the requested display number is used. If the requested
display number is not available, then the primary display is used.
Presently, only the DirectDraw canvases respect the display number. This
patch is based upon code sent by Groton <groton@gmx.net>.

2 lines of code changed in:

sunshine 2002-09-25 09:50

Eliminated compilation warning in ddraw and ddraw8 canvases regarding
promotion of bool to int when passed through vararg (...).

1 lines of code changed in:

matzebraun 2002-09-21 11:42

included windows.h in all files where directx headers are used - this is needed for latest mingw. Also fixed some csRef errors in ddraw8 canvas and enabled as default for mingw again

4 lines of code changed in:

sunshine 2002-08-07 13:23

Eric Sunshine (hopefully) worked around a problem caused by buggy stat()
on Win9x and WinME where a bogus result is returned if the path has a
trailing slash. This causes problems with the makefile dependency rules
which depend upon $(OUTBASE), $(OUTOS), $(OUTPROC), or $(OUT), all of
which end with a slash, since make thinks that those directories don't
exist even when they are present. Consequently, make tries invoking
$(MKDIR) on already-present directories. The work-around was to redefine
these variable so without the trailing slash. Also updated all makefiles
throughout the project to take into account that these variables are no
longer defined with a trailing slash.

6 lines of code changed in:

philwyett 2002-03-10 01:08

ARGH - Major revert. What was I thinking?

I am blaming jetlag. Thats my story and I'm sticking too it. :)

1 lines of code changed in:

philwyett 2002-03-10 00:41

Fixed all the warnings caused by changes to:

CS_IMPLEMENT_APPLICATION and CS_IMPLEMENT_PLUGIN

Nothing thrilling, but some of the changes are blind into other ports so
be warned if you get the odd compiler warning or error.

Also changed lib name which msvc will use for new divx for plugin to
eliminate conflicts.

1 lines of code changed in:

jorrit 2001-10-17 14:51

- Did a fundamental change to CS_QUERY_REGISTRY and
CS_QUERY_REGISTRY_TAG. These macros are now guaranteed to
increase the reference count of the returned object. In the
past they didn't.
- Fixed a bad bug in csObjectRegistry::Unregister(). It would
only delete the 'registry' vector and not the 'tags' vector.
Why this bug only presented itself now I don't know.
- At this moment my changes cause big leaks in SCF at exit. I have
not yet been able to find out why.

6 lines of code changed in:

sunshine 2001-10-16 23:52

Eric Sunshine made the following changes to the project:

-*- Converted the Windows port over to the new csPlatformStartup() and
csPlatformShutdown() paradigm in preparation for the removal of the
system driver.

-*- Removed all code and functionality from the Windows system driver
subclass. This class is now _completely_ empty and ready for removal.

-*- Fixed a bug in the OpenGL Windows canvas where it was stealing a
reference to the Win32 "helper" object from some other module by
calling DecRef() even though it didn't own a reference.

-*- Fixed win32/csosdefs.h so that the #pragmas for disabling warnings
appear before the Windows system headers are included. This change
eliminates the thousands upon thousands of warning messages emitted by
MSVC5 when building the project.

3 lines of code changed in:

jorrit 2001-10-10 15:29

- Added cssys/sysfunc.h which contains the declarations of the
global system dependent functions like csSleep(), csGetTicks(),
csPrintf(), and csGetInstallPath().
- Removed the unneeded includes from cssys/system.h and cssys/sysdriv.h
from most of CS.
- Slightly updated the simple.txi tutorial. Work in progress though.

1 lines of code changed in:

jorrit 2001-10-09 11:29

- Removed iSystem::GetObjectRegistry().
- The object registry is now a parameter to the system driver and
is no longer created by the system driver itself. Instead
csInitializer::CreateObjectRegistry() will now create the object
registry.
- Moved the cleanup of the object registry to
csInitializer::DestroyApplication(). Also moved the cleanup of
SCF to there.
- Added Clear() to the iObjectRegistry interface.
- Several system drivers performed some special code right before
NextFrame() was being handled (Win32, BeOS, ...). This special
code has now moved to an event handler in the system driver instead.
The system driver will now listen to cscmdPreProcess and perform
the functionality that used to be in NextFrame().
- Removed NextFrame() from iSystem, csSystemDriver and all subclasses
of csSystemDriver (SysSystemDriver for all platforms). In case
you needed to explicitely call this function (in CS only CSWS did
this) then you can call iVirtualClock::Advance() followed by
iEventQueue::Process().
- csApp now calls Advance()/Process().
- The result of this is that the iSystem interface has become empty.
So it can finally be removed!!! In addition CS_GET_SYSTEM is now
also gone.
- Moved the virtual clock implementation in the system driver to
a seperate csVirtualClock in csutil. The system driver no longer
creates and manages the virtual clock. The already existing
csInitializer::CreateVirtualClock() will now create and register
the virtual clock.

0 lines of code changed in:

philwyett 2001-08-27 11:17

Removed old include files for iWin32 Sys Driver.

0 lines of code changed in:

philwyett 2001-08-14 07:02

Beginings of a optimization schedule.

- Loop optimization.
- Removed over-use and bad use of variables in some code.
- Altered some code code to use bitwise shifting for "if ( var == 1)" etc.
testing. This is an optimization which eliminates assembler level
CMP in speed critical code. Some may not like this and can be removed
if it makes people un-comfortable.

- Did some altering of code to bring within CS coding style.

Work in progress. The benefits of changes can been seen in Windows port
with faster apps starts (by-product), more efficient proc textures i.e. animation
speed of certain elements improved. e.g demosky and screen FX (F4 - F6)
keys when running walktest. General FPS is also up a fraction...

6 lines of code changed in:

(17 more)


Generated by StatCvs v0.2-dev