Commit Graph
61 Commits
Author SHA1 Message Date
RichieSams e50797d6b1 ZVISION: Update includes to use the new file structure 2013-11-01 02:52:57 -05:00
RichieSams c2e7b1ec22 ZVISION: Create custom working window size for ZGI 2013-10-25 18:11:48 -05:00
RichieSams bad28dc158 ZVISION: Standardize includes order and format
Format is:
common/scummsys.h    (Only if a .cpp file)

header file for this file (Only if a .cpp file)

zengine includes

other includes, grouped by module
2013-10-02 09:10:00 -05:00
RichieSams 98e7627591 ZVISION: Add debug levels 2013-10-02 09:09:50 -05:00
RichieSams 02aaffd894 ZVISION: Break comment into multiple lines for readability 2013-10-02 09:09:49 -05:00
RichieSams 031be61b07 ZVISION: Clean up the ZVision constructor 2013-10-02 09:09:48 -05:00
RichieSams 229e4fe3be ZVISION: Move creation of the managers to ZVision::initialize()
In order to make the ZVision constructor as lightweight as possible
2013-10-02 09:09:48 -05:00
RichieSams 4af62cfd3a ZVISION: Register the "fonts" directory with SearchMan 2013-09-16 00:17:27 -05:00
RichieSams 035ee29f1d ZVISION: Initialize StringManager 2013-09-16 00:17:26 -05:00
RichieSams 2b2f85063a ZVISION: Clean up StringManager and SaveManager after use 2013-09-15 16:27:19 -05:00
RichieSams c312b147fa ZVISION: Create an instance of StringManager 2013-09-15 15:01:01 -05:00
RichieSams f6c36aa14c ZVISION: Create an instance of the SaveManager 2013-09-15 15:00:58 -05:00
RichieSams b50afa2b15 ZVISION: Remove unused function 2013-09-15 15:00:40 -05:00
RichieSams 2dab04e14b ZVISION: Do full working window warp instead of image at a time 2013-09-06 22:29:19 -05:00
richiesams 235620750a ZVISION: Create methods for generating save file names 2013-09-04 00:16:46 -05:00
richiesams 9ea91f5c9c ZVISION: Convert ZVision singleton accessors to be inline 2013-09-03 23:44:26 -05:00
richiesams 4288c4fa0e ZVISION: Remove unnecessary pixel format switching from video code
This is part of a series of commits converting all game assets to RBG 565 from
RBG 555. The argument is that certain backends do not support RGB 555. AVI
videos are already in RGB 565, so we just need to remove the code that switched
the pixelFormat during videos.
2013-09-24 13:59:38 +02:00
richiesams 7dcfa9ef4c ZVISION: Call RenderManager::update() before ScriptManager::update()
This ensures the background will be rendered before anything from Puzzles or Controls
2013-08-20 11:41:45 -05:00
richiesams e0937a12cd ZVISION: Move _cursorManager construction after the folder directories have been registered with SearchMan 2013-08-16 12:17:29 -05:00
richiesams 08a8ab885b ZVISION: Apply panorama/tilt warping after all images have been rendered to a backbuffer
This makes wrapped warping much easier as well as allowing changeLocation offsets to
work properly
2013-08-15 14:15:48 -05:00
richiesams 9b8bad3c83 ZVISION: Add _renderManager::update() to ZEngene::run() 2013-08-14 11:20:23 -05:00
richiesams 85c67e5e2f ZVISION: Implement ZVISION::getCursorManager() 2013-08-14 11:20:19 -05:00
richiesams 54f16f2539 ZVISION: Create the concept of a working window
The working window is a Rect centered inside the actual window edges. All in-game
coordinates are in the working window coordinate system. Also, all images in-game
are clipped to the edges of the working window.
2013-08-14 11:20:04 -05:00
richiesams b9b8207a14 ZVISION: Dispose of .zfs file streams after processing them 2013-08-11 16:44:52 -05:00
richiesams dd77956819 ZVISION: Move SearchMan directory registration outside ZVision constructor
The launcher can do some extra changes within SearchMan after engine constructor.
This makes sure everything is set before registering more directories
2013-08-11 15:08:22 -05:00
richiesams dd11566ffd ZVISION: Move the ScriptManager update functions to a single update() function.
Then make the individual update functions private
2013-08-10 17:28:41 -05:00
richiesams 1b277d34ac ZVISION: Add class to manage cursors 2013-08-09 18:33:15 -05:00
richiesams 0feac806b2 ZVISION: Add a ZGI folder directory to the SearchMan 2013-08-09 14:51:45 -05:00
richiesams 06e6cb5d1f ZVISION: Create method for cycling through all the cursors so as to identify them more easily 2013-08-09 14:51:18 -05:00
richiesams b4b60e1f63 ZVISION: Call _system->updateScreen() every frame
Otherwise the cursor will not be updated
2013-08-09 12:16:43 -05:00
richiesams 946f98b34d ZVISION: Fix frame delay calculation being reversed. Also convert to int to ensure proper 0 clamping 2013-08-05 19:07:55 -05:00
richiesams f2823933b4 ZVISION: Remove extraneous include 2013-08-05 11:56:51 -05:00
richiesams 1d694dcb81 ZVISION: Add support for engine pausing from higher up (GMM, phone call, etc.) 2013-08-05 00:05:25 -05:00
richiesams ec7036469c ZVISION: Make _clock a member variable instead of a pointer to the heap 2013-08-05 00:05:14 -05:00
richiesams 7b9858d6b4 ZVISION: Make video code blocking.
The script system requires that all ResultAction::execute() block until they finish. The video system *was* 'asyncronous'
in that you would just start a video and then run() would finish processing it. This code forces the video to complely finish
before playVideo returns. The Clock object is used to keep track of deltaTime while the video is playing.
2013-08-04 23:52:31 -05:00
richiesams f1135292d0 ZVISION: Optimize integer type usages
The general thought is int is faster than int16 or byte. So if you can afford the
space, use it over int16 or byte. Also, only use int32 when you specifically need
the 32 bits.
2013-08-04 13:32:55 -05:00
Filippos Karapetis 89d8496dba ZVISION: Add detection entry and directories for ZGI 2013-08-04 13:32:55 -05:00
richiesams 364e9d659c ZVISION: Force all files to be registered with SearchMan as 'flat'
There are 10 file name conflicts as a result, but the conflicts are byte identical.
2013-08-04 13:32:38 -05:00
richiesams ed44907309 ZVISION: Move rendering logic from ZVision class to RenderManager class 2013-08-04 13:32:34 -05:00
richiesams 9e6b2dfc12 ZVISION: Create member function for creating a panorama look up table 2013-08-04 13:32:33 -05:00
richiesams 4bd95987d2 ZVISION: Convert old code to use RenderManager 2013-08-04 13:32:31 -05:00
richiesams a30f49b556 ZVISION: Add a game type enum to detection
This is needed for sound file differentiation
2013-08-04 13:32:19 -05:00
richiesams 8d2bef2936 ZVISION: Create console command for loading sounds 2013-08-04 13:32:16 -05:00
richiesams ae84e9508e ZVISION: Add 2x scaling to videos 2013-08-04 13:32:15 -05:00
richiesams 24dc3e1793 ZVISION: Create ScriptManager state handling logic 2013-08-04 13:32:14 -05:00
richiesams 76b2aa33ca ZVISION: Create/refactor methods for playing video.
The pixel format for videos is not the same as for the rest of the game.
(Game: RGB 555, Video: RGB 565)
2013-08-04 13:32:08 -05:00
richiesams afbcca2187 ZVISION: Move engine width, height, and pixelFormat to const member variables 2013-08-04 13:32:08 -05:00
richiesams 540dde67db ZVISION: Cleanup dump method from run() 2013-08-04 13:32:02 -05:00
richiesams 4209236994 ZVISION: Create debug console and apply console logic to main loop 2013-08-04 13:32:01 -05:00
richiesams ebb546c468 ZVISION: Create utility method to dump result action signatures from various .scr files 2013-08-04 13:32:00 -05:00