Design Pattern Examples
Overview of object-oriented design patterns
Flyweight_BigResourceManager.h
Go to the documentation of this file.
1
6
7#pragma once
8#ifndef __FLYWEIGHT_BIGRESOURCEMANAGER_H__
9#define __FLYWEIGHT_BIGRESOURCEMANAGER_H__
10
11#include <stdbool.h>
12
14#include "Flyweight_Image.h"
15
20
30
38
39
40#endif // __FLYWEIGHT_BIGRESOURCEMANAGER_H__
Declaration of the BigResource structure along with the supporting BigResource_Clear function....
int BigResourceManager_AddResource(BigResource *rawResource)
Add a new big resource and return the ID of the resource. If the resource is successfully added,...
void BigResourceManager_Clear(void)
Release all resources owned by the Big Resource Manager.
BigResource * BigResourceManager_GetResource(int bigResourceId)
Retrieve the requested big resource.
Declaration of the Flyweight_ImageList and Flyweight_Image structures, the latter which wraps the big...
Represents a big image. Call the BigResource_Clear() function to release the memory used by each inst...