Design Pattern Examples
Overview of object-oriented design patterns
BigResource Struct Reference

Represents a big image. Call the BigResource_Clear() function to release the memory used by each instance of the BigResource structure (see the BigResourceList structure). More...

#include <Flyweight_BigResource.h>

Collaboration diagram for BigResource:
Collaboration graph

Public Attributes

char * data
 Image data, row-oriented.
 
int numImages
 Number of images represented in the big image.
 

Detailed Description

Represents a big image. Call the BigResource_Clear() function to release the memory used by each instance of the BigResource structure (see the BigResourceList structure).

This is used in rendering an image to a display using the BigResource_Render() function.

Definition at line 22 of file Flyweight_BigResource.h.

Member Data Documentation

◆ data

char* data

Image data, row-oriented.

Definition at line 24 of file Flyweight_BigResource.h.

Referenced by _Flyweight_GenerateBigResource(), BigResource_Clear(), and BigResource_Render().

◆ numImages

int numImages

Number of images represented in the big image.

Definition at line 25 of file Flyweight_BigResource.h.

Referenced by _Flyweight_GenerateBigResource(), and BigResource_Render().


The documentation for this struct was generated from the following file: