Skip to content

Commit 28a6365

Browse files
committed
refine states and ssbo example
1 parent ead92ab commit 28a6365

File tree

24 files changed

+283
-387
lines changed

24 files changed

+283
-387
lines changed

source/examples/commandlineoutput/CMakeLists.txt

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

3030
set(sources
3131
main.cpp
32-
contextinfo.inl
3332
)
3433

3534

source/examples/commandlineoutput/contextinfo.inl

Lines changed: 0 additions & 16 deletions
This file was deleted.

source/examples/commandlineoutput/main.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
#include <globjects/TransformFeedback.h>
2323
#include <globjects/VertexArray.h>
2424

25-
// example commons
26-
#include "contextinfo.inl"
27-
2825

2926
using namespace gl;
3027
using namespace globjects;
@@ -53,7 +50,11 @@ int main(int /*argc*/, char * /*argv*/[])
5350

5451
// Initialize globjects (internally initializes glbinding, and registers the current context)
5552
globjects::init();
56-
common::printContextInfo();
53+
54+
std::cout << std::endl
55+
<< "OpenGL Version: " << glbinding::ContextInfo::version() << std::endl
56+
<< "OpenGL Vendor: " << glbinding::ContextInfo::vendor() << std::endl
57+
<< "OpenGL Renderer: " << glbinding::ContextInfo::renderer() << std::endl << std::endl;
5758

5859
std::cout << std::endl;
5960
std::cout << "Test Logging of Standard Types:" << std::endl;

source/examples/computeshader/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ set(sources
3131
main.cpp
3232
ScreenAlignedQuad.h
3333
ScreenAlignedQuad.cpp
34-
contextinfo.inl
3534
datapath.inl
3635
)
3736

source/examples/computeshader/contextinfo.inl

Lines changed: 0 additions & 16 deletions
This file was deleted.

source/examples/computeshader/main.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@
2929
#include <globjects/Texture.h>
3030

3131
#include "ScreenAlignedQuad.h"
32-
33-
// example commons
34-
#include "contextinfo.inl"
3532
#include "datapath.inl"
3633

3734

@@ -155,7 +152,11 @@ int main()
155152

156153
// Initialize globjects (internally initializes glbinding, and registers the current context)
157154
globjects::init();
158-
common::printContextInfo();
155+
156+
std::cout << std::endl
157+
<< "OpenGL Version: " << glbinding::ContextInfo::version() << std::endl
158+
<< "OpenGL Vendor: " << glbinding::ContextInfo::vendor() << std::endl
159+
<< "OpenGL Renderer: " << glbinding::ContextInfo::renderer() << std::endl << std::endl;
159160

160161
globjects::DebugMessage::enable();
161162

source/examples/programpipelines/CMakeLists.txt

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

3030
set(sources
3131
main.cpp
32-
contextinfo.inl
3332
)
3433

3534

source/examples/programpipelines/contextinfo.inl

Lines changed: 0 additions & 16 deletions
This file was deleted.

source/examples/programpipelines/main.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11

2+
#include <iostream>
3+
24
#include <glm/vec2.hpp>
35

46
#include <glbinding/gl/gl.h>
@@ -19,9 +21,6 @@
1921
#include <globjects/VertexAttributeBinding.h>
2022
#include <globjects/base/StaticStringSource.h>
2123

22-
// example commons
23-
#include "contextinfo.inl"
24-
2524

2625
using namespace gl;
2726

@@ -70,8 +69,6 @@ void main()
7069

7170
void initialize()
7271
{
73-
glClearColor(0.2f, 0.3f, 0.4f, 1.f);
74-
7572
g_cornerBuffer = new globjects::Buffer();
7673
g_cornerBuffer->ref();
7774
g_vertexProgram = new globjects::Program();
@@ -167,10 +164,11 @@ int main(int /*argc*/, char * /*argv*/[])
167164

168165
// Initialize globjects (internally initializes glbinding, and registers the current context)
169166
globjects::init();
170-
common::printContextInfo();
171-
172-
globjects::info() << "Press F5 to reload shaders." << std::endl << std::endl;
173167

168+
std::cout << std::endl
169+
<< "OpenGL Version: " << glbinding::ContextInfo::version() << std::endl
170+
<< "OpenGL Vendor: " << glbinding::ContextInfo::vendor() << std::endl
171+
<< "OpenGL Renderer: " << glbinding::ContextInfo::renderer() << std::endl << std::endl;
174172

175173
initialize();
176174
glfwGetFramebufferSize(window, &g_size[0], &g_size[1]);

source/examples/qtexample/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ set(sources
4343

4444
WindowQt.cpp
4545
WindowQt.h
46-
contextinfo.inl
4746
datapath.inl
4847
)
4948

0 commit comments

Comments
 (0)