mirror of
https://github.com/Cesarus85/ringfall-mjolnir-vr.git
synced 2026-10-17 17:00:35 +02:00
96 lines
2.1 KiB
C
96 lines
2.1 KiB
C
/*
|
|
INTERFACE.H
|
|
|
|
header included in hcex build.
|
|
*/
|
|
|
|
#ifndef __INTERFACE_H
|
|
#define __INTERFACE_H
|
|
#pragma once
|
|
|
|
/* ---------- constants */
|
|
|
|
enum
|
|
{
|
|
_interface_font_system = 0,
|
|
_interface_font_terminal,
|
|
_interface_color_table_screen,
|
|
_interface_color_table_hud,
|
|
_interface_color_table_editor,
|
|
_interface_color_table_dialog,
|
|
_interface_hud_globals,
|
|
_interface_bitmap_motion_sweep,
|
|
_interface_bitmap_motion_sweep_mask,
|
|
_interface_bitmap_multiplayer_hud,
|
|
_interface_string_list_localization,
|
|
_interface_hud_digits,
|
|
_interface_bitmap_motion_blip,
|
|
_interface_bitmap_iface_map1,
|
|
_interface_bitmap_iface_map2,
|
|
_interface_bitmap_iface_map3,
|
|
NUMBER_OF_INTERFACE_TAGS
|
|
};
|
|
|
|
/* ---------- macros */
|
|
|
|
/* ---------- structures */
|
|
|
|
struct bitmap_data;
|
|
union point2d;
|
|
union real_rectangle2d;
|
|
|
|
/* ---------- prototypes/INTERFACE.C */
|
|
|
|
void interface_initialize(
|
|
void);
|
|
void interface_initialize_for_new_map(
|
|
void);
|
|
long interface_get_tag_index(
|
|
short interface_tag_index);
|
|
real_argb_color *interface_get_real_argb_color(
|
|
short interface_color_table_index,
|
|
short color_index,
|
|
real_argb_color *color);
|
|
long interface_get_weapon_hud_index(
|
|
real *flashlight_power);
|
|
void interface_set_bitmap_text_draw_mode(
|
|
short interface_font_index,
|
|
short style,
|
|
short justification,
|
|
unsigned long flags,
|
|
short color_table_index,
|
|
short color_index);
|
|
void interface_draw_screen(
|
|
void);
|
|
void interface_draw_bitmap(
|
|
struct bitmap_data const *bitmap,
|
|
union point2d const *point,
|
|
union real_rectangle2d const *clip,
|
|
real scale,
|
|
real theta,
|
|
real fade);
|
|
void interface_draw_bitmap_modulated(
|
|
struct bitmap_data const *bitmap,
|
|
union point2d const *point,
|
|
union real_rectangle2d const *clip,
|
|
real scale,
|
|
real theta,
|
|
real_argb_color const *modulated_color,
|
|
short shader_type);
|
|
void interface_draw_bitmap_modulated_p32(
|
|
struct bitmap_data const *bitmap,
|
|
union point2d const *point,
|
|
union real_rectangle2d const *clip,
|
|
real scale,
|
|
real theta,
|
|
pixel32 modulated_color,
|
|
short shader_type);
|
|
void profile_graph_toggle(
|
|
char const *graph_name);
|
|
|
|
/* ---------- globals */
|
|
|
|
/* ---------- public code */
|
|
|
|
#endif // __INTERFACE_H
|