2006-03-20 17:12:09 +00:00
|
|
|
/*
|
2014-06-01 17:55:23 +00:00
|
|
|
* Portions of this file are copyright Rebirth contributors and licensed as
|
|
|
|
* described in COPYING.txt.
|
|
|
|
* Portions of this file are copyright Parallax Software and licensed
|
|
|
|
* according to the Parallax license below.
|
|
|
|
* See COPYING.txt for license details.
|
|
|
|
|
2006-03-20 17:12:09 +00:00
|
|
|
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
|
|
|
|
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
|
|
|
|
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
|
|
|
|
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
|
|
|
|
IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
|
|
|
|
SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
|
|
|
|
FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
|
|
|
|
CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
|
|
|
|
AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
|
|
|
|
COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
*
|
2008-11-14 16:56:40 +00:00
|
|
|
* Header for endlevel.c
|
2006-03-20 17:12:09 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2015-07-25 23:10:45 +00:00
|
|
|
#pragma once
|
2006-03-20 17:12:09 +00:00
|
|
|
|
2012-11-11 22:12:51 +00:00
|
|
|
#ifdef __cplusplus
|
2019-02-02 18:36:39 +00:00
|
|
|
#include <array>
|
2014-11-23 04:36:58 +00:00
|
|
|
#include "vecmat.h"
|
2016-12-24 18:12:17 +00:00
|
|
|
#include "fwd-segment.h"
|
2015-07-25 23:10:45 +00:00
|
|
|
#include "gr.h"
|
2016-12-24 08:50:29 +00:00
|
|
|
#include "fwd-window.h"
|
2012-11-11 22:12:51 +00:00
|
|
|
|
2019-02-02 18:36:39 +00:00
|
|
|
namespace dcx {
|
|
|
|
|
|
|
|
struct d_unique_endlevel_state
|
|
|
|
{
|
|
|
|
using starfield_type = std::array<vms_vector, 500>;
|
|
|
|
starfield_type stars;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2006-03-20 17:12:09 +00:00
|
|
|
extern int Endlevel_sequence;
|
2016-08-25 04:05:32 +00:00
|
|
|
#ifdef dsx
|
|
|
|
namespace dsx {
|
2016-12-24 08:50:29 +00:00
|
|
|
window_event_result do_endlevel_frame();
|
2016-08-25 04:05:32 +00:00
|
|
|
}
|
|
|
|
#endif
|
2016-12-24 08:50:29 +00:00
|
|
|
window_event_result stop_endlevel_sequence();
|
2016-08-25 04:05:32 +00:00
|
|
|
#ifdef dsx
|
|
|
|
namespace dsx {
|
2016-12-24 08:50:29 +00:00
|
|
|
window_event_result start_endlevel_sequence();
|
2016-08-25 04:05:32 +00:00
|
|
|
}
|
|
|
|
#endif
|
2017-03-11 19:56:28 +00:00
|
|
|
void render_endlevel_frame(grs_canvas &, fix eye_offset);
|
2006-03-20 17:12:09 +00:00
|
|
|
|
2017-03-11 19:56:23 +00:00
|
|
|
void draw_exit_model(grs_canvas &);
|
2008-11-14 16:56:40 +00:00
|
|
|
void free_endlevel_data();
|
2006-03-20 17:12:09 +00:00
|
|
|
|
|
|
|
extern grs_bitmap *terrain_bitmap; //*satellite_bitmap,*station_bitmap,
|
|
|
|
|
|
|
|
//@@extern vms_vector mine_exit_point;
|
|
|
|
//@@extern object external_explosion;
|
|
|
|
//@@extern int ext_expl_playing;
|
|
|
|
|
|
|
|
//called for each level to load & setup the exit sequence
|
2016-08-25 04:05:32 +00:00
|
|
|
#ifdef dsx
|
|
|
|
namespace dsx {
|
2006-03-20 17:12:09 +00:00
|
|
|
void load_endlevel_data(int level_num);
|
|
|
|
|
2016-08-25 04:05:32 +00:00
|
|
|
}
|
|
|
|
#endif
|
2014-09-28 21:51:49 +00:00
|
|
|
extern unsigned exit_modelnum, destroyed_exit_modelnum;
|
2012-11-11 00:14:30 +00:00
|
|
|
extern vms_matrix surface_orient;
|
2006-03-20 17:12:09 +00:00
|
|
|
|
2012-11-11 22:12:51 +00:00
|
|
|
#endif
|