⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gl2d3d.cpp

📁 The source code of Doom legacy for windows
💻 CPP
字号:
// Emacs style mode select   -*- C++ -*- 
//-----------------------------------------------------------------------------
//
// $Id: gl2d3d.cpp,v 1.1 2000/10/01 15:14:31 hurdler Exp $
//
// Copyright (C) 1998-2000 by DooM Legacy Team.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program 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 General Public License for more details.
//
//
// $Log: gl2d3d.cpp,v $
// Revision 1.1  2000/10/01 15:14:31  hurdler
// Completely rewritten d3d driver... absolutely not finished at all
//
//
//
// DESCRIPTION:
//      
//
//-----------------------------------------------------------------------------

#include "gl2d3d.h"

void GL_2_D3D::Clear(GLbitfield mask)
{
	D3DRECT	rect = { 0, 0, screen_width, screen_height };
	int		m = 0;

	if (mask & GL_COLOR_BUFFER_BIT) m |= D3DCLEAR_TARGET;
	if (mask & GL_DEPTH_BUFFER_BIT) m |= D3DCLEAR_ZBUFFER;

	IDirect3DViewport3_Clear2(d3d_viewport, 1, &rect, m, 0, 1.0f, 0);
}


const GLubyte *GL_2_D3D::GetString(GLenum name)
{
    static char *vendor   = "Thierry Van Elsuw

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -