-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
171 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
//################################################################################################## | ||
// | ||
// Custom Visualization Core library | ||
// Copyright (C) 2018 Ceetron AS | ||
// | ||
// This library may be used under the terms of either the GNU General Public License or | ||
// the GNU Lesser General Public License as follows: | ||
// | ||
// GNU General Public License Usage | ||
// This library 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 3 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 General Public License at <<http://www.gnu.org/licenses/gpl.html>> | ||
// for more details. | ||
// | ||
// GNU Lesser General Public License Usage | ||
// 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 at <<http://www.gnu.org/licenses/lgpl-2.1.html>> | ||
// for more details. | ||
// | ||
//################################################################################################## | ||
|
||
|
||
#include "cvfBase.h" | ||
#include "cvfOpenGLInfo.h" | ||
|
||
namespace cvf { | ||
|
||
|
||
//================================================================================================== | ||
/// | ||
/// \class cvf::OpenGLInfo | ||
/// \ingroup Render | ||
/// | ||
/// | ||
/// | ||
//================================================================================================== | ||
|
||
//-------------------------------------------------------------------------------------------------- | ||
/// | ||
//-------------------------------------------------------------------------------------------------- | ||
OpenGLInfo::OpenGLInfo() | ||
{ | ||
} | ||
|
||
//-------------------------------------------------------------------------------------------------- | ||
/// | ||
//-------------------------------------------------------------------------------------------------- | ||
OpenGLInfo::~OpenGLInfo() | ||
{ | ||
} | ||
|
||
//-------------------------------------------------------------------------------------------------- | ||
/// | ||
//-------------------------------------------------------------------------------------------------- | ||
String OpenGLInfo::version() const | ||
{ | ||
return m_version; | ||
} | ||
|
||
//-------------------------------------------------------------------------------------------------- | ||
/// | ||
//-------------------------------------------------------------------------------------------------- | ||
String OpenGLInfo::vendor() const | ||
{ | ||
return m_vendor; | ||
} | ||
|
||
//-------------------------------------------------------------------------------------------------- | ||
/// | ||
//-------------------------------------------------------------------------------------------------- | ||
String OpenGLInfo::renderer() const | ||
{ | ||
return m_renderer; | ||
} | ||
|
||
//-------------------------------------------------------------------------------------------------- | ||
/// | ||
//-------------------------------------------------------------------------------------------------- | ||
void OpenGLInfo::setOpenGLStrings(String version, String vendor, String renderer) | ||
{ | ||
m_version = version; | ||
m_vendor = vendor; | ||
m_renderer = renderer; | ||
} | ||
|
||
} // namespace cvf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
//################################################################################################## | ||
// | ||
// Custom Visualization Core library | ||
// Copyright (C) 2018 Ceetron AS | ||
// | ||
// This library may be used under the terms of either the GNU General Public License or | ||
// the GNU Lesser General Public License as follows: | ||
// | ||
// GNU General Public License Usage | ||
// This library 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 3 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 General Public License at <<http://www.gnu.org/licenses/gpl.html>> | ||
// for more details. | ||
// | ||
// GNU Lesser General Public License Usage | ||
// 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 at <<http://www.gnu.org/licenses/lgpl-2.1.html>> | ||
// for more details. | ||
// | ||
//################################################################################################## | ||
|
||
|
||
#pragma once | ||
|
||
#include "cvfString.h" | ||
|
||
namespace cvf { | ||
|
||
|
||
//================================================================================================== | ||
// | ||
// | ||
// | ||
//================================================================================================== | ||
class OpenGLInfo | ||
{ | ||
public: | ||
OpenGLInfo(); | ||
~OpenGLInfo(); | ||
|
||
String version() const; | ||
String vendor() const; | ||
String renderer() const; | ||
|
||
void setOpenGLStrings(String version, String vendor, String renderer); | ||
|
||
private: | ||
String m_version; | ||
String m_vendor; | ||
String m_renderer; | ||
}; | ||
|
||
} |