mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 00:42:57 +00:00
62ddc85d17
Due to the plethora of historical baggage from different eras getting
confusing, I decided to simplify and unify the struct organization and
naming scheme.
Structs that got renamed:
1. fbodst -> ra_fbo (and moved to gpu/context.h)
2. fbotex -> removed (redundant after 2af2fa7a
)
3. fbosurface -> surface
4. img_tex -> image
In addition to these structs being renamed, all of the names have been
made consistent. The new scheme is as follows:
struct image img;
struct ra_tex *tex;
struct ra_fbo fbo;
This also affects derived names, e.g. indirect_fbo -> indirect_tex.
Notably also, finish_pass_fbo -> finish_pass_tex and finish_pass_direct
-> finish_pass_fbo.
The new equivalent of fbotex_change() is called ra_tex_resize().
This commit (should) contain no logic changes, just renaming a bunch of
crap.
26 lines
920 B
C
26 lines
920 B
C
#ifndef MPLAYER_GL_OSD_H
|
|
#define MPLAYER_GL_OSD_H
|
|
|
|
#include <stdbool.h>
|
|
#include <inttypes.h>
|
|
|
|
#include "utils.h"
|
|
#include "shader_cache.h"
|
|
#include "sub/osd.h"
|
|
|
|
struct mpgl_osd *mpgl_osd_init(struct ra *ra, struct mp_log *log,
|
|
struct osd_state *osd);
|
|
void mpgl_osd_destroy(struct mpgl_osd *ctx);
|
|
|
|
void mpgl_osd_generate(struct mpgl_osd *ctx, struct mp_osd_res res, double pts,
|
|
int stereo_mode, int draw_flags);
|
|
void mpgl_osd_resize(struct mpgl_osd *ctx, struct mp_osd_res res, int stereo_mode);
|
|
bool mpgl_osd_draw_prepare(struct mpgl_osd *ctx, int index,
|
|
struct gl_shader_cache *sc);
|
|
void mpgl_osd_draw_finish(struct mpgl_osd *ctx, int index,
|
|
struct gl_shader_cache *sc, struct ra_fbo fbo);
|
|
bool mpgl_osd_check_change(struct mpgl_osd *ctx, struct mp_osd_res *res,
|
|
double pts);
|
|
|
|
#endif
|