102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
functions.h File Reference

Go to the source code of this file.

Functions

void Graphics_RenderSpriteObjectNode (struct Scene_BillboardNodeView *node)
void Graphics_UpdateScreenTransitionEffects (void)
void Graphics_AdjustLevelScale (float measured_fps)
void Graphics_MarkMeshDirty (struct Mesh_CmdList *cmd_list)
void Graphics_ProcessMeshCommands (struct Mesh_CmdList *cmd_list, struct Material_Node **material_nodes, void *owner_context)
void Graphics_UpdateMeshCommandState (struct Mesh_CmdList *cmd_list)
struct Material_BlendTextureSet * Graphics_LoadAndUploadTexture (uint8_t *pixel_data)
void Graphics_BlitTextureToQuadrants (IDirectDrawSurface7 **quadrant_surfaces, uint8_t *pixel_data, int32_t pixel_count, int32_t width, int32_t height)
void Graphics_RenderTexturedQuad (uint32_t packed_xy, struct Material_TableEntry *material, uint32_t render_flags, uint32_t top_color, uint32_t bottom_color, int32_t quad_size)
void Graphics_RenderTexturedQuadMaterialSize (uint32_t packed_xy, struct Material_TableEntry *material, uint32_t render_flags, uint32_t top_color, uint32_t bottom_color)
void Graphics_RenderTexturedSprite (uint32_t packed_xy, uint32_t packed_wh, struct Graphics_Render_SpriteContext *sprite, uint32_t render_flags, uint32_t rotation_angle, uint32_t rotation_pivot_xy)
BOOL Graphics_ClipPolygonByPlane (struct Graphics_Render_ClipVertex *input_vertices, struct Graphics_Render_ClipAttribute *input_attributes, struct Graphics_Render_ClipPlane *clip_plane, struct Graphics_Render_ClipVertex *output_vertices, struct Graphics_Render_ClipAttribute *output_attributes, int32_t *in_out_vertex_count)
BOOL Graphics_ClipPolygonByCameraPyramid (struct Graphics_Render_ClipVertex *input_vertices, struct Graphics_Render_ClipAttribute *input_attributes, struct Graphics_Render_ClipVertex *output_vertices, struct Graphics_Render_ClipAttribute *output_attributes, int32_t *in_out_vertex_count)
void Graphics_SnapPointToFirstNearbyVertex (float *x, float *y, struct Graphics_Render_ProjectedVertex *screen_vertices, int32_t vertex_count)
void Graphics_ClipAndDrawPolygon (struct Graphics_Render_PolygonBatchRecord *batch, struct D3D_TransformedVertex const *prepared_vertices, uint8_t alpha_byte, int32_t unused_batch_alias, int32_t brighten_colors)
int32_t Graphics_DrawQuad (struct Graphics_Render_PolygonBatchRecord *batch)
int32_t Graphics_SelectTextureLOD (struct Graphics_Render_PolygonBatchRecord *batch)
void Graphics_DrawRectangle (int32_t packed_origin_xy, int32_t packed_size_wh, int32_t blend_flags, uint32_t rgb_color)
void Graphics_DrawFilledRectangleGradient (int32_t packed_origin_xy, int32_t packed_size_wh, uint32_t top_left_rgb, uint32_t top_right_rgb, uint32_t bottom_left_rgb, uint32_t bottom_right_rgb)
void Graphics_DrawFadeOverlay (int32_t packed_origin_xy, int32_t packed_size_wh, int32_t opacity12)
void Graphics_DrawFullscreenFadeOverlay (int32_t opacity12)
bool Graphics_DisabledFadeBackendStub (int32_t fade_level)
void Graphics_DrawFullscreenTextureQuadrants (struct Material_BlendTextureSet *texture_set)
HRESULT Graphics_ClearDepthBuffer (void)
void Graphics_ClearScreenWithColor (uint32_t rgb_color)
void Graphics_TakeScreenshot (void)
uint8_t * Graphics_ConvertSurface565ToBGR24 (IDirectDrawSurface7 *surface)
void File_SaveScreenshot (char const *path)
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)
void Graphics_RenderPolygonMesh (struct Graphics_Render_FlatQuadActorView *actor)
void Graphics_RenderMeshNode (struct Scene_Node *node, struct Graphics_Render_MeshBillboardRuntimeView *sprite_ctx)
BOOL Graphics_IsPolygonInDebugList (struct Graphics_Render_PolygonRenderRef *polygon_ref)
void Graphics_RenderPolygonBatch (struct Scene_Node *node, struct Graphics_Render_PolygonRenderRef *polygon_refs, int32_t count)
void Graphics_RenderPolygonBatchAdapter (struct Scene_Node *node, struct Graphics_Render_PolygonRenderRef *polygon_refs, int32_t count)
void Graphics_RenderSceneGeometry (struct Scene_Node *node, struct Graphics_Render_PolygonRenderRef *polygon_refs, int32_t count)
void Graphics_RenderSceneGeometryUniformColor (struct Scene_Node *node, struct Graphics_Render_PolygonRenderRef *polygon_refs, int32_t count)
void Graphics_RenderSpritePolygons (struct Scene_Node *node, struct Graphics_Render_SpriteVertexData *transformed_vertices, struct Graphics_Render_ProjectedVertex *projected_vertices)
void Graphics_InitializeColorGradient (struct Menu_ColorGradientState *gradient_state, int32_t step_count, uint32_t packed_hold_frames, uint32_t packed_intensity_bounds)
uint32_t Color_UpdateGradient (struct Menu_ColorGradientState *gradient_state)
void Graphics_ComputeColorGradient (uint32_t *out_top_color, uint32_t *out_bottom_color, uint32_t text_flags)
void Graphics_DrawSortedLists (void)
void Graphics_BeginRendering (uint32_t clear_color)
void Graphics_ClearScreenAndRenderRectangle (uint32_t top_left_color, uint32_t top_right_color, uint32_t bottom_left_color, uint32_t bottom_right_color)
void Graphics_IncrementPassCounter (void)
void Graphics_EndRendering (void)
struct Material_BlendTextureSet * Graphics_InitializeTextureBlendTextures (uint8_t *pixel_data)
void Graphics_FreeTextureBlend (struct Material_BlendTextureSet *blend_textures)
void Shadow_ClearList (void)
void Shadow_RenderAll (void)
int32_t Graphics_HasFogCapability (void)
uint8_t Graphics_RenderFrame (void)
int32_t Graphics_CheckActorVisibilityAndFrustum (struct Math_Vec3I32 *position, int32_t cull_radius, uint32_t cull_flags)
int32_t Graphics_CheckFrustumCull (struct Math_Vec3I32 *position, int32_t cull_radius, uint32_t cull_flags)
void Graphics_ClearBackground (void)
void Graphics_UpdateFadeCounters (struct Camera *camera)
void Graphics_ComputeVertexColors (struct Mesh_RuntimeVertex *runtime_vertices, struct Graphics_Render_PolygonRenderRef *polygon_ref, uint32_t *out_colors)
void Graphics_AdjustColorQuadRGB (uint32_t const *input_colors, uint32_t *output_colors)
void Graphics_InitializeDispatchTables (void)

Function Documentation

◆ Color_UpdateGradient()

uint32_t Color_UpdateGradient ( struct Menu_ColorGradientState * gradient_state)

Definition at line 340 of file effects.c.

◆ File_SaveScreenshot()

void File_SaveScreenshot ( char const * path)

Definition at line 60 of file screenshots.c.

◆ Graphics_AdjustColorQuadRGB()

void Graphics_AdjustColorQuadRGB ( uint32_t const * input_colors,
uint32_t * output_colors )

Definition at line 453 of file effects.c.

◆ Graphics_AdjustLevelScale()

void Graphics_AdjustLevelScale ( float measured_fps)

Definition at line 31 of file frame.c.

◆ Graphics_BeginRendering()

void Graphics_BeginRendering ( uint32_t clear_color)

Definition at line 124 of file frame.c.

◆ Graphics_BlitTextureToQuadrants()

void Graphics_BlitTextureToQuadrants ( IDirectDrawSurface7 ** quadrant_surfaces,
uint8_t * pixel_data,
int32_t pixel_count,
int32_t width,
int32_t height )

Definition at line 27 of file primitives.c.

◆ Graphics_CheckActorVisibilityAndFrustum()

int32_t Graphics_CheckActorVisibilityAndFrustum ( struct Math_Vec3I32 * position,
int32_t cull_radius,
uint32_t cull_flags )

Definition at line 709 of file clipping.c.

◆ Graphics_CheckFrustumCull()

int32_t Graphics_CheckFrustumCull ( struct Math_Vec3I32 * position,
int32_t cull_radius,
uint32_t cull_flags )

Definition at line 772 of file clipping.c.

◆ Graphics_ClearBackground()

void Graphics_ClearBackground ( void )

Definition at line 295 of file frame.c.

◆ Graphics_ClearDepthBuffer()

HRESULT Graphics_ClearDepthBuffer ( void )

Definition at line 62 of file frame.c.

◆ Graphics_ClearScreenAndRenderRectangle()

void Graphics_ClearScreenAndRenderRectangle ( uint32_t top_left_color,
uint32_t top_right_color,
uint32_t bottom_left_color,
uint32_t bottom_right_color )

Definition at line 779 of file primitives.c.

◆ Graphics_ClearScreenWithColor()

void Graphics_ClearScreenWithColor ( uint32_t rgb_color)

Definition at line 71 of file frame.c.

◆ Graphics_ClipAndDrawPolygon()

void Graphics_ClipAndDrawPolygon ( struct Graphics_Render_PolygonBatchRecord * batch,
struct D3D_TransformedVertex const * prepared_vertices,
uint8_t alpha_byte,
int32_t unused_batch_alias,
int32_t brighten_colors )

Definition at line 187 of file clipping.c.

◆ Graphics_ClipPolygonByCameraPyramid()

BOOL Graphics_ClipPolygonByCameraPyramid ( struct Graphics_Render_ClipVertex * input_vertices,
struct Graphics_Render_ClipAttribute * input_attributes,
struct Graphics_Render_ClipVertex * output_vertices,
struct Graphics_Render_ClipAttribute * output_attributes,
int32_t * in_out_vertex_count )

Definition at line 91 of file clipping.c.

◆ Graphics_ClipPolygonByPlane()

BOOL Graphics_ClipPolygonByPlane ( struct Graphics_Render_ClipVertex * input_vertices,
struct Graphics_Render_ClipAttribute * input_attributes,
struct Graphics_Render_ClipPlane * clip_plane,
struct Graphics_Render_ClipVertex * output_vertices,
struct Graphics_Render_ClipAttribute * output_attributes,
int32_t * in_out_vertex_count )

Definition at line 23 of file clipping.c.

◆ Graphics_ComputeColorGradient()

void Graphics_ComputeColorGradient ( uint32_t * out_top_color,
uint32_t * out_bottom_color,
uint32_t text_flags )

Definition at line 385 of file effects.c.

◆ Graphics_ComputeVertexColors()

void Graphics_ComputeVertexColors ( struct Mesh_RuntimeVertex * runtime_vertices,
struct Graphics_Render_PolygonRenderRef * polygon_ref,
uint32_t * out_colors )

Definition at line 557 of file meshes.c.

◆ Graphics_ConvertSurface565ToBGR24()

uint8_t * Graphics_ConvertSurface565ToBGR24 ( IDirectDrawSurface7 * surface)

Definition at line 34 of file screenshots.c.

◆ Graphics_DisabledFadeBackendStub()

bool Graphics_DisabledFadeBackendStub ( int32_t fade_level)

Definition at line 315 of file effects.c.

◆ Graphics_DrawFadeOverlay()

void Graphics_DrawFadeOverlay ( int32_t packed_origin_xy,
int32_t packed_size_wh,
int32_t opacity12 )

Definition at line 229 of file effects.c.

◆ Graphics_DrawFilledRectangleGradient()

void Graphics_DrawFilledRectangleGradient ( int32_t packed_origin_xy,
int32_t packed_size_wh,
uint32_t top_left_rgb,
uint32_t top_right_rgb,
uint32_t bottom_left_rgb,
uint32_t bottom_right_rgb )

Definition at line 183 of file effects.c.

◆ Graphics_DrawFullscreenFadeOverlay()

void Graphics_DrawFullscreenFadeOverlay ( int32_t opacity12)

Definition at line 307 of file effects.c.

◆ Graphics_DrawFullscreenTextureQuadrants()

void Graphics_DrawFullscreenTextureQuadrants ( struct Material_BlendTextureSet * texture_set)

Definition at line 732 of file primitives.c.

◆ Graphics_DrawQuad()

int32_t Graphics_DrawQuad ( struct Graphics_Render_PolygonBatchRecord * batch)

Definition at line 528 of file primitives.c.

◆ Graphics_DrawRectangle()

void Graphics_DrawRectangle ( int32_t packed_origin_xy,
int32_t packed_size_wh,
int32_t blend_flags,
uint32_t rgb_color )

Definition at line 629 of file primitives.c.

◆ Graphics_DrawSortedLists()

void Graphics_DrawSortedLists ( void )

Definition at line 104 of file frame.c.

◆ Graphics_EndRendering()

void Graphics_EndRendering ( void )

Definition at line 156 of file frame.c.

◆ Graphics_FreeTextureBlend()

void Graphics_FreeTextureBlend ( struct Material_BlendTextureSet * blend_textures)

Definition at line 101 of file textures.c.

◆ Graphics_HasFogCapability()

int32_t Graphics_HasFogCapability ( void )

Definition at line 174 of file frame.c.

◆ Graphics_IncrementPassCounter()

void Graphics_IncrementPassCounter ( void )

Definition at line 141 of file frame.c.

◆ Graphics_InitializeColorGradient()

void Graphics_InitializeColorGradient ( struct Menu_ColorGradientState * gradient_state,
int32_t step_count,
uint32_t packed_hold_frames,
uint32_t packed_intensity_bounds )

Definition at line 323 of file effects.c.

◆ Graphics_InitializeDispatchTables()

void Graphics_InitializeDispatchTables ( void )

Definition at line 310 of file frame.c.

◆ Graphics_InitializeTextureBlendTextures()

struct Material_BlendTextureSet * Graphics_InitializeTextureBlendTextures ( uint8_t * pixel_data)

Definition at line 92 of file textures.c.

◆ Graphics_IsPolygonInDebugList()

BOOL Graphics_IsPolygonInDebugList ( struct Graphics_Render_PolygonRenderRef * polygon_ref)

Definition at line 515 of file meshes.c.

◆ Graphics_LoadAndUploadTexture()

struct Material_BlendTextureSet * Graphics_LoadAndUploadTexture ( uint8_t * pixel_data)

Definition at line 19 of file textures.c.

◆ Graphics_MarkMeshDirty()

void Graphics_MarkMeshDirty ( struct Mesh_CmdList * cmd_list)

Definition at line 33 of file meshes.c.

◆ Graphics_ProcessMeshCommands()

void Graphics_ProcessMeshCommands ( struct Mesh_CmdList * cmd_list,
struct Material_Node ** material_nodes,
void * owner_context )

Definition at line 70 of file meshes.c.

◆ Graphics_RenderFrame()

uint8_t Graphics_RenderFrame ( void )

Definition at line 180 of file frame.c.

◆ Graphics_RenderMeshNode()

void Graphics_RenderMeshNode ( struct Scene_Node * node,
struct Graphics_Render_MeshBillboardRuntimeView * sprite_ctx )

◆ Graphics_RenderPolygonBatch()

void Graphics_RenderPolygonBatch ( struct Scene_Node * node,
struct Graphics_Render_PolygonRenderRef * polygon_refs,
int32_t count )

Definition at line 28 of file polygons.c.

◆ Graphics_RenderPolygonBatchAdapter()

void Graphics_RenderPolygonBatchAdapter ( struct Scene_Node * node,
struct Graphics_Render_PolygonRenderRef * polygon_refs,
int32_t count )

Definition at line 24 of file geometry.c.

◆ Graphics_RenderPolygonMesh()

void Graphics_RenderPolygonMesh ( struct Graphics_Render_FlatQuadActorView * actor)

◆ Graphics_RenderSceneGeometry()

void Graphics_RenderSceneGeometry ( struct Scene_Node * node,
struct Graphics_Render_PolygonRenderRef * polygon_refs,
int32_t count )

Definition at line 31 of file geometry.c.

◆ Graphics_RenderSceneGeometryUniformColor()

void Graphics_RenderSceneGeometryUniformColor ( struct Scene_Node * node,
struct Graphics_Render_PolygonRenderRef * polygon_refs,
int32_t count )

Definition at line 24 of file geometry_alternate.c.

◆ Graphics_RenderSpriteObjectNode()

void Graphics_RenderSpriteObjectNode ( struct Scene_BillboardNodeView * node)

Definition at line 28 of file sprites.c.

◆ Graphics_RenderSpritePolygons()

void Graphics_RenderSpritePolygons ( struct Scene_Node * node,
struct Graphics_Render_SpriteVertexData * transformed_vertices,
struct Graphics_Render_ProjectedVertex * projected_vertices )

Definition at line 211 of file sprites.c.

◆ Graphics_RenderTexturedQuad()

void Graphics_RenderTexturedQuad ( uint32_t packed_xy,
struct Material_TableEntry * material,
uint32_t render_flags,
uint32_t top_color,
uint32_t bottom_color,
int32_t quad_size )

Definition at line 167 of file primitives.c.

◆ Graphics_RenderTexturedQuadMaterialSize()

void Graphics_RenderTexturedQuadMaterialSize ( uint32_t packed_xy,
struct Material_TableEntry * material,
uint32_t render_flags,
uint32_t top_color,
uint32_t bottom_color )

Definition at line 241 of file primitives.c.

◆ Graphics_RenderTexturedSprite()

void Graphics_RenderTexturedSprite ( uint32_t packed_xy,
uint32_t packed_wh,
struct Graphics_Render_SpriteContext * sprite,
uint32_t render_flags,
uint32_t rotation_angle,
uint32_t rotation_pivot_xy )

Definition at line 43 of file sprites.c.

◆ Graphics_SelectTextureLOD()

int32_t Graphics_SelectTextureLOD ( struct Graphics_Render_PolygonBatchRecord * batch)

Definition at line 57 of file textures.c.

◆ Graphics_SetPolygonUVs()

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 )

Definition at line 335 of file meshes.c.

◆ Graphics_SnapPointToFirstNearbyVertex()

void Graphics_SnapPointToFirstNearbyVertex ( float * x,
float * y,
struct Graphics_Render_ProjectedVertex * screen_vertices,
int32_t vertex_count )

Definition at line 127 of file clipping.c.

◆ Graphics_TakeScreenshot()

void Graphics_TakeScreenshot ( void )

Definition at line 13 of file screenshots.c.

◆ Graphics_UpdateFadeCounters()

void Graphics_UpdateFadeCounters ( struct Camera * camera)

Definition at line 421 of file effects.c.

◆ Graphics_UpdateMeshCommandState()

void Graphics_UpdateMeshCommandState ( struct Mesh_CmdList * cmd_list)

Definition at line 109 of file meshes.c.

◆ Graphics_UpdateScreenTransitionEffects()

void Graphics_UpdateScreenTransitionEffects ( void )

Definition at line 29 of file effects.c.

◆ Shadow_ClearList()

void Shadow_ClearList ( void )

Definition at line 21 of file shadows.c.

◆ Shadow_RenderAll()

void Shadow_RenderAll ( void )

Definition at line 28 of file shadows.c.