9 #include <wrl\client.h> 10 #include <d2d1effects_2.h> 15 using Microsoft::WRL::ComPtr;
30 ComPtr<ID2D1DeviceContext> m_d2dContext;
77 void Draw(
float x,
float y);
82 void DrawNPC(
int index,
float X_Position,
float Y_Position);
int NPC_Width
Variables for NPCs bitmap information
Definition: ImageManager.h:45
void DrawNPC(int index, float X_Position, float Y_Position)
Draws the NPCs bitmap
Definition: ImageManager.cpp:183
Class for Graphics This class manages the Graphics objects
Definition: Graphics.h:15
~ImageManager()
Destructor that destroys bitmap object when no longer needed
Definition: ImageManager.cpp:155
Class for ImageManager This class loads the image from file and converts it to a ID2D1Bitmap image It...
Definition: ImageManager.h:23
Graphics * EngineGFX
Setting up a graphic object
Definition: ImageManager.h:28
void Draw(float x, float y)
Draws the bitmap
Definition: ImageManager.cpp:166
ComPtr< ID2D1Effect > chromakeyEffect
This is a effect interface that should also be release at the end
Definition: ImageManager.h:35
ImageManager(wchar_t *filename, Graphics *EngineGFX)
Constructor that Gets the bitmap image from file
Definition: ImageManager.cpp:16
int ChomaKeyImg_Width
Variables for chroma-key bitmap information
Definition: ImageManager.h:51
ID2D1Bitmap * GameBmpAsset
Instantiating bitmap object
Definition: ImageManager.h:40
void DrawChromaKeyedImage(float X_Position, float Y_Position)
Draws the chroma-keyed bitmap
Definition: ImageManager.cpp:208