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

📄 glutils.hpp

📁 ncbi源码
💻 HPP
字号:
/* * =========================================================================== * PRODUCTION $Log: glutils.hpp,v $ * PRODUCTION Revision 1000.1  2004/06/01 19:50:28  gouriano * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.9 * PRODUCTION * =========================================================================== */#ifndef GUI_OPENGL___GL_UTILS__HPP#define GUI_OPENGL___GL_UTILS__HPP/*  $Id: glutils.hpp,v 1000.1 2004/06/01 19:50:28 gouriano Exp $ * =========================================================================== * *                            PUBLIC DOMAIN NOTICE *               National Center for Biotechnology Information * *  This software/database is a "United States Government Work" under the *  terms of the United States Copyright Act.  It was written as part of *  the author's official duties as a United States Government employee and *  thus cannot be copyrighted.  This software/database is freely available *  to the public for use. The National Library of Medicine and the U.S. *  Government have not placed any restriction on its use or reproduction. * *  Although all reasonable efforts have been taken to ensure the accuracy *  and reliability of the software and data, the NLM and the U.S. *  Government do not and cannot warrant the performance or results that *  may be obtained by using this software or data. The NLM and the U.S. *  Government disclaim all warranties, express or implied, including *  warranties of performance, merchantability or fitness for any particular *  purpose. * *  Please cite the author in any work or product based on this material. * * =========================================================================== * * Authors:  Mike DiCuccio * * File Description: *    OpenGL utility functions */#include <corelib/ncbistd.hpp>#include <gui/gui.hpp>/** @addtogroup GUI_OPENGL * * @{ */BEGIN_NCBI_SCOPE///////////////////////////////////////////////////////////////////////////////  CGlUtils:://class NCBI_GUIOPENGL_EXPORT CGlUtils{public:    // status of hardware acceleration.    enum EAccelState {        eNotDetermined,        eAccelerated,        eNotAccelerated    };    // check if there are any OpenGL errors    static void     CheckGlError();    // dump many of the most common OpenGL states    static void     DumpState();    // get the status of hardware acceleration.  This cannot be determined    // without an active OpenGL context.    static EAccelState  GetAccelerated(void);    // set the status of hardware acceleration.  This is provided to permit a    // user override of the detected state.    static void         SetAccelerated(EAccelState acc);private:    // hardware acceleration    static EAccelState m_Accel;};#ifndef _DEBUG//// in release mode, this function does nothing//inlinevoid CGlUtils::DumpState(void){}#endifEND_NCBI_SCOPE/* @} *//* * =========================================================================== * $Log: glutils.hpp,v $ * Revision 1000.1  2004/06/01 19:50:28  gouriano * PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.9 * * Revision 1.9  2004/05/11 18:54:22  dicuccio * Added doxygne modules info * * Revision 1.8  2004/05/03 12:43:59  dicuccio * Added #include for gui/gui.hpp * * Revision 1.7  2003/09/29 15:20:07  dicuccio * Deprecated gui/scope.hpp.  Merged gui/core/types.hpp into gui/types.hpp * * Revision 1.6  2003/05/06 15:51:56  dicuccio * Reorganized CGlCanvas and CGlUtils: moved hardware check into CGlUtils; split * CGlCanvas into 2D and 3D variants * * Revision 1.5  2003/01/13 13:11:42  dicuccio * Namespace clean-up.  Retired namespace gui -> converted to namespace ncbi. * Moved all FLUID-generated code into namespace ncbi. * * Revision 1.4  2002/12/19 18:13:03  dicuccio * Added export specifiers for Win32. * * Revision 1.3  2002/11/08 02:06:07  dicuccio * Fixed syntax error in preprocessor definition. * * Revision 1.2  2002/11/07 18:24:48  dicuccio * Minor #ifdef changes.  Created macro to wrap dumping of OpenGL state. * * Revision 1.1  2002/11/04 20:05:38  dicuccio * Initial revision * * =========================================================================== */#endif  // GUI_OPENGL___GL_UTILS__HPP

⌨️ 快捷键说明

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