gl

# /cmap

gl.h
gl_cmap.h
gl_cmap_gen.h
gl_font.h
fosphor_gl_id
GL_ID_TEX_WATERFALL
GL_ID_TEX_HISTOGRAM
GL_ID_VBO_SPECTRUM
fosphor_gl_cmap_mode
GL_CMAP_MODE_NEAREST
GL_CMAP_MODE_BILINEAR
GL_CMAP_MODE_BICUBIC
glf_align
GLF_LEFT
GLF_RIGHT
GLF_TOP
GLF_BOTTOM
GLF_CENTER
int(* typedef int(* gl_cmap_gen_func_t) (uint32_t *rgba, int N, void *arg) )(uint32_t *rgba, int N, void *arg) gl_cmap_gen_func_t
int int fosphor_gl_init (struct fosphor *self) fosphor_gl_init struct fosphor * self
void void fosphor_gl_release (struct fosphor *self) fosphor_gl_release struct fosphor * self
GLuint GLuint fosphor_gl_get_shared_id (struct fosphor *self, enum fosphor_gl_id id) fosphor_gl_get_shared_id struct fosphor * self enum fosphor_gl_id id
void void fosphor_gl_refresh (struct fosphor *self) fosphor_gl_refresh struct fosphor * self
void void fosphor_gl_draw (struct fosphor *self, struct fosphor_render *render) fosphor_gl_draw struct fosphor * self struct fosphor_render * render
struct fosphor_gl_cmap_ctx * struct fosphor_gl_cmap_ctx* fosphor_gl_cmap_init (void) fosphor_gl_cmap_init void
void void fosphor_gl_cmap_release (struct fosphor_gl_cmap_ctx *cmap_ctx) fosphor_gl_cmap_release struct fosphor_gl_cmap_ctx * cmap_ctx
void void fosphor_gl_cmap_enable (struct fosphor_gl_cmap_ctx *cmap_ctx, GLuint tex_id, GLuint cmap_id, float scale, float offset, enum fosphor_gl_cmap_mode mode) fosphor_gl_cmap_enable struct fosphor_gl_cmap_ctx * cmap_ctx GLuint tex_id GLuint cmap_id float scale float offset enum fosphor_gl_cmap_mode mode
void void fosphor_gl_cmap_disable (void) fosphor_gl_cmap_disable void
void void fosphor_gl_cmap_draw_scale (GLuint cmap_id, float x0, float x1, float y0, float y1) fosphor_gl_cmap_draw_scale GLuint cmap_id float x0 float x1 float y0 float y1
int int fosphor_gl_cmap_generate (GLuint *cmap_id, gl_cmap_gen_func_t gfn, void *gfn_arg, int N) fosphor_gl_cmap_generate GLuint * cmap_id gl_cmap_gen_func_t gfn void * gfn_arg int N
int int fosphor_gl_cmap_histogram (uint32_t *rgba, int N, void *arg) fosphor_gl_cmap_histogram uint32_t * rgba int N void * arg
int int fosphor_gl_cmap_waterfall (uint32_t *rgba, int N, void *arg) fosphor_gl_cmap_waterfall uint32_t * rgba int N void * arg
struct gl_font * struct gl_font* glf_alloc (int height, int flags) glf_alloc int height int flags
void void glf_free (struct gl_font *glf) glf_free struct gl_font * glf
int int glf_load_face_file (struct gl_font *glf, const char *filename) glf_load_face_file struct gl_font * glf const char * filename
int int glf_load_face_mem (struct gl_font *glf, const void *data, size_t len) glf_load_face_mem struct gl_font * glf const void * data size_t len
float float glf_width_str (const struct gl_font *glf, const char *str) glf_width_str const struct gl_font * glf const char * str
void void glf_draw_str (const struct gl_font *glf, float x, enum glf_align x_align, float y, enum glf_align y_align, const char *str) glf_draw_str const struct gl_font * glf float x enum glf_align x_align float y enum glf_align y_align const char * str
void void glf_printf (const struct gl_font *glf, float x, enum glf_align x_align, float y, enum glf_align y_align, const char *fmt,...) ATTR_FORMAT(printf glf_printf const struct gl_font * glf float x enum glf_align x_align float y enum glf_align y_align const char * fmt ...
void void void void glf_begin (const struct gl_font *glf, float fg_color[3]) glf_begin const struct gl_font * glf float fg_color [3]
void void glf_end (void) glf_end void
ATTR_FORMAT
a
b
c
__attribute__((format(a,b,c)))
GLF_FLG_LCD
(1 << 0)