| 1 |
/* |
| 2 |
* Portions of this file are copyright Rebirth contributors and licensed as |
| 3 |
* described in COPYING.txt. |
| 4 |
* Portions of this file are copyright Parallax Software and licensed |
| 5 |
* according to the Parallax license below. |
| 6 |
* See COPYING.txt for license details. |
| 7 |
|
| 8 |
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX |
| 9 |
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO |
| 10 |
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A |
| 11 |
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS |
| 12 |
IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS |
| 13 |
SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE |
| 14 |
FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE |
| 15 |
CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS |
| 16 |
AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE. |
| 17 |
COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. |
| 18 |
*/ |
| 19 |
|
| 20 |
/* |
| 21 |
* |
| 22 |
* Header for endlevel.c |
| 23 |
* |
| 24 |
*/ |
| 25 |
|
| 26 |
#pragma once |
| 27 |
|
| 28 |
#include <array> |
| 29 |
#include "vecmat.h" |
| 30 |
#include "fwd-segment.h" |
| 31 |
#include "fwd-robot.h" |
| 32 |
#include "gr.h" |
| 33 |
#include "fwd-window.h" |
| 34 |
|
| 35 |
namespace dcx { |
| 36 |
|
| 37 |
struct d_unique_endlevel_state |
| 38 |
{ |
| 39 |
using starfield_type = std::array<vms_vector, 500>; |
| 40 |
starfield_type stars; |
| 41 |
}; |
| 42 |
|
| 43 |
extern grs_bitmap *terrain_bitmap; //*satellite_bitmap,*station_bitmap, |
| 44 |
extern polygon_model_index exit_modelnum, destroyed_exit_modelnum; |
| 45 |
extern int Endlevel_sequence; |
| 46 |
extern vms_matrix surface_orient; |
| 47 |
|
| 48 |
void free_endlevel_data(); |
| 49 |
|
| 50 |
} |
| 51 |
|
| 52 |
#ifdef DXX_BUILD_DESCENT |
| 53 |
namespace dsx { |
| 54 |
window_event_result do_endlevel_frame(const d_level_shared_robot_info_state &LevelSharedRobotInfoState); |
| 55 |
window_event_result stop_endlevel_sequence(); |
| 56 |
window_event_result start_endlevel_sequence(); |
| 57 |
void render_endlevel_frame(grs_canvas &, fix eye_offset); |
| 58 |
|
| 59 |
//@@extern vms_vector mine_exit_point; |
| 60 |
//@@extern object external_explosion; |
| 61 |
//@@extern int ext_expl_playing; |
| 62 |
|
| 63 |
//called for each level to load & setup the exit sequence |
| 64 |
void load_endlevel_data(int level_num); |
| 65 |
|
| 66 |
} |
| 67 |
#endif |