102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
functions.h
Go to the documentation of this file.
1/* Recovered declarations; ABI and original layout preserved. */
2#ifndef PCDOGS_MATERIAL_FUNCTIONS_H
3#define PCDOGS_MATERIAL_FUNCTIONS_H
7
8void Material_ReleaseTextureArray(IDirectDrawSurface7 **texture_handles);
9
11
12void Material_ReleaseSingleTexture(IDirectDrawSurface7 *texture_surface);
13
14void Material_ComputeAvgTransparentColor(uint8_t *pixel_data, uint32_t width, uint32_t height, uint8_t *out_byte0, uint8_t *out_byte1, uint8_t *out_byte2);
15
16void Material_CopyPixelDataToTexture(IDirectDrawSurface7 *texture_surface, uint8_t *pixel_data, uint32_t unused_pixel_count, uint32_t width, uint32_t height);
17
18bool Material_CheckHasTransparency(uint8_t *pixel_data, int32_t width, int32_t height);
19
20void Material_LoadTexture(struct Material_TableEntry *material_entry);
21
22int32_t Material_FindIndex(struct Material_SectionHeader *section, struct Material_TableEntry *entry, int32_t node_type);
23
24int32_t Material_BuildStructure(struct Material_SectionHeader *section, struct Material_RefEntry *ref, struct Material_FrameSet *frame_set);
25
26void Material_BuildTextureArray(struct Material_SectionHeader *material_section, struct Material_RefEntry *material_refs, int32_t material_count, int32_t first_material_index);
27
28int32_t Material_FindTextureByFrame(struct Material_RefEntry *material_ref, int32_t frame_index, struct Graphics_Render_SpriteContext **out_sprite);
29
30void Material_LoadAndFixup(struct Material_SectionHeaderRaw *material_section_raw, uint8_t *texture_data_entry_base);
31
33
34void Material_ReleaseSectionTextures(struct Material_SectionHeader *material_section);
35
36void Material_MarkSharedTextureReference(struct Material_SectionLoadView *section, struct Material_TableEntry *entry, int32_t entry_index);
37
38void Material_MarkReferencedByParent(struct Material_SectionHeader *material_section, struct Material_TableEntry *material_ref, struct Material_RuntimeDescriptor *parent_texture_descriptor, int32_t material_count);
39
41
42void Material_LoadAllEntries(struct Material_SectionLoadView *section, uint8_t *texture_base_addr);
43
44#endif /* PCDOGS_MATERIAL_FUNCTIONS_H */
void Material_MarkReferencedByParent(struct Material_SectionHeader *material_section, struct Material_TableEntry *material_ref, struct Material_RuntimeDescriptor *parent_texture_descriptor, int32_t material_count)
Definition resources.c:97
void Material_ReleaseSingleTexture(IDirectDrawSurface7 *texture_surface)
Definition textures.c:49
void Material_ReleaseSectionTextures(struct Material_SectionHeader *material_section)
Definition textures.c:368
void Material_MarkSharedTextureReference(struct Material_SectionLoadView *section, struct Material_TableEntry *entry, int32_t entry_index)
Definition textures.c:405
int32_t Material_FindTextureByFrame(struct Material_RefEntry *material_ref, int32_t frame_index, struct Graphics_Render_SpriteContext **out_sprite)
Definition textures.c:325
void Material_CopyPixelDataToTexture(IDirectDrawSurface7 *texture_surface, uint8_t *pixel_data, uint32_t unused_pixel_count, uint32_t width, uint32_t height)
Definition textures.c:130
void Material_ComputeAvgTransparentColor(uint8_t *pixel_data, uint32_t width, uint32_t height, uint8_t *out_byte0, uint8_t *out_byte1, uint8_t *out_byte2)
Definition textures.c:57
bool Material_CheckHasTransparency(uint8_t *pixel_data, int32_t width, int32_t height)
Definition textures.c:213
void Material_LoadAllEntries(struct Material_SectionLoadView *section, uint8_t *texture_base_addr)
Definition resources.c:124
void Material_BuildTextureArray(struct Material_SectionHeader *material_section, struct Material_RefEntry *material_refs, int32_t material_count, int32_t first_material_index)
Definition textures.c:311
void Material_MarkNodeTextureReferences(struct Material_SectionHeader *section)
Definition textures.c:419
int32_t Material_FindIndex(struct Material_SectionHeader *section, struct Material_TableEntry *entry, int32_t node_type)
Definition resources.c:9
void Material_LoadTexture(struct Material_TableEntry *material_entry)
Definition textures.c:237
void Material_LoadAndFixup(struct Material_SectionHeaderRaw *material_section_raw, uint8_t *texture_data_entry_base)
Definition resources.c:65
int32_t Material_BuildStructure(struct Material_SectionHeader *section, struct Material_RefEntry *ref, struct Material_FrameSet *frame_set)
Definition resources.c:28
void Material_GetGlobalTextureRefs(struct Material_RefEntry *out_ref)
Definition textures.c:357
void Material_ClearTextureCache(struct Material_RuntimeDescriptor *descriptor)
Definition textures.c:36
void Material_ReleaseTextureArray(IDirectDrawSurface7 **texture_handles)
Definition textures.c:15