Commit Graph
88 Commits
Author SHA1 Message Date
Dries Harnie a723b0e3f5 EMI: Draw background layers at intervals
Previously, we split the background layers into everything
before SO 15 and after, and drew like that. However, this caused
the pink ship in shi.setb to not be drawn.

This patch draws the layers of the background at intervals of ten.
So if a set has six layers, layer 5 is the background and 4,3,2,1,0
are rendered at sortorder 40,30,20,10,0.
2013-06-29 14:41:17 +02:00
Dries Harnie 71c2e44983 EMI: Read binary data in little-endian format 2013-06-04 21:21:26 +02:00
Giulio Camuffo 920875909d GRIM: Make TextSplitter tell the file name on error 2013-02-04 21:36:38 +01:00
Giulio Camuffo 61012a3cd1 GRIM: Fix use of uninitialized value. 2013-01-17 22:51:34 +01:00
Giulio Camuffo 7b1efbc497 GRIM: Set the id of the lights on restore. 2013-01-17 21:35:21 +01:00
Giulio Camuffo 1d5a5ede46 GRIM: Make the lights sorting stable. Fix #678 2013-01-14 22:32:27 +01:00
Giulio Camuffo 81ba83caa0 GRIMDEMO: Fix ObjectState creation. Fix #29 2013-01-08 21:30:14 +01:00
Giulio Camuffo c167a27315 GRIM: Make Sector::getName() return a Common::String. 2012-12-28 21:17:11 +01:00
Giulio Camuffo 3b496abcb6 GRIM: Find the sector with the exact name in MakeSectorActive(). 2012-12-28 18:50:53 +01:00
Paweł Kołodziejski 175620b62a ALL: change license headers from LGPL to GPL, and few updates 2012-12-19 23:15:43 +01:00
Dries Harnie bde37f96a8 EMI: Over-draw some actors in Set::drawForeground
EMI draws portions of the background over actors
with sortOrder >= 15.
2012-11-26 02:08:58 +01:00
Dries Harnie 0c9d18e4b0 EMI: Don't read Set Cmaps 2012-11-14 00:08:06 +01:00
Dries Harnie e3c3e9c337 EMI: Call Driver::setupCamera with given nclip and fclip 2012-07-03 00:20:41 +02:00
Dries Harnie 662e247c77 EMI: Pass scene.roll to Gfx::positionCamera() 2012-07-03 00:20:39 +02:00
Joel Teichroeb 77f4978a42 GRIM: Remove unneeded forbidden symbol exceptions 2012-05-05 22:19:45 -07:00
Joel Teichroeb 94aeca9663 GRIM: Remove tag from the pool template 2012-04-05 15:20:30 -07:00
Giulio Camuffo 0c68ad8a67 GRIM: Return the right sector in IsActorInSector(). Fix #538
There may be more than one sector that match the name wanted, so
we must push the one containing the actor position.
2012-02-19 16:08:01 +01:00
Giulio Camuffo 3344b3c756 GRIM: Setup the lights from the closest to the farthest to the actor position.
This way if OpenGL can't handle all the set lights it will use the most
important ones. Fix #481
2012-02-10 14:57:58 +01:00
Giulio Camuffo d1a064e41d GRIM: Use strstr to get a sector by name. Fix #530 2012-02-09 16:33:00 +01:00
Joel Teichroeb 7ff91c5817 GRIM: Various cleanups to code 2012-02-04 18:07:24 -08:00
Joel Teichroeb cd4adf5ac1 GRIM: Created a function out of some duplicated code 2012-02-02 12:18:11 -08:00
Joel Teichroeb 505ec14fc3 GRIM: Greatly improved memory usage of bitmaps 2012-02-02 09:38:37 -08:00
Joel Teichroeb a9c664379e GRIM: Make saving and restoring use more appropriate types and rename functions to be more logical 2012-01-28 10:03:27 +01:00
Einar Johan T. Sømåen 113e72ca4d EMI: Fix various memory leaks. 2012-01-26 06:51:10 +01:00
Joel Teichroeb af7f68db76 GRIM: Fix some memory leaks related to not always freeing streams 2012-01-20 12:06:01 -08:00
Joel Teichroeb a476452d6c GRIM: Move saving and loading code for Lights and Setups to their own functions 2012-01-19 14:19:36 -08:00
Einar Johan T. Sømåen cd58c8c9f1 EMI: Start work on implementing a sound-engine for EMI
This adds both a splitting-class for choosing between iMuse and EMISound,
as well as EMISound, which handles the sound-channels for EMI, and
SoundTrack, which has a test-implementation in VimaTrack, that allows for
playing back the voice-tracks in the demo.
2012-01-14 08:18:43 +01:00
Giulio Camuffo 14960da59e GRIM: Fix the behaviour when trying to set a setup above the upper limit.
Fix #261
2012-01-11 19:16:10 +01:00
Paweł Kołodziejski e350c7f777 renames 2012-01-06 23:29:45 +01:00
Pawel Kolodziejski ad62fcac9c update links 2012-01-06 13:32:30 +01:00
Andrea Corna 23bc633f3a GRIM: Make Set and Sector load from a stream instead of a data Block 2011-12-30 17:17:08 +01:00
Andrea Corna 49071ee661 GRIM: Make Costume and TextSplitter load from a stream instead of a data Block 2011-12-30 17:17:08 +01:00
Giulio Camuffo 353c42effe GRIM: Use the new foreach macro.
Modify a bit PoolObject::Pool to allow it to be used with foreach.
2011-11-21 22:07:12 +01:00
Giulio Camuffo a98c561668 GRIM: Do not create a new ObjectState if it exists already.
This way commit 075c1cae is practically reverted without reintroducing #296
and fixing #423. Fix #423
2011-11-19 19:31:32 +01:00
Giulio Camuffo 3193fec1e6 GRIM: Use a smart pointer to store objects that can be deleted behind our back. Fix #398 2011-10-29 15:13:39 +02:00
Giulio Camuffo 6a3dc3e9c8 GRIM: Turn off the lights of a set when changing it. 2011-10-18 18:01:52 +02:00
Giulio Camuffo 7b1f87f928 GRIM: Boost of the debug system, using debug channels. 2011-10-10 18:17:22 +02:00
Giulio Camuffo 73684f1fbc GRIM: Rename Scene to Set, and scene.{h,cpp} to set.{h, cpp}. 2011-09-19 16:53:08 +02:00