mirror of
https://github.com/Cesarus85/ringfall-mjolnir-vr.git
synced 2026-10-18 16:00:27 +02:00
Recover transparent geometry submit (+1,285 meaningful code, zero exact losses); reconcile COMMON ownership and Q10 85+EXT1 credit, actions/main data, and separately disclosed denominator corrections. Preserve canonical-only repairs and all held research. C09 is ordinary disclosed cleanup, not a claim of proven scaffolding intent. Clean rebuild, 1,663 tests, parks, audits, provider links and independent EXT1 check pass. Local reconciliation only.
73 lines
1.3 KiB
C
73 lines
1.3 KiB
C
/*
|
|
LIGHTNING.H
|
|
|
|
header included in hcex build.
|
|
*/
|
|
|
|
#ifndef __LIGHTNING_H
|
|
#define __LIGHTNING_H
|
|
#pragma once
|
|
|
|
/* ---------- headers */
|
|
|
|
#include "cseries/cseries.h"
|
|
#include "memory/data.h"
|
|
#include "objects/widgets/widget_types.h"
|
|
|
|
/* ---------- constants */
|
|
|
|
/* ---------- macros */
|
|
|
|
#define lightning_get(lightning_index) \
|
|
((struct lightning_datum *)datum_get(lightning_globals.lightning_data, (lightning_index)))
|
|
|
|
/* ---------- structures */
|
|
|
|
struct lightning_globals
|
|
{
|
|
struct data_array *lightning_data;
|
|
};
|
|
|
|
struct lightning_datum
|
|
{
|
|
struct datum_header header;
|
|
short __unknown2;
|
|
long definition_index;
|
|
};
|
|
|
|
typedef char lightning_globals_size_assert[
|
|
sizeof(struct lightning_globals) == 0x4 ? 1 : -1];
|
|
typedef char lightning_datum_size_assert[
|
|
sizeof(struct lightning_datum) == 0x8 ? 1 : -1];
|
|
|
|
/* ---------- prototypes/LIGHTNING.C */
|
|
|
|
void lightnings_initialize(
|
|
void);
|
|
|
|
void lightnings_dispose(
|
|
void);
|
|
void lightnings_initialize_for_new_map(
|
|
void);
|
|
void lightnings_dispose_from_old_map(
|
|
void);
|
|
|
|
long lightning_new(
|
|
long definition_index);
|
|
|
|
void lightning_delete(
|
|
long lightning_index);
|
|
|
|
void lightning_submit(
|
|
long object_index,
|
|
long widget_index,
|
|
struct render_lighting const *lighting,
|
|
struct render_animation const *animation);
|
|
|
|
void lightning_render(
|
|
void);
|
|
|
|
/* ---------- public code */
|
|
|
|
#endif // __LIGHTNING_H
|