Files
envi-code/SourceCode/Code2026/tg_shs/shs_geLib/TGGiPushDrawStream.cpp
T

36 lines
1.0 KiB
C++
Raw Normal View History

2026-10-04 00:04:20 +08:00
//-----------------------------------------------------------------------------+
2026-09-28 15:28:50 +08:00
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
2026-10-04 00:04:20 +08:00
// = FileName : TGGiPushDrawStream 类
2026-09-28 15:28:50 +08:00
// = Version : ver2.0
// = Author : wlw
// = CreateDate : 2002-09-09
2026-10-04 00:04:20 +08:00
// = Description: TGGiPushDrawStream 定义
2026-09-28 15:28:50 +08:00
// = Maintainers:
//
//-----------------------------------------------------------------------------+
#include "StdAfx.h"
#include "TGGiPushDrawStream.h"
TGGiPushDrawStream::TGGiPushDrawStream(TGGiDrawStreamBase &dc1, TGGiDrawStreamBase &dc2)
: m_dc1(dc1), m_dc2(dc2)
{
CPtrArray lstBak;
lstBak.Append(m_dc1.m_lstClip);
m_dc1.m_lstClip.RemoveAll();
m_dc1.m_lstClip.Append(m_dc2.m_lstClip);
m_dc2.m_lstClip.RemoveAll();
m_dc2.m_lstClip.Append(lstBak);
}
TGGiPushDrawStream::~TGGiPushDrawStream()
{
CPtrArray lstBak;
lstBak.Append(m_dc1.m_lstClip);
m_dc1.m_lstClip.RemoveAll();
m_dc1.m_lstClip.Append(m_dc2.m_lstClip);
m_dc2.m_lstClip.RemoveAll();
m_dc2.m_lstClip.Append(lstBak);
}