forked from perilouswithadollarsign/cstrike15_src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrender2d.h
44 lines (32 loc) · 910 Bytes
/
render2d.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//========= Copyright © 1996-2005, 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