aboutsummaryrefslogtreecommitdiff
path: root/sword2/driver/driver96.h
AgeCommit message (Collapse)Author
2005-01-01Updated copyright year.Torbjörn Andersson
svn-id: r16397
2004-06-05CleanupTorbjörn Andersson
svn-id: r13933
2004-05-09Removed the buffering of mouse and keyboard events. I don't think any ofTorbjörn Andersson
our other engines do this, so there is little reason for BS2 to. I did add a filtering mechanism so that mouse button releases and scroll wheeling is ignored during normal gameplay, but I don't know if that was necessary either. Since this left little more than an empty husk where the Input class used to be, I've eliminated that class and buried its remains in Sword2Engine. svn-id: r13812
2004-04-23Major revamping of the BS2 memory manager and, some small changes to theTorbjörn Andersson
resource manager. All new code! All new bugs! svn-id: r13603
2004-01-06It's a new year in BS2 land, too!Torbjörn Andersson
svn-id: r12181
2004-01-04Some cleanup and Valgrind warning fixes.Torbjörn Andersson
svn-id: r12141
2004-01-03Made the music code more like the one in BS1, i.e. the fade time is longerTorbjörn Andersson
and it now fades both up and down. Plenty of cleanups, simplifications and just moving code around to group it in what I hope is a more logical fashion. Fixed a long-standing bug where spot effects would eventually use up all available sound effect handles. (I may have introduced this when I removed the expiration of sound effects from FxServer().) svn-id: r12108
2003-12-28Hopefully the last big renaming. Now the datatypes have names likeTorbjörn Andersson
"StandardHeader" instead of "_standardHeader". svn-id: r11997
2003-12-19Implemented scroll wheel handling for save/load dialogs. (This turned up aTorbjörn Andersson
few other hitherto harmless bugs, which I've hopefully managed to fix.) svn-id: r11762
2003-12-10Restored some relevant information to a comment that was removed by myTorbjörn Andersson
previous commit. svn-id: r11551
2003-12-10Sprite surfaces (as opposed to standard sprites) are always displayTorbjörn Andersson
aligned, never flipped and never RLE16-compressed. Simplified the code accordingly. (Displaying the restore dialog when specifying an unused save slot from the command-line works again now.) Plus some minor cleanups. svn-id: r11550
2003-11-25More cleanup. Another unused file bites the dust.Torbjörn Andersson
svn-id: r11363
2003-11-16More cleanup. I've eliminated all the temporary global variables I've addedTorbjörn Andersson
over the past few weeks, except for g_sword2. (Of course, this doesn't necessarily make the code any prettier, but we can work on that later.) svn-id: r11309
2003-11-13Re-enabled the CD swapping code, after rewriting it a bit.Torbjörn Andersson
If a cluster file isn't found the resource manager will first check if it's one of the files that it expects to find on the hard disk. If so, it's considered a fatal error. Otherwise it will present the user with an "Insert CD1" or "Insert CD2" message, just like the original did. Unlike the original, the user will have to press a button or click the mouse to indicate when he's done. I don't know if we even can detect the CD automatically in any portable way. As far as I can see, we'll need at least two separate path settings for this to actually work: one for the HD install directory, and one or two for the CDs. The file that are supposed to be found on the HD are only on one of the CDs, so the amount of CD swapping would probably be unbearable otherwise. As a consequence, I haven't actually tried running the game from CD yet. By the way, the old caching code has been removed completely now. All it did was to copy the cluster file to HD for faster access. ScummVM never did that, but so far no one has complained. svn-id: r11273
2003-11-12cleanupTorbjörn Andersson
svn-id: r11266
2003-11-11Removed SVM_timeGetTime(). We may as well call get_msecs() directly.Torbjörn Andersson
svn-id: r11260
2003-11-11Moved low-level keyboard and mouse handling to a new Input class, andTorbjörn Andersson
renamed the Display class Graphics for no better reason than me liking the phrase "sound and graphics" better than "sound and display". svn-id: r11258
2003-11-08cleanup whitespacesPaweł Kołodziejski
svn-id: r11212
2003-10-15Dumped most of the remaining "driver" code into a new "Display" class. ThisTorbjörn Andersson
touches a lot of the code, of course, and adds yet another global variable (temporarily, I hope), but everything still seems to work. Knock on wood. svn-id: r10806
2003-10-07Some cleanup, some code removal and some unstubbing. Nothing important.Torbjörn Andersson
svn-id: r10659
2003-10-05Made a separate class for the cutscene functions, removed some unused codeTorbjörn Andersson
and made some other minor cleanups. svn-id: r10614
2003-10-04Moved some stuff out of driver96.h. Eventually I'd like to get rid of mostTorbjörn Andersson
Moved some stuff out of driver96.h. Eventually I'd like to get rid of this file completely. Or at the very least most of it. svn-id: r10589
2003-10-04Changed to use #include "bs2/..." and removed the inclusion of standard CTorbjörn Andersson
headers. Most (all?) of the ones we need should probably come from stdafx.h instead. svn-id: r10588
2003-10-04added namespace Sword2Max Horn
svn-id: r10581
2003-10-03use C++ struct naming instead of typedefs -> this fixes (or works around, ↵Max Horn
whatever you prefer to call it) the GCC_PACK problem in Doxygen svn-id: r10569
2003-10-02renamed namespace ScummVM to CommonMax Horn
svn-id: r10544
2003-09-29cleanupTorbjörn Andersson
svn-id: r10484
2003-09-28More cleanup, plus support for cutscene leadout music. For now, we onlyTorbjörn Andersson
play that music for cutscenes that have subtitles. svn-id: r10460
2003-09-27Began unifying the function documentation in driver96.h with the one in theTorbjörn Andersson
individual files, into what I hope are doxygen ones. svn-id: r10431
2003-09-27Removed CopyScreenBuffer() since it was a no-op anyway.Torbjörn Andersson
svn-id: r10427
2003-09-24Replaced abs() with ABS and BOOL with bool, plus some minor cleanups.Torbjörn Andersson
svn-id: r10391
2003-09-23Removed ancient version history. Much of it doesn't apply to us, and wasTorbjörn Andersson
cluttering up the files anyway. (Though I do feel a slight twinge of guilt for removing historical records like this. :-) svn-id: r10384
2003-09-23Must ... make ... space ... for ... FotAQ ...Torbjörn Andersson
svn-id: r10383
2003-09-23Removed the screenshot code. (The SDL backend already has the ability toTorbjörn Andersson
make screenshots.) svn-id: r10382
2003-09-23Changed the keyboard handling to store "keyboard events", rather than justTorbjörn Andersson
characters. Hopefully this will make things work smoother on the Mac, but I have no way of testing that. svn-id: r10376
2003-09-23Removed unused codeTorbjörn Andersson
svn-id: r10368
2003-09-22Cleaned up the sound code enough to add cutscene voice-overs. I haven't hadTorbjörn Andersson
the time to do much testing yet, but it seems to work for me. svn-id: r10361
2003-09-19cleanupTorbjörn Andersson
svn-id: r10308
2003-09-18moved engine.* to base; this fixes some linking issues when building a ↵Max Horn
barebone ScummVM (or maybe I just want to increase our CVS stats? <g>) svn-id: r10287
2003-09-17cleanupMax Horn
svn-id: r10277
2003-09-13cleanupMax Horn
svn-id: r10236
2003-09-13pack _parallax to be on the safe sideOliver Kiehl
svn-id: r10234
2003-09-13cleanupMax Horn
svn-id: r10204
2003-09-09Added a WaitForFade() function, to replace numerous while-loops scatteredTorbjörn Andersson
througout the code. svn-id: r10127
2003-09-08Complete rewrite of the in-game dialogs (quit, restart, settings, save andTorbjörn Andersson
load). The new code is smaller, hopefully a bit easier to read and doesn't use up all the CPU time. Of course, it may some new and exciting bugs too. ;-) svn-id: r10079
2003-09-03fixed interval of fxServer func (why i saw before 1000 miliseconds?), moved ↵Paweł Kołodziejski
init sound data to class sound svn-id: r9980
2003-08-30added sfx support, increased speech support, and music code(streaming works ↵Paweł Kołodziejski
fine but you don't hear anything) newStream, and appendStream doesn't work but playRaw works for music svn-id: r9923
2003-08-28Removed the Surface class in favor of small struct specially made for theTorbjörn Andersson
block surfaces. (A block surface is a 64x64 tile of a parallax layer.) I've also done a few things to try and optimize the drawing: * The back buffer is no longer cleared between frames. This may cause regressions, but I do believe that the entire picture area is always completely re-rendered for each frame. As a result of this, the menu code is now responsible for clearing the icon areas itself. * A few unnecessary copy_rect() calls were commented out in favor of one big copy_rect() in ServiceWindows(). * Completely opaque block surfaces are copied with memcpy(), one line at a time. Unless we manage to add intelligent screen redrawing, I don't think it will get that much faster than this, though there is some unnecessary data copying in DrawSprite() that could be removed. And the game is still a terrible CPU hog. I believe the animation runs at approximately 12 fps. If there's still time left, it will pump out further frames to get smooth scrolling. We ought to put a cap on that, and if it has already reached the scroll target it should sleep for the rest of the render cycle. svn-id: r9886
2003-08-26The graphics detail settings partially work now. They only affect howTorbjörn Andersson
sprites are drawn, but I think that's how it should be. 1: No bells or whistles. 2: This setting adds sprite blending, e.g. the smoke at the docks or the display cases at the Glease Gallery. 3: This setting adds light map support, e.g. when walking under the shack at the docks. 4: This setting adds better scaling algorithms. The first three settings should work fine now. In fact, the third setting is what we used to implement. The fourth setting still needs work and testing. I've added code for downscaling case, but frankly I'm not convinced the result is any better than with the simpler scaler. I usually can't even tell the difference. Of course, my translation of the original code could very well be buggy. svn-id: r9867
2003-08-25Clarified the comments for our Surface class a bit. I plan on removing itTorbjörn Andersson
completely soon, so don't use it unless you really, really need to. svn-id: r9855