Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
dxweaver.h
Go to the documentation of this file.
1
10#pragma once
11#include "dx11weaver.h"
12
13#ifdef WIN32
14# ifdef COMPILING_DLL_SimulatedRealityDirectX
15# define DIMENCOSR_API __declspec(dllexport)
16# else
17# define DIMENCOSR_API __declspec(dllimport)
18# endif
19#else
20# define DIMENCOSR_API
21#endif
22
23#if defined(__GNUC__) || defined(__GNUG__)
24#define DEPRECATED __attribute__((deprecated))
25#elif defined(_MSC_VER)
26#define DEPRECATED __declspec(deprecated)
27#else
28#define DEPRECATED
29#endif
30
37namespace SR
38{
39 //DXWeaver is deprecated. Please use DX11Weaver instead.
41 {
42 public:
43 DXWeaver(SR::SRContext& context, ID3D11Device* device, ID3D11DeviceContext* deviceContext, unsigned width, unsigned height);
44
46
58 static DXWeaver* create(SR::SRContext& context, ID3D11Device* device, ID3D11DeviceContext* deviceContext, unsigned int width, unsigned int height);
59
60 ID3D11RenderTargetView* getFrameBuffer();
61 bool canWeave();
62 void weave(unsigned width, unsigned height);
63 };
64}
65
66#undef DIMENCOSR_API
Definition: dx11weaver.h:125
Definition: dxweaver.h:41
void weave(unsigned width, unsigned height)
ID3D11RenderTargetView * getFrameBuffer()
DXWeaver(SR::SRContext &context, ID3D11Device *device, ID3D11DeviceContext *deviceContext, unsigned width, unsigned height)
static DXWeaver * create(SR::SRContext &context, ID3D11Device *device, ID3D11DeviceContext *deviceContext, unsigned int width, unsigned int height)
Constructs a class to be used for weaving an input image of a certain size.
bool canWeave()
Maintains WorldObject and Sense objects during the application lifetime.
Definition: srcontext.h:80
#define DIMENCOSR_API
Definition: dxweaver.h:20
#define DEPRECATED
Definition: dxweaver.h:28
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:25