API Documentation
Loading...
Searching...
No Matches
GLESGraphicsDevice.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
4#include <QOpenGLContext>
5#include <QOpenGLExtraFunctions>
6#include <QOpenGLFunctions>
7class QSurface;
8class QOpenGLDebugLogger;
9namespace NDEVR
10{
16 class GLESGraphicsDevice : public GraphicsDevice, public QOpenGLExtraFunctions
17 {
18 public:
21 virtual UUID id() const override { return m_id; };
22 virtual bool isValid() const override
23 {
24 return true;
25 }
26 QOpenGLContext* context()
27 {
28 return m_context;
29 }
30 virtual uint04 maxSupportedSamples() const override
31 {
32 return 1U;
33 }
34 virtual void init() override
35 {
36
37 }
38
39 virtual bool isReady() const override
40 {
41 return m_is_init;
42
43 };
44 virtual bool isInitialized() const override
45 {
46 return true;
47 }
48 virtual bool updateFromLookup() const override
49 {
50 return false;
51 }
52 virtual const void* initLockPtr() const override
53 {
54 return this;
55 }
56 bool makeCurrent();
57 bool makeCurrent(QSurface* surface);
59 protected:
60 void initialize();
62 QSurface* m_surface = nullptr;
63 QOpenGLContext* m_context = nullptr;
64 QOpenGLDebugLogger* m_logger = nullptr;
66 bool m_is_init = false;
67 protected:
69
70 };
71}
Definition Pointer.hpp:303
Definition GLESGraphicsDevice.h:17
void initialize()
Definition GLESGraphicsDevice.cpp:63
virtual ~GLESGraphicsDevice()
Definition GLESGraphicsDevice.h:20
QOpenGLContext * context()
Definition GLESGraphicsDevice.h:26
virtual UUID id() const override
Definition GLESGraphicsDevice.h:21
virtual void init() override
Definition GLESGraphicsDevice.h:34
QSurface * m_surface
Definition GLESGraphicsDevice.h:62
GLESGraphicsDevice()
Definition GLESGraphicsDevice.cpp:22
bool makeCurrent()
Definition GLESGraphicsDevice.cpp:29
virtual const void * initLockPtr() const override
Definition GLESGraphicsDevice.h:52
QOpenGLDebugLogger * m_logger
Definition GLESGraphicsDevice.h:64
UUID m_id
Definition GLESGraphicsDevice.h:65
virtual bool isReady() const override
Definition GLESGraphicsDevice.h:39
bool m_is_init
Definition GLESGraphicsDevice.h:66
GLCapabilities m_capabilities
Definition GLESGraphicsDevice.h:61
virtual bool isValid() const override
Definition GLESGraphicsDevice.h:22
virtual uint04 maxSupportedSamples() const override
Definition GLESGraphicsDevice.h:30
static DynamicPointer< GraphicsDevice > s_default_graphics_device
Definition GLESGraphicsDevice.h:68
static const DynamicPointer< GLESGraphicsDevice > & DefaultGLESDevice()
Definition GLESGraphicsDevice.cpp:55
QOpenGLContext * m_context
Definition GLESGraphicsDevice.h:63
virtual bool updateFromLookup() const override
Definition GLESGraphicsDevice.h:48
virtual bool isInitialized() const override
Definition GLESGraphicsDevice.h:44
Definition GraphicsDevice.h: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
Definition GLESGraphicsDevice.h:12
GLint uniform_buffer_align_size
Definition GLESGraphicsDevice.h:13
GLint uniform_buffer_min_size
Definition GLESGraphicsDevice.h:14