![]() |
Class for Graphics This class manages the Graphics objects More...
#include <Graphics.h>
Public Member Functions | |
Graphics () | |
This is the constructor for the graphics object More... | |
~Graphics () | |
This is the destructor for the graphics objects More... | |
bool | Inti (HWND engineWindowHandle) |
This is initialize the game window More... | |
ID2D1RenderTarget * | Rendertarget () |
This is allows the handing of bitmap image during the conversion process More... | |
void | BeginDarw () |
This starts the drawing process More... | |
void | EndDraw () |
This ends the drawing process More... | |
void | ClearScreen (float r, float g, float b) |
This provides a clear screen More... | |
void | DrawCircle (float c, float y, float radius, float r, float g, float b, float a) |
This draws a circle in the game window More... | |
Private Attributes | |
ID2D1Factory * | EngineFactory |
This factory allow many types of D2D resources to be created More... | |
ID2D1HwndRenderTarget * | EngineRendertarget |
The render-target is similar to a back buffer from the GPU memory More... | |
ID2D1SolidColorBrush * | brush |
This is a COM interface that should also be release at the end More... | |
Class for Graphics This class manages the Graphics objects
: Graphics.h Brian Hinds : 07-02-2017 : 1.0.2
Graphics::Graphics | ( | ) |
This is the constructor for the graphics object
This method is a constructor that Sets the graphics objects to NULL
: Graphics.cpp Brian Hinds : 07-02-2017 : 1.0.2 <method name="Grapgics"></method>
None |
Graphics::~Graphics | ( | ) |
This is the destructor for the graphics objects
This method is a destructor for the graphics object Freeing the memory when no longer needed
<method name="~Graphics"></method>
None |
|
inline |
This starts the drawing process
void Graphics::ClearScreen | ( | float | r, |
float | g, | ||
float | b | ||
) |
This provides a clear screen
This method clears the screen for each graphics
<method name="ClearScreen"></method>
float r,g,b |
void Graphics::DrawCircle | ( | float | x, |
float | y, | ||
float | radius, | ||
float | r, | ||
float | g, | ||
float | b, | ||
float | a | ||
) |
This draws a circle in the game window
Draws a circle with a define color and size
|
inline |
This ends the drawing process
bool Graphics::Inti | ( | HWND | engineWindowHandle | ) |
This is initialize the game window
This method Initialize the game window from the graphics It also sets the render properties and objects needed for the graphics
<method name="Inti"></method> <param name="HWND engineWindowHandle>
|
inline |
This is allows the handing of bitmap image during the conversion process
|
private |
This is a COM interface that should also be release at the end
|
private |
This factory allow many types of D2D resources to be created
|
private |
The render-target is similar to a back buffer from the GPU memory