| 1 | /* |
| 2 | * OpenTyrian: A modern cross-platform port of Tyrian |
| 3 | * Copyright (C) 2007-2009 The OpenTyrian Development Team |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU General Public License |
| 7 | * as published by the Free Software Foundation; either version 2 |
| 8 | * of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 18 | */ |
| 19 | #ifndef VIDEO_H |
| 20 | #define VIDEO_Hcxx . . $ `src/video.h:20:9`! |
| 21 | |
| 22 | #include "opentyr.h"cxx . . $ `<file>/src/opentyr.h`/ |
| 23 | |
| 24 | #include "SDL.h" |
| 25 | |
| 26 | #define vga_widthcxx . . $ `src/video.h:26:9`! 320 |
| 27 | #define vga_heightcxx . . $ `src/video.h:27:9`! 200 |
| 28 | |
| 29 | typedef enumcxx . . $ $anonymous_type_e4cb16f8e98dc337_0# { |
| 30 | SCALE_CENTERcxx . . $ SCALE_CENTER., |
| 31 | SCALE_INTEGERcxx . . $ SCALE_INTEGER., |
| 32 | SCALE_ASPECT_8_5cxx . . $ SCALE_ASPECT_8_5., |
| 33 | SCALE_ASPECT_4_3cxx . . $ SCALE_ASPECT_4_3., |
| 34 | ScalingMode_MAXcxx . . $ ScalingMode_MAX. |
| 35 | } ScalingModecxx . . $ ScalingMode#; |
| 36 | |
| 37 | extern const char *const scaling_mode_namescxx . . $ scaling_mode_names.[ScalingMode_MAXcxx . . $ ScalingMode_MAX.]; |
| 38 | |
| 39 | extern int fullscreen_displaycxx . . $ fullscreen_display.; // -1 means windowed |
| 40 | extern ScalingModecxx . . $ ScalingMode# scaling_modecxx . . $ scaling_mode.; |
| 41 | |
| 42 | extern SDL_Surfacecxx . . $ SDL_Surface# *VGAScreencxx . . $ VGAScreen., *VGAScreenSegcxx . . $ VGAScreenSeg.; |
| 43 | extern SDL_Surfacecxx . . $ SDL_Surface# *game_screencxx . . $ game_screen.; |
| 44 | extern SDL_Surfacecxx . . $ SDL_Surface# *VGAScreen2cxx . . $ VGAScreen2.; |
| 45 | |
| 46 | extern SDL_Windowcxx . . $ SDL_Window# *main_windowcxx . . $ main_window.; |
| 47 | extern SDL_PixelFormatcxx . . $ SDL_PixelFormat# *main_window_tex_formatcxx . . $ main_window_tex_format.; |
| 48 | |
| 49 | void init_videocxx . . $ init_video(49f6e7a06ebc5aa8).(void); |
| 50 | |
| 51 | void video_on_win_resizecxx . . $ video_on_win_resize(49f6e7a06ebc5aa8).(void); |
| 52 | void reinit_fullscreencxx . . $ reinit_fullscreen(d4f767463ce0a6b3).(int new_display); |
| 53 | void toggle_fullscreencxx . . $ toggle_fullscreen(49f6e7a06ebc5aa8).(void); |
| 54 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! init_scalercxx . . $ init_scaler(dfa6e707f7696010).(unsigned int new_scaler); |
| 55 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! set_scaling_mode_by_namecxx . . $ set_scaling_mode_by_name(c5f7da30cbc0f4e9).(const char *name); |
| 56 | |
| 57 | void deinit_videocxx . . $ deinit_video(49f6e7a06ebc5aa8).(void); |
| 58 | |
| 59 | void JE_clr256cxx . . $ JE_clr256(60a0b30a00b4fc6d).(SDL_Surfacecxx . . $ SDL_Surface# *); |
| 60 | void JE_showVGAcxx . . $ JE_showVGA(49f6e7a06ebc5aa8).(void); |
| 61 | |
| 62 | void mapScreenPointToWindowcxx . . $ mapScreenPointToWindow(ce8f7825f8908cfa).(Sint32cxx . . $ Sint32# *inout_x, Sint32cxx . . $ Sint32# *inout_y); |
| 63 | void mapWindowPointToScreencxx . . $ mapWindowPointToScreen(ce8f7825f8908cfa).(Sint32cxx . . $ Sint32# *inout_x, Sint32cxx . . $ Sint32# *inout_y); |
| 64 | void scaleWindowDistanceToScreencxx . . $ scaleWindowDistanceToScreen(ce8f7825f8908cfa).(Sint32cxx . . $ Sint32# *inout_x, Sint32cxx . . $ Sint32# *inout_y); |
| 65 | |
| 66 | #endif /* VIDEO_H */ |