Index

zydeco / a4d3636

Experiment in graphics programming, C++, OpenGL, simulation techniques.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
916 Nov 2023 11:11a4d3636Fractal ViewerJosh Stockin1200G

Blob @ zydeco / src / render / objects / GLRenderObjectFractal.cpp

text/plain365 bytesdownload raw
1#include <GL/gl3w.h>
2
3#include "GLRenderObject.hpp"
4#include "GLRenderObjectFractal.hpp"
5#include "GLProgram.hpp"
6
7
8GLRenderObjectFractal::GLRenderObjectFractal():
9 GLRenderObject::GLRenderObject("FractalDisplay", 0)
10{
11
12}
13
14void GLRenderObjectFractal::Render()
15{
16 if (!m_renderEnabled) { return; }
17
18 GLTargetSetup();
19 glDrawArrays(GL_TRIANGLES, 0, 6);
20}
21