Design Pattern Examples
Overview of object-oriented design patterns
Flyweight_Context.h
Go to the documentation of this file.
1
5
6#pragma once
7#ifndef __FLYWEIGHT_CONTEXT_H__
8#define __FLYWEIGHT_CONTEXT_H__
9
19typedef struct
20{
24 double Position_X;
25 double Position_Y;
26 double Velocity_X;
27 double Velocity_Y;
29
30#endif // __FLYWEIGHT_CONTEXT_H__
31
Represents the context for an instance of the Flyweight_Image structure. In this case,...
double Position_Y
Vertical position of upper left corner of image in a display.
int OffsetXToImage
Offset into big resource to left edge of image.
double Position_X
Horizontal position of upper left corner of image in a display.
int ImageHeight
Height of image.
int ImageWidth
Width of image.
double Velocity_X
Velocity to apply to the horizontal position.
double Velocity_Y
Velocity to apply to the vertical position.