summaryrefslogtreecommitdiff
path: root/hammer/render2d.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /hammer/render2d.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'hammer/render2d.h')
-rw-r--r--hammer/render2d.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/hammer/render2d.h b/hammer/render2d.h
new file mode 100644
index 0000000..e6e4919
--- /dev/null
+++ b/hammer/render2d.h
@@ -0,0 +1,44 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Defines the interface for rendering in the 2D views.
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef RENDER2D_H
+#define RENDER2D_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "Render.h"
+
+class CRender2D : public CRender
+{
+public:
+
+
+
+ //
+ // construction/deconstruction
+ //
+ CRender2D();
+ ~CRender2D();
+
+ //
+ // setup (view) data
+ //
+
+ void MoveTo( const Vector &vPoint );
+ void DrawLineTo( const Vector &vPoint );
+ void DrawRectangle( const Vector &vMins, const Vector &vMaxs, bool bFill = false, int extent = 0 );
+ void DrawBox( const Vector &vMins, const Vector &vMaxs, bool bFill = false );
+ void DrawCircle( const Vector &vCenter, float fRadius );
+
+protected:
+
+ Vector m_vCurLine;
+};
+
+
+#endif // RENDER2D_H