mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Use uint32 instead of int for some internal bit-flags.
This commit is contained in:
@@ -797,7 +797,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
* Gets whether the specified pixel format usage is supported.
|
* Gets whether the specified pixel format usage is supported.
|
||||||
**/
|
**/
|
||||||
virtual bool isPixelFormatSupported(PixelFormat format, int usage, bool sRGB = false) = 0;
|
virtual bool isPixelFormatSupported(PixelFormat format, uint32 usage, bool sRGB = false) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the renderer used by love.graphics.
|
* Gets the renderer used by love.graphics.
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ public:
|
|||||||
void setWireframe(bool enable) override;
|
void setWireframe(bool enable) override;
|
||||||
|
|
||||||
PixelFormat getSizedFormat(PixelFormat format, bool rendertarget, bool readable) const override;
|
PixelFormat getSizedFormat(PixelFormat format, bool rendertarget, bool readable) const override;
|
||||||
bool isPixelFormatSupported(PixelFormat format, int usage, bool sRGB = false) override;
|
bool isPixelFormatSupported(PixelFormat format, uint32 usage, bool sRGB = false) override;
|
||||||
Renderer getRenderer() const override;
|
Renderer getRenderer() const override;
|
||||||
bool usesGLSLES() const override;
|
bool usesGLSLES() const override;
|
||||||
RendererInfo getRendererInfo() const override;
|
RendererInfo getRendererInfo() const override;
|
||||||
|
|||||||
@@ -1778,7 +1778,7 @@ PixelFormat Graphics::getSizedFormat(PixelFormat format, bool /*rendertarget*/,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Graphics::isPixelFormatSupported(PixelFormat format, int usage, bool sRGB)
|
bool Graphics::isPixelFormatSupported(PixelFormat format, uint32 usage, bool sRGB)
|
||||||
{
|
{
|
||||||
bool rendertarget = (usage & PIXELFORMATUSAGEFLAGS_RENDERTARGET) != 0;
|
bool rendertarget = (usage & PIXELFORMATUSAGEFLAGS_RENDERTARGET) != 0;
|
||||||
bool readable = (usage & PIXELFORMATUSAGEFLAGS_SAMPLE) != 0;
|
bool readable = (usage & PIXELFORMATUSAGEFLAGS_SAMPLE) != 0;
|
||||||
|
|||||||
@@ -1697,7 +1697,7 @@ PixelFormat Graphics::getSizedFormat(PixelFormat format, bool rendertarget, bool
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Graphics::isPixelFormatSupported(PixelFormat format, int usage, bool sRGB)
|
bool Graphics::isPixelFormatSupported(PixelFormat format, uint32 usage, bool sRGB)
|
||||||
{
|
{
|
||||||
if (sRGB)
|
if (sRGB)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ public:
|
|||||||
void setWireframe(bool enable) override;
|
void setWireframe(bool enable) override;
|
||||||
|
|
||||||
PixelFormat getSizedFormat(PixelFormat format, bool rendertarget, bool readable) const override;
|
PixelFormat getSizedFormat(PixelFormat format, bool rendertarget, bool readable) const override;
|
||||||
bool isPixelFormatSupported(PixelFormat format, int usage, bool sRGB = false) override;
|
bool isPixelFormatSupported(PixelFormat format, uint32 usage, bool sRGB = false) override;
|
||||||
Renderer getRenderer() const override;
|
Renderer getRenderer() const override;
|
||||||
bool usesGLSLES() const override;
|
bool usesGLSLES() const override;
|
||||||
RendererInfo getRendererInfo() const override;
|
RendererInfo getRendererInfo() const override;
|
||||||
|
|||||||
Reference in New Issue
Block a user