Giter VIP home page Giter VIP logo

opengl's Introduction

OpenGL

OpenGL 3 and OpenGL 4 with GLSL

Please read GLUS/README.txt

Please read Binaries/README.txt

======

Example01 - Basic window and OpenGL 3 initialization

Example02 - Rendering of a triangle

Example03 - Grey filter

Example04 - Perspective rendering of a cube

Example05 - Phong rendering of a sphere

Example06 - Texturing of a cube

Example07 - Normal mapping

Example08 - Environment/cube mapping

Example09 - GPU Particles

Example10 - Geometry shader

Example11 - Reflection and refraction

Example12 - Shadow mapping

Example13 - Simple tessellation (OpenGL 4.1)

Example14 - Terrain rendering (OpenGL 4.1)

Example15 - Water rendering

Example16 - Model loading and rendering

Example17 - Clipping planes and two sided rendering

Example18 - Using stencil buffer and clipping planes

Example19 - Render to texture and planar reflection

Example20 - Texture matrix, alpha blending and discarding

Example21 - Compute shader (OpenGL 4.3)

Example22 - Shadow volumes

Example23 - Displacement mapping (OpenGL 4.1, AMD hardware - not on Mac OS X - has artifacts but used to work)

Example24 - Erode effect using perlin noise

Example25 - Model with groups and materials

Example26 - Fur rendering

Example27 - Projection shadow for directional light

Example28 - Screen space ambient occlusion (SSAO) (OpenGL 4.1)

Example29 - CPU ray tracing

Example30 - GPU ray tracing using compute shader (OpenGL 4.3)

Example31 - Many lights using deferred shading (OpenGL 4.1)

Example32 - BRDF and IBL rendering (OpenGL 4.1)

Example33 - Real-Time BRDF and IBL rendering (OpenGL 4.1)

Example34 - Subsurface scattering

Example35 - Order independent transparency using depth peeling

Example36 - Order independent transparency using linked list (OpenGL 4.4, AMD hardware has artifacts)

Example37 - CPU ray marching

Example38 - Basic usage of program pipeline and separable programs(OpenGL 4.1)

Example39 - Basic usage of program pipeline, separable programs and shader subroutines (OpenGL 4.1, AMD hardware does not work properly)

Example40 - Cloth simulation using compute shader (OpenGL 4.3)

Example41 - Ocean wave height/normal map calculation with FFT using compute shader (OpenGL 4.3, NVIDIA hardware under Linux has artifacts)

Example42 - Fast Approximate Anti Aliasing - FXAA (OpenGL 4.3)

Example43 - Scene with several models having groups and materials

Example44 - Conservative rasterization

Example45 - GPU voxelization (OpenGL 4.4)

opengl's People

Contributors

abhilash1910 avatar dmitrykolesnikovich avatar kromster80 avatar mcnopper avatar oleglatin avatar paolooranges avatar ux3d-nopper avatar zuck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

opengl's Issues

Example 45

Hi,

I am trying to run the example 45 and I am getting a grey screen. I tried different models but it got the same result.

Am I missing something? I did not change the code.

Licensing

Hello!

I assume you license all of these as LGPL as stated in Binaries/COPYING.LESSER ?

Would be good to know for sure, since I want to use some of this as a reference in my own (foss) project, as well as when contributing to the ofxFX project.

PS Would be hella sweet if you wanted to release this stuff under the MIT license, since that's what the ofxFX and openFrameworks are licensed under. (Though I guess otherwise I'll just have to learn how to navigate the licensing jungle.)

Provide an install target

The current CMakeLists.txt does not provide any install target, which makes it difficult to install GLUS system-wide and hence to use the library in various project.

If the maintainer has interest for this feature, I can submit a PR.

vtk open gl error

dont know the error reason its coming while rendering stl files in vtk..

Generic Warning: In vtkOpenGLState.cxx, line 1171
Error glGetBoolean1 OpenGL errors detected
  0 : (1286) Invalid framebuffer operation

 with stack trace of
 at vtksys::Encoding::CommandLineArguments::CommandLineArguments
 at vtksys::Encoding::CommandLineArguments::CommandLineArguments
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at CallWindowProcW
 at CallWindowProcW
 at wglSwapBuffers
 at CallWindowProcW
 at WindowFromPoint
 at CallWindowProcA
 at vtkGenericRenderWindowInteractor::TimerEventResetsTimerOn
 at vtkGenericRenderWindowInteractor::TimerEventResetsTimerOn
 at CallWindowProcW
 at EnumChildWindows
 at IsIconic
 at KiUserCallbackDispatcher
 at NtUserDispatchMessage
 at DispatchMessageW
 at vtkGenericRenderWindowInteractor::TimerEventResetsTimerOn
 at vtkImageSliceMapper::SetCroppingRegion
 at main in C:\Users\dell\source\repos\ConsoleApplication1\ConsoleApplication1.cpp line 1022
 at invoke_main in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl line 79
 at __scrt_common_main_seh in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl line 288
 at __scrt_common_main in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl line 331
 at mainCRTStartup in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp line 17
 at BaseThreadInitThunk
 at RtlUserThreadStart


Generic Warning: In vtkOpenGLState.cxx, line 525
Error glBindFramebuffer1 OpenGL errors detected
  0 : (1286) Invalid framebuffer operation

 with stack trace of
 at vtksys::Encoding::CommandLineArguments::CommandLineArguments
 at vtksys::Encoding::CommandLineArguments::CommandLineArguments
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at CallWindowProcW
 at CallWindowProcW
 at wglSwapBuffers
 at CallWindowProcW
 at WindowFromPoint
 at CallWindowProcA
 at vtkGenericRenderWindowInteractor::TimerEventResetsTimerOn
 at vtkGenericRenderWindowInteractor::TimerEventResetsTimerOn
 at CallWindowProcW
 at EnumChildWindows
 at IsIconic
 at KiUserCallbackDispatcher
 at NtUserDispatchMessage
 at DispatchMessageW
 at vtkGenericRenderWindowInteractor::TimerEventResetsTimerOn
 at vtkImageSliceMapper::SetCroppingRegion
 at main in C:\Users\dell\source\repos\ConsoleApplication1\ConsoleApplication1.cpp line 1022
 at invoke_main in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl line 79
 at __scrt_common_main_seh in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl line 288
 at __scrt_common_main in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl line 331
 at mainCRTStartup in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp line 17
 at BaseThreadInitThunk
 at RtlUserThreadStart


Generic Warning: In vtkOpenGLState.cxx, line 709
Error glDepthMask1 OpenGL errors detected
  0 : (1286) Invalid framebuffer operation

 with stack trace of
 at vtksys::Encoding::CommandLineArguments::CommandLineArguments
 at vtksys::Encoding::CommandLineArguments::CommandLineArguments
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at CallWindowProcW
 at CallWindowProcW
 at wglSwapBuffers
 at CallWindowProcW
 at WindowFromPoint
 at CallWindowProcA
 at vtkGenericRenderWindowInteractor::TimerEventResetsTimerOn
 at vtkGenericRenderWindowInteractor::TimerEventResetsTimerOn
 at CallWindowProcW
 at EnumChildWindows
 at IsIconic
 at KiUserCallbackDispatcher
 at NtUserDispatchMessage
 at DispatchMessageW
 at vtkGenericRenderWindowInteractor::TimerEventResetsTimerOn
 at vtkImageSliceMapper::SetCroppingRegion
 at main in C:\Users\dell\source\repos\ConsoleApplication1\ConsoleApplication1.cpp line 1022
 at invoke_main in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl line 79
 at __scrt_common_main_seh in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl line 288
 at __scrt_common_main in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl line 331
 at mainCRTStartup in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp line 17
 at BaseThreadInitThunk
 at RtlUserThreadStart


Generic Warning: In vtkOpenGLState.cxx, line 709
Error glDepthMask1 OpenGL errors detected
  0 : (1286) Invalid framebuffer operation

 with stack trace of
 at vtksys::Encoding::CommandLineArguments::CommandLineArguments
 at vtksys::Encoding::CommandLineArguments::CommandLineArguments
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at CallWindowProcW
 at CallWindowProcW
 at wglSwapBuffers
 at CallWindowProcW
 at WindowFromPoint
 at CallWindowProcA
 at vtkGenericRenderWindowInteractor::TimerEventResetsTimerOn
 at vtkGenericRenderWindowInteractor::TimerEventResetsTimerOn
 at CallWindowProcW
 at EnumChildWindows
 at IsIconic
 at KiUserCallbackDispatcher
 at NtUserDispatchMessage
 at DispatchMessageW
 at vtkGenericRenderWindowInteractor::TimerEventResetsTimerOn
 at vtkImageSliceMapper::SetCroppingRegion
 at main in C:\Users\dell\source\repos\ConsoleApplication1\ConsoleApplication1.cpp line 1022
 at invoke_main in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl line 79
 at __scrt_common_main_seh in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl line 288
 at __scrt_common_main in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl line 331
 at mainCRTStartup in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp line 17
 at BaseThreadInitThunk
 at RtlUserThreadStart


Generic Warning: In vtkOpenGLState.cxx, line 1171
Error glGetBoolean1 OpenGL errors detected
  0 : (1286) Invalid framebuffer operation

 with stack trace of
 at vtksys::Encoding::CommandLineArguments::CommandLineArguments
 at vtksys::Encoding::CommandLineArguments::CommandLineArguments
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at CallWindowProcW
 at CallWindowProcW
 at wglSwapBuffers
 at CallWindowProcW
 at WindowFromPoint
 at CallWindowProcA
 at vtkGenericRenderWindowInteractor::TimerEventResetsTimerOn
 at vtkGenericRenderWindowInteractor::TimerEventResetsTimerOn
 at CallWindowProcW
 at EnumChildWindows
 at IsIconic
 at KiUserCallbackDispatcher
 at NtUserDispatchMessage
 at DispatchMessageW
 at vtkGenericRenderWindowInteractor::TimerEventResetsTimerOn
 at vtkImageSliceMapper::SetCroppingRegion
 at main in C:\Users\dell\source\repos\ConsoleApplication1\ConsoleApplication1.cpp line 1022
 at invoke_main in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl line 79
 at __scrt_common_main_seh in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl line 288
 at __scrt_common_main in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl line 331
 at mainCRTStartup in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp line 17
 at BaseThreadInitThunk
 at RtlUserThreadStart


Generic Warning: In vtkOpenGLState.cxx, line 525
Error glBindFramebuffer1 OpenGL errors detected
  0 : (1286) Invalid framebuffer operation

 with stack trace of
 at vtksys::Encoding::CommandLineArguments::CommandLineArguments
 at vtksys::Encoding::CommandLineArguments::CommandLineArguments
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at CallWindowProcW
 at CallWindowProcW
 at wglSwapBuffers
 at CallWindowProcW
 at WindowFromPoint
 at CallWindowProcA
 at vtkGenericRenderWindowInteractor::TimerEventResetsTimerOn
 at vtkGenericRenderWindowInteractor::TimerEventResetsTimerOn
 at CallWindowProcW
 at EnumChildWindows
 at IsIconic
 at KiUserCallbackDispatcher
 at NtUserDispatchMessage
 at DispatchMessageW
 at vtkGenericRenderWindowInteractor::TimerEventResetsTimerOn
 at vtkImageSliceMapper::SetCroppingRegion
 at main in C:\Users\dell\source\repos\ConsoleApplication1\ConsoleApplication1.cpp line 1022
 at invoke_main in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl line 79
 at __scrt_common_main_seh in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl line 288
 at __scrt_common_main in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl line 331
 at mainCRTStartup in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp line 17
 at BaseThreadInitThunk
 at RtlUserThreadStart


Generic Warning: In vtkOpenGLState.cxx, line 709
Error glDepthMask1 OpenGL errors detected
  0 : (1286) Invalid framebuffer operation

 with stack trace of
 at vtksys::Encoding::CommandLineArguments::CommandLineArguments
 at vtksys::Encoding::CommandLineArguments::CommandLineArguments
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at CallWindowProcW
 at CallWindowProcW
 at wglSwapBuffers
 at CallWindowProcW
 at WindowFromPoint
 at CallWindowProcA
 at vtkGenericRenderWindowInteractor::TimerEventResetsTimerOn
 at vtkGenericRenderWindowInteractor::TimerEventResetsTimerOn
 at CallWindowProcW
 at EnumChildWindows
 at IsIconic
 at KiUserCallbackDispatcher
 at NtUserDispatchMessage
 at DispatchMessageW
 at vtkGenericRenderWindowInteractor::TimerEventResetsTimerOn
 at vtkImageSliceMapper::SetCroppingRegion
 at main in C:\Users\dell\source\repos\ConsoleApplication1\ConsoleApplication1.cpp line 1022
 at invoke_main in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl line 79
 at __scrt_common_main_seh in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl line 288
 at __scrt_common_main in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl line 331
 at mainCRTStartup in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp line 17
 at BaseThreadInitThunk
 at RtlUserThreadStart


Generic Warning: In vtkOpenGLState.cxx, line 709
Error glDepthMask1 OpenGL errors detected
  0 : (1286) Invalid framebuffer operation

 with stack trace of
 at vtksys::Encoding::CommandLineArguments::CommandLineArguments
 at vtksys::Encoding::CommandLineArguments::CommandLineArguments
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkImageSliceMapper::SetCroppingRegion
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at vtkRenderPassCollection::~vtkRenderPassCollection
 at CallWindowProcW
 at CallWindowProcW
 at wglSwapBuffers
 at CallWindowProcW
 at WindowFromPoint
 at CallWindowProcA
 at vtkGenericRenderWindowInteractor::TimerEventResetsTimerOn
 at vtkGenericRenderWindowInteractor::TimerEventResetsTimerOn
 at CallWindowProcW
 at EnumChildWindows
 at IsIconic
 at KiUserCallbackDispatcher
 at NtUserDispatchMessage
 at DispatchMessageW
 at vtkGenericRenderWindowInteractor::TimerEventResetsTimerOn
 at vtkImageSliceMapper::SetCroppingRegion
 at main in C:\Users\dell\source\repos\ConsoleApplication1\ConsoleApplication1.cpp line 1022
 at invoke_main in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl line 79
 at __scrt_common_main_seh in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl line 288
 at __scrt_common_main in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl line 331
 at mainCRTStartup in D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp line 17
 at BaseThreadInitThunk
 at RtlUserThreadStart


Missing an example with mouse interaction

It would be great to have an example demonstrating the use of the mouse interaction functions (glusWindowSetMouseFunc, glusWindowSetMouseWheelFunc, glusWindowSetMouseMoveFunc). Typically, a model viewer with a mouse-based free-look.

Build failed with CMake on Linux

Commands:

git clone https://github.com/McNopper/OpenGL.git
cd OpenGL
git submodule update --init --recursive
cmake .
make

System:

  • Ubuntu 16.04
  • CMake 3.12.0

Output:

CMakeFiles/Example01.dir/src/main.c.o: In function `init':
main.c:(.text+0x19): undefined reference to `glClearColor'
CMakeFiles/Example01.dir/src/main.c.o: In function `reshape':
main.c:(.text+0x47): undefined reference to `glViewport'
CMakeFiles/Example01.dir/src/main.c.o: In function `update':
main.c:(.text+0x61): undefined reference to `glClear'
../lib/libGLUS.a(glus_window_glfw.c.o): In function `glusWindowGetElapsedTime':
glus_window_glfw.c:(.text+0xb9): undefined reference to `glfwGetTime'
../lib/libGLUS.a(glus_window_glfw.c.o): In function `_glusWindowInternalClose':
glus_window_glfw.c:(.text+0x199): undefined reference to `glfwSetWindowShouldClose'
../lib/libGLUS.a(glus_window_glfw.c.o): In function `_glusWindowInternalKey':
glus_window_glfw.c:(.text+0x1d6): undefined reference to `glfwSetWindowShouldClose'
../lib/libGLUS.a(glus_window_glfw.c.o): In function `glusWindowDestroy':
glus_window_glfw.c:(.text+0x3f8): undefined reference to `glfwMakeContextCurrent'
glus_window_glfw.c:(.text+0x407): undefined reference to `glfwDestroyWindow'
glus_window_glfw.c:(.text+0x417): undefined reference to `glfwTerminate'
../lib/libGLUS.a(glus_window_glfw.c.o): In function `glusWindowCreate':
glus_window_glfw.c:(.text+0x4a8): undefined reference to `glfwInit'
glus_window_glfw.c:(.text+0x4e0): undefined reference to `glfwWindowHint'
glus_window_glfw.c:(.text+0x52a): undefined reference to `glfwTerminate'
glus_window_glfw.c:(.text+0x57b): undefined reference to `glfwWindowHint'
glus_window_glfw.c:(.text+0x598): undefined reference to `glfwTerminate'
glus_window_glfw.c:(.text+0x5e9): undefined reference to `glfwWindowHint'
glus_window_glfw.c:(.text+0x606): undefined reference to `glfwTerminate'
glus_window_glfw.c:(.text+0x657): undefined reference to `glfwWindowHint'
glus_window_glfw.c:(.text+0x674): undefined reference to `glfwTerminate'
glus_window_glfw.c:(.text+0x6c5): undefined reference to `glfwWindowHint'
glus_window_glfw.c:(.text+0x6e2): undefined reference to `glfwTerminate'
glus_window_glfw.c:(.text+0x733): undefined reference to `glfwWindowHint'
glus_window_glfw.c:(.text+0x750): undefined reference to `glfwTerminate'
glus_window_glfw.c:(.text+0x7a1): undefined reference to `glfwWindowHint'
glus_window_glfw.c:(.text+0x7be): undefined reference to `glfwTerminate'
glus_window_glfw.c:(.text+0x834): undefined reference to `glfwTerminate'
glus_window_glfw.c:(.text+0x887): undefined reference to `glfwTerminate'
glus_window_glfw.c:(.text+0x8dd): undefined reference to `glfwTerminate'
glus_window_glfw.c:(.text+0x918): undefined reference to `glfwTerminate'
glus_window_glfw.c:(.text+0x945): undefined reference to `glfwWindowHint'
glus_window_glfw.c:(.text+0x954): undefined reference to `glfwWindowHint'
glus_window_glfw.c:(.text+0x9ce): undefined reference to `glfwWindowHint'
glus_window_glfw.c:(.text+0x9dc): undefined reference to `glfwTerminate'
glus_window_glfw.c:(.text+0xa21): undefined reference to `glfwWindowHint'
glus_window_glfw.c:(.text+0xa2f): undefined reference to `glfwTerminate'
glus_window_glfw.c:(.text+0xa80): undefined reference to `glfwWindowHint'
glus_window_glfw.c:(.text+0xa8a): undefined reference to `glfwTerminate'
glus_window_glfw.c:(.text+0xae0): undefined reference to `glfwTerminate'
glus_window_glfw.c:(.text+0xb34): undefined reference to `glfwWindowHint'
glus_window_glfw.c:(.text+0xb3b): undefined reference to `glfwTerminate'
glus_window_glfw.c:(.text+0xb87): undefined reference to `glfwTerminate'
glus_window_glfw.c:(.text+0xbc7): undefined reference to `glfwWindowHint'
glus_window_glfw.c:(.text+0xbfe): undefined reference to `glfwWindowHint'
glus_window_glfw.c:(.text+0xc20): undefined reference to `glfwWindowHint'
glus_window_glfw.c:(.text+0xc27): undefined reference to `glfwTerminate'
glus_window_glfw.c:(.text+0xc6d): undefined reference to `glfwGetPrimaryMonitor'
glus_window_glfw.c:(.text+0xc8e): undefined reference to `glfwCreateWindow'
glus_window_glfw.c:(.text+0xca6): undefined reference to `glfwTerminate'
glus_window_glfw.c:(.text+0xcd3): undefined reference to `glfwMakeContextCurrent'
glus_window_glfw.c:(.text+0xcd9): undefined reference to `glewExperimental'
glus_window_glfw.c:(.text+0xcdf): undefined reference to `glewInit'
glus_window_glfw.c:(.text+0xd15): undefined reference to `glGetError'
glus_window_glfw.c:(.text+0xd69): undefined reference to `glfwSetWindowSizeCallback'
glus_window_glfw.c:(.text+0xd7d): undefined reference to `glfwSetWindowCloseCallback'
glus_window_glfw.c:(.text+0xd91): undefined reference to `glfwSetKeyCallback'
glus_window_glfw.c:(.text+0xda5): undefined reference to `glfwSetMouseButtonCallback'
glus_window_glfw.c:(.text+0xdb9): undefined reference to `glfwSetScrollCallback'
glus_window_glfw.c:(.text+0xdcd): undefined reference to `glfwSetCursorPosCallback'
glus_window_glfw.c:(.text+0xde6): undefined reference to `glfwGetWindowSize'
glus_window_glfw.c:(.text+0xe10): undefined reference to `__glewDebugMessageCallback'
../lib/libGLUS.a(glus_window_glfw.c.o): In function `glusWindowLoop':
glus_window_glfw.c:(.text+0xee0): undefined reference to `glfwWindowShouldClose'
glus_window_glfw.c:(.text+0xf16): undefined reference to `glfwSetWindowShouldClose'
glus_window_glfw.c:(.text+0xf25): undefined reference to `glfwSwapBuffers'
glus_window_glfw.c:(.text+0xf2a): undefined reference to `glfwPollEvents'
../lib/libGLUS.a(glus_window_glfw.c.o): In function `glusWindowLoopDoRecording':
glus_window_glfw.c:(.text+0xf55): undefined reference to `glfwWindowShouldClose'
glus_window_glfw.c:(.text+0xf98): undefined reference to `glfwSetWindowShouldClose'
glus_window_glfw.c:(.text+0x100d): undefined reference to `glfwSetWindowShouldClose'
glus_window_glfw.c:(.text+0x101c): undefined reference to `glfwSwapBuffers'
glus_window_glfw.c:(.text+0x1021): undefined reference to `glfwPollEvents'
../lib/libGLUS.a(glus_window_glfw.c.o): In function `glusWindowSwapInterval':
glus_window_glfw.c:(.text+0x1078): undefined reference to `glfwSwapInterval'
../lib/libGLUS.a(glus_window_glfw.c.o): In function `glusExtensionGetFuncAddress':
glus_window_glfw.c:(.text+0x10ab): undefined reference to `glfwGetProcAddress'
../lib/libGLUS.a(glus_log.c.o): In function `glusLogPrintError':
glus_log.c:(.text+0x1e5): undefined reference to `glGetError'
../lib/libGLUS.a(glus_math.c.o): In function `glusMathLengthf':
glus_math.c:(.text+0x159): undefined reference to `sqrtf'
../lib/libGLUS.a(glus_screenshot.c.o): In function `glusScreenshotUseTga':
glus_screenshot.c:(.text+0x7b): undefined reference to `__glewBindFramebuffer'
glus_screenshot.c:(.text+0x8c): undefined reference to `glFlush'
glus_screenshot.c:(.text+0x9b): undefined reference to `glPixelStorei'
glus_screenshot.c:(.text+0xaa): undefined reference to `glPixelStorei'
glus_screenshot.c:(.text+0xe5): undefined reference to `glReadPixels'
../lib/libGLUS.a(glus_version.c.o): In function `glusVersionIsSupported':
glus_version.c:(.text+0x14): undefined reference to `glGetString'
../lib/libGLUS.a(glus_image.c.o): In function `_glusImageGatherSamplePoints':
glus_image.c:(.text+0xc6): undefined reference to `floorf'
collect2: error: ld returned 1 exit status
Example01/CMakeFiles/Example01.dir/build.make:84: recipe for target 'build/Example01' failed
make[2]: *** [build/Example01] Error 1
CMakeFiles/Makefile2:218: recipe for target 'Example01/CMakeFiles/Example01.dir/all' failed
make[1]: *** [Example01/CMakeFiles/Example01.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.