Files
Cesarus85--mjolnir-vr/source/effects/decals.h
T
Jonas Volman 4277f892c1 Admit audited Claude reconstruction gains
Retain 18 strict exact-function gains across Actions, Actor Combat, Decals, Game Engine, Object Lights, and Bipeds after removing donor bodies that regressed exact objects, emitted unowned code, or violated source-credibility rules. Name authenticated private symbols, move declarations to owner headers, record honest residual parks, and preserve units.obj at 189/189.
2026-08-31 20:42:01 -07:00

78 lines
1.6 KiB
C

/*
DECALS.H
header included in hcex build.
*/
#ifndef __DECALS_H
#define __DECALS_H
#pragma once
/* ---------- headers */
#include "cseries/cseries.h"
#include "math/real_math.h"
/* ---------- constants */
/* ---------- macros */
/* ---------- structures */
struct collision_result;
struct decal_editor_geometry;
/* ---------- prototypes/DECALS.C */
long decal_get_first_decal_index(
short cluster_index,
short layer);
void decal_new_from_media_collision(
long decal_definition_index,
struct collision_result const *collision,
real_vector3d const *velocity,
real radius_modifier,
boolean permanent,
short forced_sequence_index,
struct decal_editor_geometry *editor_geometry);
void decal_new_from_collision(
long decal_definition_index,
struct collision_result const *collision,
real_vector3d const *velocity,
real radius_modifier,
boolean permanent,
short forced_sequence_index,
struct decal_editor_geometry *editor_geometry);
void decal_new(
long decal_definition_index,
real_point3d const *origin,
real_vector3d const *velocity,
real radius_modifier,
boolean permanent,
short forced_sequence_index,
struct decal_editor_geometry *editor_geometry);
pixel32 real_a_rgb_color_to_pixel32(
real alpha,
real_rgb_color const *color);
/* ---------- globals */
extern boolean decals_enabled;
/* ---------- public code */
void decals_dispose(
void);
void decals_dispose_from_old_map(
void);
void decals_update(
void);
void decals_delete_permanent_from_cluster(
short cluster_index);
void decals_disconnect_from_structure_bsp(
void);
void decals_reconnect_to_structure_bsp(
void);
#endif // __DECALS_H