Fix a lot of small errors/warnings
This commit is contained in:
@@ -40,7 +40,7 @@ namespace Nz::GL
|
||||
return context.glUnmapBuffer(ToOpenGL(m_target)) == GL_TRUE;
|
||||
}
|
||||
|
||||
inline GLuint Buffer::CreateHelper(OpenGLDevice& device, const Context& context)
|
||||
inline GLuint Buffer::CreateHelper(OpenGLDevice& /*device*/, const Context& context)
|
||||
{
|
||||
GLuint sampler = 0;
|
||||
context.glGenBuffers(1U, &sampler);
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace Nz::GL
|
||||
{
|
||||
class Context;
|
||||
|
||||
using GLFunction = int(*)();
|
||||
using GLFunction = void(*)(void);
|
||||
|
||||
class NAZARA_OPENGLRENDERER_API Loader
|
||||
{
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace Nz::GL
|
||||
//< TODO: Handle errors
|
||||
}
|
||||
|
||||
inline GLuint Texture::CreateHelper(OpenGLDevice& device, const Context& context)
|
||||
inline GLuint Texture::CreateHelper(OpenGLDevice& /*device*/, const Context& context)
|
||||
{
|
||||
GLuint texture = 0;
|
||||
context.glGenTextures(1U, &texture);
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
namespace Nz::GL
|
||||
{
|
||||
template<typename F>
|
||||
static VertexArray VertexArray::Build(const Context& context, F&& callback)
|
||||
VertexArray VertexArray::Build(const Context& context, F&& callback)
|
||||
{
|
||||
VertexArray vao;
|
||||
if (!vao.Create(context))
|
||||
|
||||
@@ -14,9 +14,9 @@ namespace Nz
|
||||
}
|
||||
|
||||
inline RenderBufferView::RenderBufferView(AbstractBuffer* buffer, UInt64 offset, UInt64 size) :
|
||||
m_buffer(buffer),
|
||||
m_offset(offset),
|
||||
m_size(size)
|
||||
m_size(size),
|
||||
m_buffer(buffer)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@ namespace Nz
|
||||
|
||||
inline const Component& GetComponent(std::size_t componentIndex) const;
|
||||
inline std::size_t GetComponentCount() const;
|
||||
inline const std::vector<Component>& GetComponents() const;
|
||||
inline VertexInputRate GetInputRate() const;
|
||||
inline std::size_t GetStride() const;
|
||||
|
||||
|
||||
@@ -33,6 +33,11 @@ namespace Nz
|
||||
return m_components.size();
|
||||
}
|
||||
|
||||
inline auto VertexDeclaration::GetComponents() const -> const std::vector<Component>&
|
||||
{
|
||||
return m_components;
|
||||
}
|
||||
|
||||
inline VertexInputRate VertexDeclaration::GetInputRate() const
|
||||
{
|
||||
return m_inputRate;
|
||||
@@ -84,19 +89,4 @@ namespace Nz
|
||||
}
|
||||
}
|
||||
|
||||
namespace std
|
||||
{
|
||||
inline const Nz::VertexDeclaration::Component* begin(const Nz::VertexDeclaration& declaration)
|
||||
{
|
||||
assert(declaration.GetComponentCount() != 0);
|
||||
return &declaration.GetComponent(0);
|
||||
}
|
||||
|
||||
inline const Nz::VertexDeclaration::Component* end(const Nz::VertexDeclaration& declaration)
|
||||
{
|
||||
assert(declaration.GetComponentCount() != 0);
|
||||
return (&declaration.GetComponent(declaration.GetComponentCount() - 1) + 1);
|
||||
}
|
||||
}
|
||||
|
||||
#include <Nazara/Utility/DebugOff.hpp>
|
||||
|
||||
Reference in New Issue
Block a user