22 #ifndef BACKENDS_GRAPHICS_OPENGL_PIPELINES_LIBRETRO_TYPES_H 23 #define BACKENDS_GRAPHICS_OPENGL_PIPELINES_LIBRETRO_TYPES_H 25 #include "graphics/opengl/system_headers.h" 26 #include "backends/graphics/opengl/texture.h" 29 #include "common/str.h" 30 #include "common/array.h" 31 #include "common/fs.h" 39 kFilteringModeUnspecified,
40 kFilteringModeNearest,
45 ShaderTexture() : id(), fileName(), filteringMode(kFilteringModeUnspecified) {}
47 : id(i), fileName(fN), filteringMode(fM), wrapMode(wM) {}
51 FilteringMode filteringMode;
62 inline void applyScale(
const ScaleType type,
63 const float source,
const float viewport,
64 const float scaleFloat,
const uint scaleUint,
67 case kScaleTypeSource:
68 *output = source * scaleFloat;
71 case kScaleTypeViewport:
72 *output = viewport * scaleFloat;
75 case kScaleTypeAbsolute:
89 FilteringMode filteringMode;
107 void applyScale(
const float sourceW,
const float sourceH,
108 const float viewportW,
const float viewportH,
109 float *outputW,
float *outputH)
const {
110 OpenGL::LibRetro::applyScale(scaleTypeX, sourceW, viewportW, scaleXFloat, scaleXUint, outputW);
111 OpenGL::LibRetro::applyScale(scaleTypeY, sourceH, viewportH, scaleYFloat, scaleYUint, outputH);
120 TextureArray textures;
125 UniformsMap parameters;
130 #endif // !USE_FORCED_GLES
Definition: archive.h:141
Definition: renderbuffer.h:27