This class can be simply injected into an existing OpenGL code to apply some post processing effects on the rendered result. Simply include the hehpp file and create an instance of GLInjection class. Then init the object somewhere where the scene is initialized so that the init function is called only once. Add the call to render function right before the swapping of the buffers or other kind of frame buffer presentation mechanism. For example, right before the call of glfwSwapBuffers or SDL_GL_SwapWindow. Edit the fragment shader to adjust the effects. An example with LearnOpenGL tutorial is placing the init here and render here.
-
Notifications
You must be signed in to change notification settings - Fork 0
This header-only hpp library can be used to adjust the rendered result of an existing OpenGL code without the need to inspect the code too much.
License
ichlubna/OpenGLInjector
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
This header-only hpp library can be used to adjust the rendered result of an existing OpenGL code without the need to inspect the code too much.