mirror of
https://github.com/Cesarus85/ringfall-mjolnir-vr.git
synced 2026-10-19 08:00:27 +02:00
165 lines
3.5 KiB
C
165 lines
3.5 KiB
C
/*
|
|
RASTERIZER_DEBUG.C
|
|
|
|
symbols in this file:
|
|
0016D760 0070:
|
|
_rasterizer_debug_new_primitive (0000)
|
|
0016D7D0 0090:
|
|
_rasterizer_debug_initialize (0000)
|
|
0016D860 0020:
|
|
_rasterizer_debug_begin (0000)
|
|
0016D880 0010:
|
|
_rasterizer_debug_end (0000)
|
|
0016D890 00e0:
|
|
_rasterizer_debug_dispose (0000)
|
|
0016D970 0010:
|
|
_rasterizer_debug_test (0000)
|
|
0016D980 0060:
|
|
_code_0016d980 (0000)
|
|
0016D9E0 0420:
|
|
_rasterizer_debug_draw (0000)
|
|
0016DE00 0250:
|
|
_rasterizer_debug_line_shaded (0000)
|
|
0016E050 0310:
|
|
_rasterizer_debug_triangle_shaded (0000)
|
|
0016E360 0020:
|
|
_rasterizer_debug_line (0000)
|
|
0016E380 0020:
|
|
_rasterizer_debug_triangle (0000)
|
|
0029D990 002b:
|
|
??_C@_0CL@IMCIMOMN@?$CD?$CD?$CD?5WARNING?5debug?5geometry?5buffe@ (0000)
|
|
0029D9BC 002b:
|
|
??_C@_0CL@HKCMJLKE@?$CD?$CD?$CD?5ERROR?5failed?5to?5allocate?5deb@ (0000)
|
|
0029D9E8 002d:
|
|
??_C@_0CN@HHLFKIED@c?3?2halo?2SOURCE?2rasterizer?2raster@ (0000)
|
|
0029DA18 0021:
|
|
??_C@_0CB@NDEAGFJM@debug_data?4non_opaque_primitives@ (0000)
|
|
0029DA3C 0018:
|
|
??_C@_0BI@INNMENHJ@debug_data?4opaque_lines?$AA@ (0000)
|
|
0029DA54 001c:
|
|
??_C@_0BM@JLDDGFOM@debug_data?4opaque_triangles?$AA@ (0000)
|
|
0029DA70 0045:
|
|
??_C@_0EF@HLJMNMGB@?$CD?$CD?$CD?5ERROR?5failed?5to?5lock?5dynamic@ (0000)
|
|
0029DAB8 0041:
|
|
??_C@_0EB@BGLDJEMO@debug_data?4primitive_count?5?$DM?$DNRAS@ (0000)
|
|
0029DB00 004b:
|
|
??_C@_0EL@KLLHFFMI@debug_data?4non_opaque_primitive_@ (0000)
|
|
0029DB50 0043:
|
|
??_C@_0ED@KEPEIIND@debug_data?4opaque_line_count?5?$DM?$DNR@ (0000)
|
|
0029DB98 0047:
|
|
??_C@_0EH@DHPFKGPL@debug_data?4opaque_triangle_count@ (0000)
|
|
0029DBE0 001d:
|
|
??_C@_0BN@KMMBIEHE@p0?5?$CG?$CG?5p1?5?$CG?$CG?5color0?5?$CG?$CG?5color1?$AA@ (0000)
|
|
0029DC00 002d:
|
|
??_C@_0CN@JOAFNCEE@p0?5?$CG?$CG?5p1?5?$CG?$CG?5p2?5?$CG?$CG?5color0?5?$CG?$CG?5colo@ (0000)
|
|
004662F8 0021:
|
|
_bss_004662f8 (0000)
|
|
*/
|
|
|
|
/* ---------- headers */
|
|
|
|
#include "cseries.h"
|
|
#include "rasterizer.h"
|
|
|
|
/* ---------- constants */
|
|
|
|
/* ---------- macros */
|
|
|
|
/* ---------- structures */
|
|
|
|
#pragma pack(push, 1)
|
|
struct rasterizer_debug_data
|
|
{
|
|
boolean initialized;
|
|
byte pad1[3];
|
|
void *opaque_triangles;
|
|
long opaque_triangle_count;
|
|
void *opaque_lines;
|
|
long opaque_line_count;
|
|
void *non_opaque_primitives;
|
|
long non_opaque_primitive_count;
|
|
long primitive_count;
|
|
boolean geometry_buffer_full_warning;
|
|
};
|
|
#pragma pack(pop)
|
|
|
|
typedef char rasterizer_debug_data_size_assert[
|
|
sizeof(struct rasterizer_debug_data) == 0x21 ? 1 : -1];
|
|
|
|
/* ---------- prototypes */
|
|
|
|
void rasterizer_debug_line_shaded(
|
|
real_point3d const *p0,
|
|
real_point3d const *p1,
|
|
real_argb_color const *color0,
|
|
real_argb_color const *color1);
|
|
void rasterizer_debug_triangle_shaded(
|
|
real_point3d const *p0,
|
|
real_point3d const *p1,
|
|
real_point3d const *p2,
|
|
real_argb_color const *color0,
|
|
real_argb_color const *color1,
|
|
real_argb_color const *color2);
|
|
|
|
/* ---------- globals */
|
|
|
|
struct rasterizer_debug_data bss_004662f8;
|
|
|
|
/* ---------- public code */
|
|
|
|
void rasterizer_debug_begin(
|
|
void)
|
|
{
|
|
bss_004662f8.opaque_triangle_count = 0;
|
|
bss_004662f8.opaque_line_count = 0;
|
|
bss_004662f8.non_opaque_primitive_count = 0;
|
|
bss_004662f8.primitive_count = 0;
|
|
|
|
return;
|
|
}
|
|
|
|
void rasterizer_debug_end(
|
|
void)
|
|
{
|
|
return;
|
|
}
|
|
|
|
void rasterizer_debug_test(
|
|
void)
|
|
{
|
|
return;
|
|
}
|
|
|
|
void rasterizer_debug_line(
|
|
real_point3d const *p0,
|
|
real_point3d const *p1,
|
|
real_argb_color const *color)
|
|
{
|
|
rasterizer_debug_line_shaded(
|
|
p0,
|
|
p1,
|
|
color,
|
|
color);
|
|
|
|
return;
|
|
}
|
|
|
|
void rasterizer_debug_triangle(
|
|
real_point3d const *p0,
|
|
real_point3d const *p1,
|
|
real_point3d const *p2,
|
|
real_argb_color const *color)
|
|
{
|
|
rasterizer_debug_triangle_shaded(
|
|
p0,
|
|
p1,
|
|
p2,
|
|
color,
|
|
color,
|
|
color);
|
|
|
|
return;
|
|
}
|
|
|
|
/* ---------- private code */
|