13 #ifndef SCM_RENDER_HPP
14 #define SCM_RENDER_HPP
18 #include "util3d/glsl.h"
50 int get_blur()
const {
return blur; }
51 bool get_wire()
const {
return wire; }
59 const double *,
int,
int,
double);
64 const double *,
int,
int);
69 bool check_blur(
const double *,
const double *,
double *, GLfloat *);
71 void init_uniforms(GLuint);
89 double previous_T[16][16];
95 GLint uniform_fade_t, uniform_both_t;
96 GLint uniform_blur_T, uniform_both_T;
97 GLint uniform_blur_n, uniform_both_n;
~scm_render()
Finalize all OpenGL state.
Definition: scm-render.cpp:55
An scm_render manages the rendering of background and foreground spheres.
Definition: scm-render.hpp:39
An scm_scene encapsulates the definition of a sphere and its parameters.
Definition: scm-scene.hpp:40
An scm_sphere generates the adaptive rendered geometry of the 3D sphere.
Definition: scm-sphere.hpp:30
An scm_frame abstracts the OpenGL framebuffer object.
Definition: scm-frame.hpp:22
void set_size(int, int)
Set the size of the off-screen render targets. This entails the destruction and recreation of OpenGL ...
Definition: scm-render.cpp:66
scm_render(int, int)
Create a new render manager. Initialize the necessary OpenGL state framebuffer object state...
Definition: scm-render.cpp:43
void set_blur(int)
Set the motion blur degree. Higher degrees incur greater rendering loads. 8 is an effective value...
Definition: scm-render.cpp:78
void set_wire(bool)
Set the wireframe option.
Definition: scm-render.cpp:85
void render(scm_sphere *, scm_scene *, scm_scene *, scm_scene *, scm_scene *, const double *, const double *, int, int, double)
Render the foreground and background with optional blur and dissolve.
Definition: scm-render.cpp:105