#include <stdbool.h>
#include <GL/glew.h>
Go to the source code of this file.
Data Structures | |
struct | fp32_colour |
State structure for colour module. More... |
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) |
Perform colouring from a texture to the window. | |
void | fp32_colour_clear (struct fp32_colour *s, int width, int height) |
Variables | |
const char * | fp32_colour_vert |
Source from fp32_colour_vert.glsl . | |
const char * | fp32_colour_frag |
Source from fp32_colour_frag.glsl . | |
const char * | fp32_colour2_vert |
Source from fp32_colour2_vert.glsl . | |
const char * | fp32_colour2_frag |
Source from fp32_colour2_frag.glsl . |
struct fp32_colour |
State structure for colour module.
Definition at line 14 of file fp32_colour.h.
void fp32_colour_begin | ( | struct fp32_colour * | s, |
GLuint | rgb_tex | ||
) |
Initialize.
s | The fp32_colour state. |
rgb_tex | The 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().
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().
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 | ||
) |
Perform colouring from a texture to the window.
s | The fp32_colour state. |
win_width | The window width. |
win_height | The window height. |
width | The image width. |
height | The image height. |
update | Whether to update uncalculated pixels or discard them. |
update2 | Whether to use small slice deltas. |
errs | Whether to highlight glitches or try to mask them. |
thickness | The boundary colouring thickness. |
slice | The slicing level. |
slice_n | The current slice index. |
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.
s | The 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().
const char* fp32_colour2_frag |
Source from fp32_colour2_frag.glsl
.
Referenced by fp32_colour_begin().
const char* fp32_colour2_vert |
Source from fp32_colour2_vert.glsl
.
Referenced by fp32_colour_begin().
const char* fp32_colour_frag |
Source from fp32_colour_frag.glsl
.
Referenced by fp32_colour_begin().
const char* fp32_colour_vert |
Source from fp32_colour_vert.glsl
.
Referenced by fp32_colour_begin().