📄 dc_buffer.cpp
字号:
/* $Id: dc_buffer.cpp,v 1.5 2003/09/11 21:29:29 mbn Exp $
**
** ClanLib Game SDK
** Copyright (C) 2003 The ClanLib Team
** For a total list of contributers see the file CREDITS.
**
** This library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Lesser General Public
** License as published by the Free Software Foundation; either
** version 2.1 of the License, or (at your option) any later version.
**
** This library is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
** Lesser General Public License for more details.
**
** You should have received a copy of the GNU Lesser General Public
** License along with this library; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "Display/display_precomp.h"
#include "API/Display/Providers/dc_buffer.h"
#include "dc_buffer_generic.h"
/////////////////////////////////////////////////////////////////////////////
// CL_DeviceContextBuffer construction:
CL_DeviceContextBuffer::CL_DeviceContextBuffer(
HDC reference_dc, int width, int height, bool monocrome_alpha)
: CL_PixelBuffer(new CL_DeviceContextBuffer_Generic(reference_dc, width, height, monocrome_alpha))
{
}
/////////////////////////////////////////////////////////////////////////////
// CL_DeviceContextBuffer attributes:
HDC CL_DeviceContextBuffer::get_dc()
{
return ((CL_DeviceContextBuffer_Generic *) impl)->get_dc();
}
/////////////////////////////////////////////////////////////////////////////
// CL_DeviceContextBuffer implementation:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -