Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SbGraphicsCapabilities.h
Go to the documentation of this file.
1#pragma once
2
3/*====================================================================================
4*** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
5*** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
6*** ***
7*** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
8*** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
9*** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
10*** ***
11*** RESTRICTED RIGHTS LEGEND ***
12*** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
13*** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
14*** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
15*** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
16*** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
17*** ***
18*** COPYRIGHT (C) 1996-2024 BY FEI S.A.S, ***
19*** BORDEAUX, FRANCE ***
20*** ALL RIGHTS RESERVED ***
21**==================================================================================*/
22
23#include <Inventor/sys/port.h>
24#include <Inventor/SbBase.h>
25
26#include <ostream>
27
28class SbString;
29
38{
39public:
40
41 // default constructor
43
45 int getMaxTextureUnits() const;
46
48 int getMaxImageUnits() const;
49
52
54 int getMaxColorTargets() const;
55
57 int getMaxDrawBuffers() const;
58
61
63 int getMaxClipPlanes() const;
64
66 int getMinGLSLVersion() const;
67
69 friend std::ostream& operator<<(std::ostream& os, const SbGraphicsCapabilities& capabilities);
70
71private:
72
73 // Maximum number of tex unit allowed
74 int m_maxTextureUnits;
75
76 // Maximum number of image unit allowed
77 int m_maxImageUnits;
78
79 // Maximum number of texCoord allowed
80 int m_maxTextureCoords;
81
82 // Maximum number of color target allowed
83 int m_maxColorTargets;
84
85 // Maximum number of draw buffers allowed
86 int m_maxDrawBuffers;
87
88 // Maximum number of light allowed
89 int m_maxHardwareLights;
90
91 // Maximum number of clip plane allowed
92 int m_maxClipPlanes;
93
94 // Minimum version of GLSL supported
95 int m_minGLSLVersion;
96};
List of common graphics capabilities set by Open Inventor.
int getMaxDrawBuffers() const
Maximum number of draw buffers allowed.
int getMinGLSLVersion() const
Minimum version of GLSL supported.
int getMaxColorTargets() const
Maximum number of color target allowed.
int getMaxTextureUnits() const
Maximum number of tex unit allowed.
int getMaxHardwareLights() const
Maximum number of light allowed.
int getMaxImageUnits() const
Maximum number of image unit allowed.
friend std::ostream & operator<<(std::ostream &os, const SbGraphicsCapabilities &capabilities)
List capabilities in human readable format.
int getMaxTextureCoords() const
Maximum number of texCoord allowed.
int getMaxClipPlanes() const
Maximum number of clip plane allowed.
Class for smart character strings.
Definition SbString.h:202