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{
8 {
9 public:
10 virtual ~GraphicsDevice() { /*lib_assert(false, "Why killing device?");*/ }
11 virtual UUID id() const = 0;
12 virtual bool isValid() const = 0;
13 virtual uint04 maxSupportedSamples() const = 0;
14 virtual void init() = 0;
15 virtual const void* initLockPtr() const = 0;
16 virtual bool supportsMultiThreading() const { return false; }
17 virtual bool isInitialized() const = 0;
18 virtual bool isReady() const { return true; };
19 virtual bool updateFromLookup() const { return true; };
20
21 virtual bool canServiceCaptureRequests() const{ return false; };
24 public:
26 };
27}
#define NDEVR_GRAPHICS_API
Definition DLLInfo.h:74
Definition Pointer.hpp:303
Definition GraphicsDevice.h:8
virtual bool updateFromLookup() const
Definition GraphicsDevice.h:19
virtual bool supportsMultiThreading() const
Definition GraphicsDevice.h:16
static NDEVR_GRAPHICS_API void SetDefaultGraphicsDevice(const DynamicPointer< GraphicsDevice > &device)
Definition GraphicsSession.cpp:9
virtual bool isReady() const
Definition GraphicsDevice.h:18
virtual bool canServiceCaptureRequests() const
Definition GraphicsDevice.h:21
virtual ~GraphicsDevice()
Definition GraphicsDevice.h:10
static DynamicPointer< GraphicsDevice > s_default_graphics_device
Definition GraphicsDevice.h:25
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 NDEVR_GRAPHICS_API const DynamicPointer< GraphicsDevice > & DefaultGraphicsDevice()
Definition GraphicsSession.cpp:8
Definition UUID.h:66
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:120