1 #ifndef VVGL_GLTexToTexCopier_hpp 2 #define VVGL_GLTexToTexCopier_hpp 4 #include "VVGL_Defines.hpp" 8 #if defined(VVGL_SDK_MAC) 9 #import <TargetConditionals.h> 28 bool _copyToIOSurface =
false;
29 bool _copyAndResize =
false;
30 Size _copySize = { 320., 240. };
36 #if defined(VVGL_TARGETENV_GL3PLUS) || defined(VVGL_TARGETENV_GLES3) 37 GLBufferRef _vao =
nullptr;
38 #elif defined(VVGL_TARGETENV_GLES) 39 GLBufferRef _vbo =
nullptr;
56 virtual void prepareToBeDeleted();
59 void setCopyToIOSurface(
const bool & n);
61 bool copyToIOSurface();
63 void setCopyAndResize(
const bool & n);
67 void setCopySize(
const Size & n);
76 GLBufferRef copyToNewBuffer(
const GLBufferRef & n);
78 bool copyFromTo(
const GLBufferRef & a,
const GLBufferRef & b);
80 void sizeVariantCopy(
const GLBufferRef & a,
const GLBufferRef & b);
82 void ignoreSizeCopy(
const GLBufferRef & a,
const GLBufferRef & b);
85 void copyBlackFrameTo(
const GLBufferRef & n);
87 void copyOpaqueBlackFrameTo(
const GLBufferRef & n);
89 void copyRedFrameTo(
const GLBufferRef & n);
92 virtual void _initialize();
97 void _drawBuffer(
const GLBufferRef & inBufferRef,
const Quad<VertXYZST> & inVertexStruct);
the content is scaled to fit perfectly within the desired area- some stretching or squashing may occu...
Definition: VVGL_Geom.hpp:112
Definition: GLBuffer.hpp:13
SizingMode
Definition: VVGL_Geom.hpp:109
Subclass of GLCachedProperty that caches the location of a uniform variable in a GLSL program...
Definition: GLCachedProperty.hpp:89
Basic struct for 2D size.
Definition: VVGL_Geom.hpp:46
Subclass of GLCachedProperty that caches the location of an attribute in a GLSL program.
Definition: GLCachedProperty.hpp:66
Manages drawing in a GLContext, provides a simple interface for orthographic rendering, render-to-texture operations, and loading vert/geo/frag shaders.
Definition: GLScene.hpp:33
shared_ptr< GLTexToTexCopier > GLTexToTexCopierRef
A GLTexToTexCopierRef is a shared pointer around a GLTexToTexCopier.
Definition: VVGL_Base.hpp:54
Copies the contents of one texture-type GLBuffer to another texture-type GLBuffer, capable of basic resizing.
Definition: GLTexToTexCopier.hpp:26
GLTexToTexCopierRef CreateGLTexToTexCopierRef()
Creates and returns a GLTexToTexCopier. The scene makes a new GL context which shares the context of ...
Definition: GLTexToTexCopier.hpp:107
This struct defines a quad- it's a simple template which is expected to be passed one of the structs ...
Definition: VVGL_Geom.hpp:413
GLTexToTexCopierRef CreateGLTexToTexCopierRefUsing(const GLContextRef &inCtx)
Creates and returns a GLTexToTexCopier. The downloader uses the passed GL context to perform its GL o...
Definition: GLTexToTexCopier.hpp:112