|
102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
|
#include "pcdogs/animation/types.h"#include "pcdogs/graphics/types.h"#include "pcdogs/material/types.h"#include "pcdogs/math/types.h"#include "pcdogs/menu/types.h"#include "pcdogs/platform/types.h"#include "pcdogs/scene/types.h"#include "pcdogs/types/common.h"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) |
| uint32_t Color_UpdateGradient | ( | struct Menu_ColorGradientState * | gradient_state | ) |
| void File_SaveScreenshot | ( | char const * | path | ) |
Definition at line 60 of file screenshots.c.
| void Graphics_AdjustColorQuadRGB | ( | uint32_t const * | input_colors, |
| uint32_t * | output_colors ) |
| 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.
| int32_t Graphics_CheckActorVisibilityAndFrustum | ( | struct Math_Vec3I32 * | position, |
| int32_t | cull_radius, | ||
| uint32_t | cull_flags ) |
Definition at line 709 of file clipping.c.
| int32_t Graphics_CheckFrustumCull | ( | struct Math_Vec3I32 * | position, |
| int32_t | cull_radius, | ||
| uint32_t | cull_flags ) |
Definition at line 772 of file clipping.c.
| 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.
| 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.
| 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.
| 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.
| void Graphics_ComputeColorGradient | ( | uint32_t * | out_top_color, |
| uint32_t * | out_bottom_color, | ||
| uint32_t | text_flags ) |
| void Graphics_ComputeVertexColors | ( | struct Mesh_RuntimeVertex * | runtime_vertices, |
| struct Graphics_Render_PolygonRenderRef * | polygon_ref, | ||
| uint32_t * | out_colors ) |
| uint8_t * Graphics_ConvertSurface565ToBGR24 | ( | IDirectDrawSurface7 * | surface | ) |
Definition at line 34 of file screenshots.c.
| bool Graphics_DisabledFadeBackendStub | ( | int32_t | fade_level | ) |
| void Graphics_DrawFadeOverlay | ( | int32_t | packed_origin_xy, |
| int32_t | packed_size_wh, | ||
| int32_t | opacity12 ) |
| 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_DrawFullscreenFadeOverlay | ( | int32_t | opacity12 | ) |
| void Graphics_DrawFullscreenTextureQuadrants | ( | struct Material_BlendTextureSet * | texture_set | ) |
Definition at line 732 of file primitives.c.
| int32_t Graphics_DrawQuad | ( | struct Graphics_Render_PolygonBatchRecord * | batch | ) |
Definition at line 528 of file primitives.c.
| 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.
| void Graphics_FreeTextureBlend | ( | struct Material_BlendTextureSet * | blend_textures | ) |
Definition at line 101 of file textures.c.
| void Graphics_InitializeColorGradient | ( | struct Menu_ColorGradientState * | gradient_state, |
| int32_t | step_count, | ||
| uint32_t | packed_hold_frames, | ||
| uint32_t | packed_intensity_bounds ) |
| struct Material_BlendTextureSet * Graphics_InitializeTextureBlendTextures | ( | uint8_t * | pixel_data | ) |
Definition at line 92 of file textures.c.
| BOOL Graphics_IsPolygonInDebugList | ( | struct Graphics_Render_PolygonRenderRef * | polygon_ref | ) |
| struct Material_BlendTextureSet * Graphics_LoadAndUploadTexture | ( | uint8_t * | pixel_data | ) |
Definition at line 19 of file textures.c.
| 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_RenderMeshNode | ( | struct Scene_Node * | node, |
| struct Graphics_Render_MeshBillboardRuntimeView * | sprite_ctx ) |
| void Graphics_RenderPolygonBatch | ( | struct Scene_Node * | node, |
| struct Graphics_Render_PolygonRenderRef * | polygon_refs, | ||
| int32_t | count ) |
Definition at line 28 of file polygons.c.
| void Graphics_RenderPolygonBatchAdapter | ( | struct Scene_Node * | node, |
| struct Graphics_Render_PolygonRenderRef * | polygon_refs, | ||
| int32_t | count ) |
Definition at line 24 of file geometry.c.
| void Graphics_RenderPolygonMesh | ( | struct Graphics_Render_FlatQuadActorView * | actor | ) |
| void Graphics_RenderSceneGeometry | ( | struct Scene_Node * | node, |
| struct Graphics_Render_PolygonRenderRef * | polygon_refs, | ||
| int32_t | count ) |
Definition at line 31 of file geometry.c.
| 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.
| void Graphics_RenderSpriteObjectNode | ( | struct Scene_BillboardNodeView * | node | ) |
| void Graphics_RenderSpritePolygons | ( | struct Scene_Node * | node, |
| struct Graphics_Render_SpriteVertexData * | transformed_vertices, | ||
| struct Graphics_Render_ProjectedVertex * | projected_vertices ) |
| 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.
| 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.
| 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 ) |
| int32_t Graphics_SelectTextureLOD | ( | struct Graphics_Render_PolygonBatchRecord * | batch | ) |
Definition at line 57 of file textures.c.
| 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_SnapPointToFirstNearbyVertex | ( | float * | x, |
| float * | y, | ||
| struct Graphics_Render_ProjectedVertex * | screen_vertices, | ||
| int32_t | vertex_count ) |
Definition at line 127 of file clipping.c.
| void Graphics_TakeScreenshot | ( | void | ) |
Definition at line 13 of file screenshots.c.
| void Graphics_UpdateFadeCounters | ( | struct Camera * | camera | ) |
| void Graphics_UpdateMeshCommandState | ( | struct Mesh_CmdList * | cmd_list | ) |