scale_filter

This commit is contained in:
Romain Vimont
2021-02-05 15:44:31 +01:00
parent 87e3ad7756
commit f6570a7a41
8 changed files with 61 additions and 22 deletions

View File

@@ -9,11 +9,12 @@
#include "coords.h"
#include "opengl.h"
#include "scrcpy.h"
struct sc_frame_texture {
SDL_Renderer *renderer; // owned by struct screen
bool mipmaps;
enum sc_scale_filter scale_filter;
struct sc_opengl gl;
SDL_Texture *texture;
@@ -22,7 +23,8 @@ struct sc_frame_texture {
bool
sc_frame_texture_init(struct sc_frame_texture *ftex, SDL_Renderer *renderer,
bool mipmaps, struct size initial_size);
enum sc_scale_filter scale_filter,
struct size initial_size);
void
sc_frame_texture_destroy(struct sc_frame_texture *ftex);