26 int64_t dot = (int64_t)row[0] * position->
x + (int64_t)row[1] * position->
y + (int64_t)row[2] * position->
z;
32 uint32_t dot = (uint32_t)(row[0] * offset.
x) + (uint32_t)(row[1] * offset.
y) + (uint32_t)(row[2] * offset.
z);
33 return (int32_t)dot >> 6;
40 if (z <= render_list_state->projection_near_fp)
47 if ((int16_t)sx != sx || (int16_t)sy != sy)
51 corner->screen.screen.x = sx;
52 corner->screen.screen.y = sy;
72 int16_t width = extents.
x;
73 int16_t height = extents.
y;
74 if (offset.
x || offset.
y || offset.
z)
97 for (
unsigned i = 0; i != 4; i += 2)
109 for (
unsigned i = 0; i < 4; ++i)
112 (i == 0 || i == 3) ? width : (int16_t)-width,
113 i < 2 ? (int16_t)-height : height, 0};
124 long double a = corners[0].
view.
z, b = corners[1].
view.
z, c = corners[2].
view.
z;
126 long double first_equal = a == b || isunordered(a, b);
127 long double depth = first_equal == c || isunordered(first_equal, c)
133 int32_t bucket = (int32_t)(0x3fffu - (uint32_t)key);
134 return bucket < 1 ? 1 : bucket > 0x3fff ? 0x3fff
140 uint32_t red = ((color >> 12) & 0xff0) * weight;
141 uint32_t green = ((color >> 8) & 0xff) * weight;
142 uint32_t blue = (color & 0xff) * weight;
143 return (red & 0xff0000u) | (((green & 0xff000u) | (blue >> 8)) >> 4);
150 {.screen.packed_screen = xy0}, {.screen.packed_screen = xy1},
151 {.screen.packed_screen = xy2}, {.screen.packed_screen = xy3}};
192 for (
unsigned i = 0; i < 4; ++i)
207 for (
unsigned i = 0; i < 4; ++i)
212 for (
unsigned i = 0; i < 4; ++i)
214 unsigned blend = capabilities >> 29;
223 for (
unsigned i = 0; i < 4; ++i)
238 uint32_t xy0, uint32_t xy1, uint32_t xy2, uint32_t xy3)
#define ANIMATION_SPRITE_YAW_ALIGNED
uint32_t Graphics_FadeVertexColor(uint32_t color, uint32_t weight)
#define g_cameraTransformMatrix
#define GAME_TRANSITION_COLOR_FADE
#define Game_FrameTransitionFlags
#define g_currentGameMode
#define GRAPHICS_RENDER_UNIFORM_COLOR
void Graphics_AdjustColorQuadRGB(uint32_t const *input_colors, uint32_t *output_colors)
void Graphics_SetPolygonUVs(struct Scene_Node *node, struct Graphics_Render_PolygonBatchRecord *out_batch, struct Material_TableEntry *polygon_data, int16_t uv_index_or_sentinel, struct Mesh_RuntimeVertex **polygon_vertices)
#define g_graphicsCapabilityFlags
#define g_polygonBatchRecords
#define Graphics_WindowWidth
#define render_list_state
#define Graphics_WindowHeight
#define g_levelRenderDistanceQuarter
#define g_levelRenderDistance
#define MATERIAL_BLEND_MODE_HIGH
#define MATERIAL_DEPTH_SORT
#define MATERIAL_BLEND_ENABLED
#define MATERIAL_LINKED_PASS
#define MATERIAL_BLEND_MODE_LOW
#define g_currentRenderMaterial
#define MATH_Q6_SCALE_LONG_DOUBLE
#define MATH_ANGLE_HALF_TURN
void Math_BuildMatrixRotationY(struct Math_Matrix3x3I16 *out_matrix, struct Math_Matrix3x3I16 const *left_factor, int32_t angle)
void Math_BuildMatrixRotationZ(struct Math_Matrix3x3I16 *out_matrix, struct Math_Matrix3x3I16 const *left_factor, int32_t angle)
void Math_MulMat3x3Q12(struct Math_Matrix3x3I16 *out_matrix, struct Math_Matrix3x3I16 const *right_factor, struct Math_Matrix3x3I16 const *left_factor)
int16_t Math_CalculateAtan2FP12(int32_t y, int32_t x)
#define g_renderWorldTransformPtr
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)
static bool build_billboard_corners(struct Graphics_ProjectedCorner *corners, const struct Math_Matrix3x3I16 *offset_rotation, struct Math_Vec3I16 offset, struct Math_Vec2I16 extents, bool yaw_aligned)
void Graphics_RenderBillboardCorners(struct Scene_Node *node, struct Graphics_Render_MeshBillboardRuntimeView *mesh, uint32_t xy0, uint32_t xy1, uint32_t xy2, uint32_t xy3)
void Graphics_TransformViewCenter(const struct Math_Vec3I32 *world)
void Graphics_ProjectCorner(struct Graphics_ProjectedCorner *corner, int32_t x, int32_t y, int32_t z)
static int32_t transform_translation(const int16_t *row, const struct Math_Vec3I32 *position)
int Graphics_QuadDepthBucket(const struct Graphics_ProjectedCorner *corners)
static int32_t project_offset(const int16_t *row, struct Math_Vec3I16 offset)
uint32_t Graphics_FadeVertexColor(uint32_t color, uint32_t weight)
int64_t __ftol_msvc(long double value)
struct Graphics_Render_ScreenVertexI16Z screen
struct Math_Vec3I16 offset
struct Material_TableEntry * material_ptr
struct Graphics_Render_ScreenVertexI16Z screen_vertices[0x4]
struct Material_RuntimeDescriptor * texture_desc
struct Graphics_Render_PolygonBatchRecord * next_in_bucket
struct Math_Vec3F view_vertices[0x4]
uint32_t vertex_colors[0x4]
struct Graphics_Render_ScreenVertexI16Z::@276010272006271151340046314217100172252315123166::@167176104245357063215260323150214177117323053225 screen
struct Math_Vec3I16 offset
struct Material_TableEntry * material_ptr
struct Math_Vec2I16 bound_extent
struct Material_TableEntry * next_material_entry
struct Math_Vec2I16 billboard_scale
void * model_relocated_ptr_84
struct Math_Matrix3x3I16 world_rot_matrix
char render_entry_index_for_type_6
#define g_nodeViewTranslationY
#define g_renderingStateFlag
#define g_currentPolygonBatchIndex
#define g_nodeViewTranslationZ
#define g_nodeViewTranslationX