Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

56 lines
1.1 KiB

//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef GAMERECT_H
#define GAMERECT_H
#ifdef _WIN32
#pragma once
#endif
#include "gamegraphic.h"
#include "dmxloader/dmxelement.h"
#include "tier1/utlvector.h"
class CAnimData;
//-----------------------------------------------------------------------------
//
//-----------------------------------------------------------------------------
class CGameRect : public CGameGraphic
{
DECLARE_DMXELEMENT_UNPACK()
public:
CGameRect( const char *pName );
virtual ~CGameRect();
bool Unserialize( CDmxElement *pGraphic );
// Update geometry and execute scripting.
virtual void UpdateGeometry();
virtual void UpdateRenderData( color32 parentColor, CUtlVector< RenderGeometryList_t > &renderGeometryLists, int firstListIndex );
virtual bool HitTest( int x, int y );
protected:
CGameRect();
void SetupVertexColors();
CUtlVector< Vector2D > m_ScreenPositions;
};
#endif // GAMERECT_H