Commit Graph
249 Commits
Author SHA1 Message Date
Nicola Mettifogo 5b39775184 Some more restructuring of rendering code.
svn-id: r35343
2008-12-13 17:52:37 +00:00
Nicola Mettifogo 800db6f142 Restructuring of rendering code.
svn-id: r35342
2008-12-13 17:31:48 +00:00
Nicola Mettifogo db88c544b7 Fixed assorted leaks in Parallaction.
svn-id: r35270
2008-12-07 12:41:50 +00:00
Eugene Sandulenko 00de4b2b3c Fix bug #2401150: "Compiler: No matching function (Parallaction / Amiga)"
svn-id: r35269
2008-12-07 09:21:01 +00:00
Nicola Mettifogo 4c377e0339 Fixed positioning of overlayed graphics (dialogues, inventory, labels) in all locations. These items are now all handled in screen coordinates which are translated automatically by the renderer.
svn-id: r35255
2008-12-06 06:17:10 +00:00
Nicola Mettifogo 7681461b16 Implemented horizontal scrolling for BRA, by using a back buffer. Dialogues in scrollable locations are a bit messed up for the moment.
svn-id: r35253
2008-12-06 04:51:04 +00:00
Johannes Schickel 5a0556f09c Committed my patch #2123680 "SDL: Backend transaction / rollback support".
svn-id: r35062
2008-11-14 22:08:10 +00:00
Nicola Mettifogo cd3011e408 Fixed assorted leaks in NS Amiga.
svn-id: r34870
2008-11-01 12:39:01 +00:00
Max Horn 3248906156 Engine class changed:
- Moved initCommonGFX() && GUIErrorMessage() out of class Engine
- got rid of the _autosavePeriod member (this prevented users from
  changing the autosave period during runtime)
- Got rid of an evil 'using GUI::Dialog' statement
- Clarified some Doxygen comments

svn-id: r34720
2008-10-02 17:48:01 +00:00
Nicola Mettifogo 2e9bdfb3b1 Removed global g_system.
svn-id: r34209
2008-08-30 15:49:54 +00:00
Nicola Mettifogo d5d4500b64 * Enlarged buffer for frame decoding. Crashes in the introduction were caused by a small buffer and subsequent out-of-bound writes.
* Disabled debug code.

svn-id: r34046
2008-08-20 03:36:49 +00:00
Nicola Mettifogo c2089be660 * Split up blt routine (there is room for a ton of improvements)
* Added scaling as a new blt option
* Activated scaling for the main character in BRA

svn-id: r33985
2008-08-18 07:12:05 +00:00
Nicola Mettifogo 797a5e7035 Fixed label positioning in BRA.
svn-id: r33928
2008-08-16 06:39:58 +00:00
Nicola Mettifogo 22eaffcb34 Updated layer calculation: animations are now hidden properly by background elements (but not items yet).
svn-id: r33894
2008-08-15 08:44:41 +00:00
Nicola Mettifogo 0606fef24e Made coordinates and frame number protected into Zone and Animation, and changed client code to use get/set. This will allow various simplifications (e.g. when calculating Z), and is a step towards correct handling of interactive zones of Zone/Animation in BRA.
svn-id: r33892
2008-08-15 04:30:45 +00:00
Nicola Mettifogo 6ed4beb1bf Made changing of background more flexible, in that the engine can now configure its BackgroundInfo before passing it to Gfx.
svn-id: r33469
2008-07-31 12:50:43 +00:00
Nicola Mettifogo 591973c827 Changed Gfx::_backgroundInfo to be a pointer. This temporarily kills all z-buffering.
svn-id: r33468
2008-07-31 12:26:12 +00:00
Nicola Mettifogo 884b753c73 Added dialogue text rendering for BRA.
svn-id: r33402
2008-07-29 09:44:05 +00:00
Nicola Mettifogo df50b8ee68 Inventory is now properly rendered. Item selection is not yet working.
svn-id: r33355
2008-07-28 06:06:35 +00:00
Nicola Mettifogo aee1284678 BRA now parses path data from the scripts.
svn-id: r33295
2008-07-26 02:09:50 +00:00
Nicola Mettifogo 4936e5f7df * Moved end intro and end game sequences code to gui.
* Rewrote all gui code to be run inside the main loop
* Added code to avoid crashes when a scene with no standard background is drawn

svn-id: r33260
2008-07-24 09:24:32 +00:00
Nicola Mettifogo 8932619ee2 More decoupling of inventory code.
svn-id: r33224
2008-07-23 02:45:09 +00:00
Nicola Mettifogo 551f6d71c3 Made frame unpacking buffer dynamic (this frees some BSS space).
svn-id: r33072
2008-07-15 10:59:58 +00:00
Nicola Mettifogo 12cefc4132 Fixed leaks in NS and BRA.
svn-id: r32976
2008-07-09 13:27:09 +00:00
Nicola Mettifogo 0f8f3d51bb Fixed regression after label code refactoring.
svn-id: r32940
2008-07-07 14:51:27 +00:00
Nicola Mettifogo d387d1af0e - Moved dialogue balloon management code from Gfx to its own class
- Added a class to draw balloons in BRA (still without text and with wrong placement)

svn-id: r32902
2008-07-04 00:29:21 +00:00
Nicola Mettifogo 59e672ef40 Changed balloons to use GfxObj as well. Next step is to integrate balloons for BRA.
svn-id: r32883
2008-07-03 10:31:25 +00:00
Nicola Mettifogo 77a60673ef - Changed labels to be GfxObj's, thus removing the Label object altogether.
- Changed Item's to be almost GfxObj's, since ownership and destruction of underlying resource is an issue here (got to think some more about it).

svn-id: r32873
2008-07-02 01:41:08 +00:00
Nicola Mettifogo 2779b851ab Small cleanup/shuffling of Gfx code.
svn-id: r32847
2008-06-30 01:36:50 +00:00
Nicola Mettifogo d8645297cd Changed all remaining code to use the GfxObj class to keep frames data. This allows for more uniform processing during rendering, and also fixes the display of dialogue faces for BRA.
svn-id: r32833
2008-06-29 09:30:32 +00:00
Nicola Mettifogo fe6ab4227e Return to menu after introduction has played (with glitches).
svn-id: r32523
2008-06-04 01:04:26 +00:00
Nicola Mettifogo 40ff1537a9 - Moved input code to its own class.
- Slightly simplified inventory highlight code thanks to changes in input code.

svn-id: r32115
2008-05-14 14:34:01 +00:00
Nicola Mettifogo 984e42569e Replaced unpackBlt with a more general version that can also unpack animation in BRA.
svn-id: r31532
2008-04-17 09:31:22 +00:00
Nicola Mettifogo 58d58d5100 Implemented scroll command and added a couple more debug variables.
svn-id: r30814
2008-02-07 12:49:46 +00:00
Filippos Karapetis edab25743e Silence MSVC warning about uninitialized variables
svn-id: r30812
2008-02-06 18:13:22 +00:00
Nicola Mettifogo 509f2f6659 Enabled moving projector in Nippon Safes. This should fix long standing bug #1729309.
svn-id: r30811
2008-02-06 15:38:33 +00:00
Nicola Mettifogo c03cb964c0 Fixed broken halfbrite implementation from some time ago (nobody complained!!!).
svn-id: r30810
2008-02-06 14:56:10 +00:00
Nicola Mettifogo 014511f380 Made font handling stateless.
svn-id: r30809
2008-02-06 14:12:59 +00:00
Nicola Mettifogo 246fbfd1e4 Added experimental debug feature: variables influencing the rendering that can be set via console using the 'set' command. The implementation is still partial. Leveraging on this, the engine can now selectively display the current background mask instead of the background itself.
svn-id: r30808
2008-02-06 14:05:08 +00:00
Eugene Sandulenko 9f6282defc Fix compilation
svn-id: r30800
2008-02-05 15:33:01 +00:00
Nicola Mettifogo 50ff4a4603 Fixed size of temporary buffer for unpacking animation frames.
svn-id: r30795
2008-02-05 09:26:28 +00:00
Nicola Mettifogo fea63a5181 Fixed maximum token length for the parser.
svn-id: r30776
2008-02-03 17:06:45 +00:00
Nicola Mettifogo 748a90ca23 Added code to unpack and render animations in BRA.
svn-id: r30755
2008-02-03 10:48:07 +00:00
Nicola Mettifogo 36d863f94e Reworked menu in BRA (now functioning).
svn-id: r30737
2008-02-02 12:18:36 +00:00
Nicola Mettifogo 5306701eab Allowed BackgroundInfo to display bitmaps smaller than the screen and other small tweaks to re-enable splash screens in BRA.
svn-id: r30732
2008-02-02 10:18:31 +00:00
Nicola Mettifogo 015ad5e469 Some more integration of background code into BackgroundInfo.
svn-id: r30731
2008-02-02 09:48:07 +00:00
Nicola Mettifogo 249877fa82 Moved depth buffer and palette rotation data into BackgroundInfo.
svn-id: r30725
2008-02-02 00:41:31 +00:00
Nicola Mettifogo fb4ef4b394 More cleanup: kBit2 is now replaced by the BackgroundInfo structure.
svn-id: r30697
2008-01-29 10:04:49 +00:00
Nicola Mettifogo 0e02a9398a Cleanup (step 2). No code outside Gfx reference screen buffers anymore.
svn-id: r30695
2008-01-29 09:37:03 +00:00
Max Horn 0150ada2d7 Replace lock/unlock/lock/unlock by lock/unlock for efficency
svn-id: r30693
2008-01-28 22:20:55 +00:00