LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
dxweaver.h
Go to the documentation of this file.
1
5#pragma once
6#include "dx11weaver.h"
7
8#ifdef WIN32
9# ifdef COMPILING_DLL_SimulatedRealityDirectX
10# define DIMENCOSR_API __declspec(dllexport)
11# else
12# define DIMENCOSR_API __declspec(dllimport)
13# endif
14#else
15# define DIMENCOSR_API
16#endif
17
18#if defined(__GNUC__) || defined(__GNUG__)
19#define DEPRECATED __attribute__((deprecated))
20#elif defined(_MSC_VER)
21#define DEPRECATED __declspec(deprecated)
22#else
23#define DEPRECATED
24#endif
25
32namespace SR
33{
34 //DXWeaver is deprecated. Please use DX11Weaver instead.
36 {
37 public:
38 DXWeaver(SR::SRContext& context, ID3D11Device* device, ID3D11DeviceContext* deviceContext, unsigned width, unsigned height);
39
41
53 static DXWeaver* create(SR::SRContext& context, ID3D11Device* device, ID3D11DeviceContext* deviceContext, unsigned int width, unsigned int height);
54
55 ID3D11RenderTargetView* getFrameBuffer();
56 bool canWeave();
57 void weave(unsigned width, unsigned height);
58 };
59}
60
61#undef DIMENCOSR_API
Definition: dx11weaver.h:178
Definition: dxweaver.h:36
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:75
#define DIMENCOSR_API
Definition: dxweaver.h:15
#define DEPRECATED
Definition: dxweaver.h:23
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:20