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