00001 #pragma once 00002 00003 /*==================================================================================== 00004 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), *** 00005 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. *** 00006 *** *** 00007 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS *** 00008 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR *** 00009 *** WRITTEN AUTHORIZATION OF FEI S.A.S. *** 00010 *** *** 00011 *** RESTRICTED RIGHTS LEGEND *** 00012 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS *** 00013 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN *** 00014 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT *** 00015 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN *** 00016 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. *** 00017 *** *** 00018 *** COPYRIGHT (C) 1996-2020 BY FEI S.A.S, *** 00019 *** BORDEAUX, FRANCE *** 00020 *** ALL RIGHTS RESERVED *** 00021 **==================================================================================*/ 00022 00023 #include <Inventor/sys/port.h> 00024 #include <Inventor/SbBase.h> 00025 00026 #include <ostream> 00027 00028 class SbString; 00029 00035 class SbGraphicsCapabilities 00036 { 00037 public: 00038 00039 // default constructor 00040 SbGraphicsCapabilities(); 00041 00043 int getMaxTextureUnits() const; 00044 00046 int getMaxImageUnits() const; 00047 00049 int getMaxTextureCoords() const; 00050 00052 int getMaxColorTargets() const; 00053 00055 int getMaxDrawBuffers() const; 00056 00058 int getMaxHardwareLights() const; 00059 00061 int getMaxClipPlanes() const; 00062 00064 int getMinGLSLVersion() const; 00065 00067 friend std::ostream& operator<<(std::ostream& os, const SbGraphicsCapabilities& capabilities); 00068 00069 private: 00070 00071 // Maximum number of tex unit allowed 00072 int m_maxTextureUnits; 00073 00074 // Maximum number of image unit allowed 00075 int m_maxImageUnits; 00076 00077 // Maximum number of texCoord allowed 00078 int m_maxTextureCoords; 00079 00080 // Maximum number of color target allowed 00081 int m_maxColorTargets; 00082 00083 // Maximum number of draw buffers allowed 00084 int m_maxDrawBuffers; 00085 00086 // Maximum number of light allowed 00087 int m_maxHardwareLights; 00088 00089 // Maximum number of clip plane allowed 00090 int m_maxClipPlanes; 00091 00092 // Minimum version of GLSL supported 00093 int m_minGLSLVersion; 00094 }; 00095