about summary refs log tree commit diff
path: root/src/engine/graphics.h
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-04-13 20:37:12 +0200
committeroy <Tom_Adams@web.de>2011-04-13 20:37:12 +0200
commit06115dd49dca2f8eb5f14606437e8fd20037cc4d (patch)
tree5ec4bca6158319b3f5285d7689c5f94ae8da8c93 /src/engine/graphics.h
parent63e059b8fff6498e42b765a1dca000e53005ea77 (diff)
downloadzcatch-06115dd49dca2f8eb5f14606437e8fd20037cc4d.tar.gz
zcatch-06115dd49dca2f8eb5f14606437e8fd20037cc4d.zip
added "Whitespace and line Endings cleanup" by GreYFoX
Diffstat (limited to 'src/engine/graphics.h')
-rw-r--r--src/engine/graphics.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/engine/graphics.h b/src/engine/graphics.h
index de99caac..0912bfb5 100644
--- a/src/engine/graphics.h
+++ b/src/engine/graphics.h
@@ -19,11 +19,11 @@ public:
 	/* Variable: width
 		Contains the width of the image */
 	int m_Width;
-	
+
 	/* Variable: height
 		Contains the height of the image */
 	int m_Height;
-	
+
 	/* Variable: format
 		Contains the format of the image. See <Image Formats> for more information. */
 	int m_Format;
@@ -61,27 +61,27 @@ public:
 	int ScreenWidth() const { return m_ScreenWidth; }
 	int ScreenHeight() const { return m_ScreenHeight; }
 	float ScreenAspect() const { return (float)ScreenWidth()/(float)ScreenHeight(); }
-	
+
 	virtual void Clear(float r, float g, float b) = 0;
-	
+
 	virtual void ClipEnable(int x, int y, int w, int h) = 0;
 	virtual void ClipDisable() = 0;
-	
+
 	virtual void MapScreen(float TopLeftX, float TopLeftY, float BottomRightX, float BottomRightY) = 0;
 	virtual void GetScreen(float *pTopLeftX, float *pTopLeftY, float *pBottomRightX, float *pBottomRightY) = 0;
-	
+
 	// TODO: These should perhaps not be virtuals
 	virtual void BlendNone() = 0;
 	virtual void BlendNormal() = 0;
 	virtual void BlendAdditive() = 0;
 	virtual int MemoryUsage() const = 0;
-	
+
 	virtual int LoadPNG(CImageInfo *pImg, const char *pFilename, int StorageType) =0;
 	virtual int UnloadTexture(int Index) = 0;
 	virtual int LoadTextureRaw(int Width, int Height, int Format, const void *pData, int StoreFormat, int Flags) = 0;
 	virtual int LoadTexture(const char *pFilename, int StorageType, int StoreFormat, int Flags) = 0;
 	virtual void TextureSet(int TextureID) = 0;
-	
+
 	struct CLineItem
 	{
 		float m_X0, m_Y0, m_X1, m_Y1;
@@ -91,13 +91,13 @@ public:
 	virtual void LinesBegin() = 0;
 	virtual void LinesEnd() = 0;
 	virtual void LinesDraw(const CLineItem *pArray, int Num) = 0;
-	
+
 	virtual void QuadsBegin() = 0;
 	virtual void QuadsEnd() = 0;
 	virtual void QuadsSetRotation(float Angle) = 0;
 	virtual void QuadsSetSubset(float TopLeftY, float TopLeftV, float BottomRightU, float BottomRightV) = 0;
 	virtual void QuadsSetSubsetFree(float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3) = 0;
-	
+
 	struct CQuadItem
 	{
 		float m_X, m_Y, m_Width, m_Height;
@@ -106,7 +106,7 @@ public:
 	};
 	virtual void QuadsDraw(CQuadItem *pArray, int Num) = 0;
 	virtual void QuadsDrawTL(const CQuadItem *pArray, int Num) = 0;
-	
+
 	struct CFreeformItem
 	{
 		float m_X0, m_Y0, m_X1, m_Y1, m_X2, m_Y2, m_X3, m_Y3;
@@ -116,7 +116,7 @@ public:
 	};
 	virtual void QuadsDrawFreeform(const CFreeformItem *pArray, int Num) = 0;
 	virtual void QuadsText(float x, float y, float Size, float r, float g, float b, float a, const char *pText) = 0;
-	
+
 	struct CColorVertex
 	{
 		int m_Index;
@@ -126,7 +126,7 @@ public:
 	};
 	virtual void SetColorVertex(const CColorVertex *pArray, int Num) = 0;
 	virtual void SetColor(float r, float g, float b, float a) = 0;
-	
+
 	virtual void TakeScreenshot(const char *pFilename) = 0;
 	virtual int GetVideoModes(CVideoMode *pModes, int MaxModes) = 0;
 
@@ -139,13 +139,13 @@ class IEngineGraphics : public IGraphics
 public:
 	virtual bool Init() = 0;
 	virtual void Shutdown() = 0;
-	
+
 	virtual void Minimize() = 0;
 	virtual void Maximize() = 0;
-	
+
 	virtual int WindowActive() = 0;
 	virtual int WindowOpen() = 0;
-	
+
 };
 
 extern IEngineGraphics *CreateEngineGraphics();