API Documentation
Loading...
Searching...
No Matches
GraphicsDevice.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include "Base/Headers/UUID.h"
5namespace NDEVR
6{
7 /**--------------------------------------------------------------------------------------------------
8 \brief A physical or virtual device used with the NDEVR Rendering Engine. A device contains System
9 specific limitations for rendering. Only one device is used for all rendering operations.
10 **/
12 {
13 public:
14 virtual ~GraphicsDevice() { }
15 virtual UUID id() const = 0;
16 virtual bool isValid() const = 0;
17 virtual uint04 maxSupportedSamples() const = 0;
18 virtual void init() = 0;
19 virtual const void* initLockPtr() const = 0;
20 virtual bool supportsMultiThreading() const { return false; }
21 virtual bool isInitialized() const = 0;
22 virtual bool isReady() const { return true; };
23 virtual bool updateFromLookup() const { return true; };
24 virtual bool canServiceCaptureRequests() const{ return false; };
27 public:
29 };
30}
#define NDEVR_GRAPHICS_API
Definition DLLInfo.h:56
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:320
A physical or virtual device used with the NDEVR Rendering Engine. A device contains System specific ...
Definition GraphicsDevice.h:12
virtual bool updateFromLookup() const
Definition GraphicsDevice.h:23
virtual bool supportsMultiThreading() const
Definition GraphicsDevice.h:20
static void SetDefaultGraphicsDevice(const DynamicPointer< GraphicsDevice > &device)
static const DynamicPointer< GraphicsDevice > & DefaultGraphicsDevice()
virtual bool isReady() const
Definition GraphicsDevice.h:22
virtual bool canServiceCaptureRequests() const
Definition GraphicsDevice.h:24
virtual ~GraphicsDevice()
Definition GraphicsDevice.h:14
virtual UUID id() const =0
virtual bool isValid() const =0
virtual bool isInitialized() const =0
virtual uint04 maxSupportedSamples() const =0
virtual const void * initLockPtr() const =0
virtual void init()=0
static DynamicPointer< GraphicsDevice > s_default_graphics_device
Definition GraphicsDevice.h:28
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:60
Definition ACIColor.h:37
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96