102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference |
GitLab repository
Toggle main menu visibility
Loading...
Searching...
No Matches
billboard.h
Go to the documentation of this file.
1
#ifndef PCDOGS_GRAPHICS_BILLBOARD_H
2
#define PCDOGS_GRAPHICS_BILLBOARD_H
3
4
#include "
pcdogs/graphics/types.h
"
5
#include "
pcdogs/scene/types.h
"
6
7
struct
Graphics_ProjectedCorner
8
{
9
struct
Graphics_Render_ScreenVertexI16Z
screen
;
10
struct
Math_Vec3F
view
;
11
};
12
13
void
Graphics_TransformViewCenter
(
const
struct
Math_Vec3I32
*world);
14
void
Graphics_ProjectCorner
(
struct
Graphics_ProjectedCorner
*corner, int32_t
x
, int32_t
y
, int32_t
z
);
15
int
Graphics_QuadDepthBucket
(
const
struct
Graphics_ProjectedCorner
*corners);
16
uint32_t
Graphics_FadeVertexColor
(uint32_t color, uint32_t weight);
17
18
/* Each native entry supplies its own payload and four caller-stack XY words. */
19
void
Graphics_RenderBillboard
(
struct
Scene_Node
*node,
const
struct
Graphics_Render_MeshBillboardRuntimeView
*mesh,
20
const
struct
Graphics_Render_SpriteNodeData
*attachment, uint32_t xy0, uint32_t xy1, uint32_t xy2, uint32_t xy3);
21
22
#endif
Graphics_RenderBillboard
void Graphics_RenderBillboard(struct Scene_Node *node, const struct Graphics_Render_MeshBillboardRuntimeView *mesh, const struct Graphics_Render_SpriteNodeData *attachment, uint32_t xy0, uint32_t xy1, uint32_t xy2, uint32_t xy3)
Definition
mesh_nodes.c:146
Graphics_TransformViewCenter
void Graphics_TransformViewCenter(const struct Math_Vec3I32 *world)
Definition
mesh_nodes.c:56
Graphics_ProjectCorner
void Graphics_ProjectCorner(struct Graphics_ProjectedCorner *corner, int32_t x, int32_t y, int32_t z)
Definition
mesh_nodes.c:36
Graphics_QuadDepthBucket
int Graphics_QuadDepthBucket(const struct Graphics_ProjectedCorner *corners)
Definition
mesh_nodes.c:122
Graphics_FadeVertexColor
uint32_t Graphics_FadeVertexColor(uint32_t color, uint32_t weight)
Definition
mesh_nodes.c:138
types.h
types.h
Graphics_ProjectedCorner
Definition
billboard.h:8
Graphics_ProjectedCorner::view
struct Math_Vec3F view
Definition
billboard.h:10
Graphics_ProjectedCorner::screen
struct Graphics_Render_ScreenVertexI16Z screen
Definition
billboard.h:9
Graphics_Render_MeshBillboardRuntimeView
Definition
types.h:469
Graphics_Render_ScreenVertexI16Z
Definition
types.h:257
Graphics_Render_SpriteNodeData
Definition
types.h:585
Math_Vec3F
Definition
types.h:445
Math_Vec3F::z
float z
Definition
types.h:448
Math_Vec3F::y
float y
Definition
types.h:447
Math_Vec3F::x
float x
Definition
types.h:446
Math_Vec3I32
Definition
types.h:469
Scene_Node
Definition
types.h:111
src
graphics
billboard.h
Generated by
1.17.0