mightymandel v16

GPU-based Mandelbrot set explorer

fp32_colour.c File Reference

(v16)

#include "fp32_colour.h"
#include "shader.h"
#include "logging.h"
#include "texture.h"
+ Include dependency graph for fp32_colour.c:

Go to the source code of this file.

Functions

void fp32_colour_begin (struct fp32_colour *s, GLuint rgb_tex)
 Initialize.
void fp32_colour_end (struct fp32_colour *s)
 Cleanup.
void fp32_colour_do (struct fp32_colour *s, int win_width, int win_height, int width, int height, bool update, bool update2, GLuint errs, float thickness, int slice, int slice_n)
 Colour raw data to RGB.
void fp32_colour_clear (struct fp32_colour *s, int width, int height)

Function Documentation

void fp32_colour_begin ( struct fp32_colour s,
GLuint  rgb_tex 
)

Initialize.

Parameters
sThe fp32_colour state.
rgb_texThe RGB colour texture.

Definition at line 10 of file fp32_colour.c.

References compile_program(), D, fp32_colour::errs, fp32_colour::fbo, fp32_colour2_frag, fp32_colour2_vert, fp32_colour_frag, fp32_colour_vert, fp32_colour::ida0, fp32_colour::program, fp32_colour::program2, fp32_colour::pt, fp32_colour::pt2, fp32_colour::rgb2, fp32_colour::slice_coords, fp32_colour::slice_number, fp32_colour::slicing, TEX_RAW, TEX_RGB, TEX_SLICE_COORDS, TEX_SLICE_NUMBER, fp32_colour::thickness, fp32_colour::update, fp32_colour::update2, fp32_colour::vao, fp32_colour::vao2, and fp32_colour::vbo.

Referenced by render_begin().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void fp32_colour_clear ( struct fp32_colour s,
int  width,
int  height 
)

Definition at line 99 of file fp32_colour.c.

References D, and fp32_colour::fbo.

Referenced by render_start().

+ Here is the caller graph for this function:

void fp32_colour_do ( struct fp32_colour s,
int  win_width,
int  win_height,
int  width,
int  height,
bool  update,
bool  update2,
GLuint  errs,
float  thickness,
int  slice,
int  slice_n 
)

Colour raw data to RGB.

Perform colouring from a texture to the window.

OpenGL state changes: glBindFramebuffer, glActiveTexture

Definition at line 72 of file fp32_colour.c.

References D, fp32_colour::errs, fp32_colour::fbo, fp32_colour::program, fp32_colour::program2, fp32_colour::slicing, TEX_RGB, fp32_colour::thickness, fp32_colour::update, fp32_colour::update2, fp32_colour::vao, and fp32_colour::vao2.

void fp32_colour_end ( struct fp32_colour s)

Cleanup.

Parameters
sThe fp32_colour state.

Definition at line 58 of file fp32_colour.c.

References D, fp32_colour::fbo, fp32_colour::program, fp32_colour::program2, fp32_colour::vao, fp32_colour::vao2, and fp32_colour::vbo.

Referenced by render_end().

+ Here is the caller graph for this function: