Experiment in graphics programming, C++, OpenGL, simulation techniques.
| {#} | Time | Hash | Subject | Author | # | (+) | (-) | GPG? |
|---|---|---|---|---|---|---|---|---|
| 7 | 03 Sep 2023 16:01 | 5f524c5 | OpenGL render abstractions | Josh Stockin | 1 | 20 | 0 | G |
| 1 | #include <GL/gl3w.h> |
| 2 | |
| 3 | #include "GLRenderObject.hpp" |
| 4 | #include "GLRenderObjectBackground.hpp" |
| 5 | #include "GLProgram.hpp" |
| 6 | |
| 7 | |
| 8 | GLRenderObjectBackground::GLRenderObjectBackground(): |
| 9 | GLRenderObject::GLRenderObject("Background", 0) |
| 10 | { |
| 11 | |
| 12 | } |
| 13 | |
| 14 | void GLRenderObjectBackground::Render() |
| 15 | { |
| 16 | if (!m_renderEnabled) { return; } |
| 17 | |
| 18 | GLTargetSetup(); |
| 19 | glDrawArrays(GL_TRIANGLES, 0, 6); |
| 20 | } |
| 21 |