18# ifdef COMPILING_DLL_SimulatedRealityOpenGL
19# define DIMENCOSR_API __declspec(dllexport)
21# define DIMENCOSR_API __declspec(dllimport)
45#pragma warning(suppress: 4251)
78 [[deprecated(
"Use the canWeave(...) functions that accept parameters")]]
88 bool canWeave(
unsigned int width,
unsigned int height);
99 bool canWeave(
unsigned int width,
unsigned int height,
unsigned int xOffset,
unsigned int yOffset);
108 void weave(
unsigned int width,
unsigned int height);
119 void weave(
unsigned int width,
unsigned int height,
unsigned int xOffset,
unsigned int yOffset);
134 [[deprecated(
"use the constructor of GLWeaver directly")]]
162 [[deprecated(
"Use non-deprecated constructors")]]
class to be used to add Weaving to OpenGL based SR applications
Definition: glweaver.h:37
GLuint getFrameBuffer()
Returns the buffer that will be used to create a weaved imaged. This buffer expects a side-by-side im...
bool canWeave(unsigned int width, unsigned int height)
Used to determine if software weaving is possible for certain size and visibility to the currently bo...
void weave(unsigned int width, unsigned int height, unsigned int xOffset, unsigned int yOffset)
Can be called to render a weaved image of a certain size to the currently bound framebuffer.
bool canWeave()
Used to determine if software weaving is possible on this device.
void setInputFrameBuffer(GLuint frameBufferID, GLuint renderedTextureID)
Sets the buffer that will be used to create a weaved image.
void setWindowHandle(HWND handle)
Sets the window handle of the application window. If the weaver was created using a deprecated constr...
void weave(unsigned int width, unsigned int height)
Can be called to render a weaved image of a certain size to the currently bound framebuffer.
bool canWeave(unsigned int width, unsigned int height, unsigned int xOffset, unsigned int yOffset)
Used to determine if software weaving is possible for certain size and visibility to the currently bo...
std::unique_ptr< Impl > pimpl
Definition: glweaver.h:39
Definition: glweaver.h:122
static GLWeaver * create(SR::SRContext &context, unsigned int width, unsigned int height)
Constructs a class to be used for weaving an input image of a certain size.
~GLWeaver()
Handles proper destruction of all weaver related classes and buffers.
GLWeaver(SR::SRContext &context, unsigned int width, unsigned int height)
Constructs a class to be used for weaving an input image of a certain size.
Definition: glweaver.h:152
~PredictingGLWeaver()
Handles proper destruction of all weaver related classes and buffers.
PredictingGLWeaver(SR::SRContext &context, unsigned int width, unsigned int height)
Constructs a class to be used for weaving an input image of a certain size.
void setLatency(uint64_t latency)
Set the latency to match the expected duration of the full rendering pipeline.
PredictingGLWeaver(SR::SRContext &context, unsigned int width, unsigned int height, HWND window)
Constructs a class to be used for weaving an input image of a certain size.
void setLatencyInFrames(uint64_t latencyInFrames)
Set the latency to match the expected duration of the full rendering pipeline in number of frames....
Maintains WorldObject and Sense objects during the application lifetime.
Definition: srcontext.h:80
#define DIMENCOSR_API
Definition: glweaver.h:24
int GLsizei
Definition: glweaver.h:29
unsigned int GLuint
Definition: glweaver.h:28
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:25