Skip to content

Commit 24a3c7e

Browse files
committed
Use copies of contextinfo and datapth in favor of a common library
1 parent 4917241 commit 24a3c7e

File tree

14 files changed

+98
-6
lines changed

14 files changed

+98
-6
lines changed

source/examples/commandlineoutput/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ message(STATUS "Example ${target}")
2929

3030
set(sources
3131
main.cpp
32+
contextinfo.inl
3233
)
3334

3435

source/examples/commandlineoutput/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include <globjects/VertexArray.h>
2424

2525
// example commons
26-
#include "common/contextInfo.inl"
26+
#include "contextinfo.inl"
2727

2828

2929
using namespace gl;

source/examples/computeshader/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ set(sources
3131
main.cpp
3232
ScreenAlignedQuad.h
3333
ScreenAlignedQuad.cpp
34+
contextinfo.inl
35+
datapath.inl
3436
)
3537

3638

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
#include <iostream>
3+
4+
5+
namespace common
6+
{
7+
8+
void printContextInfo()
9+
{
10+
std::cout << std::endl
11+
<< "OpenGL Version: " << glbinding::ContextInfo::version() << std::endl
12+
<< "OpenGL Vendor: " << glbinding::ContextInfo::vendor() << std::endl
13+
<< "OpenGL Renderer: " << glbinding::ContextInfo::renderer() << std::endl << std::endl;
14+
}
15+
16+
}
File renamed without changes.

source/examples/computeshader/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
#include "ScreenAlignedQuad.h"
3232

3333
// example commons
34-
#include "common/contextinfo.inl"
35-
#include "common/dataPath.inl"
34+
#include "contextinfo.inl"
35+
#include "datapath.inl"
3636

3737

3838
using namespace gl;

source/examples/programpipelines/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ message(STATUS "Example ${target}")
2929

3030
set(sources
3131
main.cpp
32+
contextinfo.inl
3233
)
3334

3435

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
#include <iostream>
3+
4+
5+
namespace common
6+
{
7+
8+
void printContextInfo()
9+
{
10+
std::cout << std::endl
11+
<< "OpenGL Version: " << glbinding::ContextInfo::version() << std::endl
12+
<< "OpenGL Vendor: " << glbinding::ContextInfo::vendor() << std::endl
13+
<< "OpenGL Renderer: " << glbinding::ContextInfo::renderer() << std::endl << std::endl;
14+
}
15+
16+
}

source/examples/programpipelines/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <globjects/base/StaticStringSource.h>
2121

2222
// example commons
23-
#include "common/contextInfo.inl"
23+
#include "contextinfo.inl"
2424

2525

2626
using namespace gl;

0 commit comments

Comments
 (0)