46 bool Inti(HWND engineWindowHandle);
60 void BeginDarw() { EngineRendertarget->BeginDraw(); }
65 void EndDraw() { EngineRendertarget->EndDraw(); }
75 void DrawCircle(
float c,
float y,
float radius,
float r,
float g,
float b,
float a);
ID2D1RenderTarget * Rendertarget()
This is allows the handing of bitmap image during the conversion process
Definition: Graphics.h:52
ID2D1Factory * EngineFactory
This factory allow many types of D2D resources to be created
Definition: Graphics.h:20
ID2D1HwndRenderTarget * EngineRendertarget
The render-target is similar to a back buffer from the GPU memory
Definition: Graphics.h:25
bool Inti(HWND engineWindowHandle)
This is initialize the game window
Definition: Graphics.cpp:43
Graphics()
This is the constructor for the graphics object
Definition: Graphics.cpp:16
Class for Graphics This class manages the Graphics objects
Definition: Graphics.h:15
void EndDraw()
This ends the drawing process
Definition: Graphics.h:65
void DrawCircle(float c, float y, float radius, float r, float g, float b, float a)
This draws a circle in the game window
Definition: Graphics.cpp:79
ID2D1SolidColorBrush * brush
This is a COM interface that should also be release at the end
Definition: Graphics.h:30
void ClearScreen(float r, float g, float b)
This provides a clear screen
Definition: Graphics.cpp:71
~Graphics()
This is the destructor for the graphics objects
Definition: Graphics.cpp:30
void BeginDarw()
This starts the drawing process
Definition: Graphics.h:60