Fix some warnings
This commit is contained in:
parent
0255541b44
commit
951642ecb4
|
|
@ -16,16 +16,15 @@ namespace Nz::GL
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
using EGLContextBase::EGLContextBase;
|
using EGLContextBase::EGLContextBase;
|
||||||
EGLContextX11(const EGLContextX11&) = default;
|
EGLContextX11(const EGLContextX11&) = delete;
|
||||||
EGLContextX11(EGLContextX11&&) = default;
|
EGLContextX11(EGLContextX11&&) = delete;
|
||||||
~EGLContextX11() = default;
|
~EGLContextX11() = default;
|
||||||
|
|
||||||
bool Create(const ContextParams& params, const EGLContextBase* shareContext = nullptr) override;
|
|
||||||
bool Create(const ContextParams& params, WindowHandle window, const EGLContextBase* shareContext = nullptr) override;
|
bool Create(const ContextParams& params, WindowHandle window, const EGLContextBase* shareContext = nullptr) override;
|
||||||
void Destroy() override;
|
void Destroy() override;
|
||||||
|
|
||||||
EGLContextX11& operator=(const EGLContextX11&) = default;
|
EGLContextX11& operator=(const EGLContextX11&) = delete;
|
||||||
EGLContextX11& operator=(EGLContextX11&&) = default;
|
EGLContextX11& operator=(EGLContextX11&&) = delete;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
::Display* m_xdisplay = nullptr;
|
::Display* m_xdisplay = nullptr;
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ namespace Nz
|
||||||
|
|
||||||
VertexDeclaration(VertexInputRate inputRate, std::initializer_list<ComponentEntry> components);
|
VertexDeclaration(VertexInputRate inputRate, std::initializer_list<ComponentEntry> components);
|
||||||
VertexDeclaration(const VertexDeclaration&) = delete;
|
VertexDeclaration(const VertexDeclaration&) = delete;
|
||||||
VertexDeclaration(VertexDeclaration&&) = default;
|
VertexDeclaration(VertexDeclaration&&) = delete;
|
||||||
~VertexDeclaration() = default;
|
~VertexDeclaration() = default;
|
||||||
|
|
||||||
inline const Component* FindComponent(VertexComponent vertexComponent, std::size_t componentIndex) const;
|
inline const Component* FindComponent(VertexComponent vertexComponent, std::size_t componentIndex) const;
|
||||||
|
|
@ -52,7 +52,7 @@ namespace Nz
|
||||||
template<typename T> bool HasComponentOfType(VertexComponent vertexComponent, std::size_t componentIndex = 0) const;
|
template<typename T> bool HasComponentOfType(VertexComponent vertexComponent, std::size_t componentIndex = 0) const;
|
||||||
|
|
||||||
VertexDeclaration& operator=(const VertexDeclaration&) = delete;
|
VertexDeclaration& operator=(const VertexDeclaration&) = delete;
|
||||||
VertexDeclaration& operator=(VertexDeclaration&&) = default;
|
VertexDeclaration& operator=(VertexDeclaration&&) = delete;
|
||||||
|
|
||||||
static inline const VertexDeclarationRef& Get(VertexLayout layout);
|
static inline const VertexDeclarationRef& Get(VertexLayout layout);
|
||||||
static bool IsTypeSupported(ComponentType type);
|
static bool IsTypeSupported(ComponentType type);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue