Commit missing files
This commit is contained in:
@@ -104,8 +104,7 @@ namespace Nz
|
||||
class GearConstraint2D;
|
||||
|
||||
using GearConstraint2DHandle = ObjectHandle<GearConstraint2D>;
|
||||
using GearConstraint2DRef = ObjectRef<GearConstraint2D>;
|
||||
|
||||
|
||||
class NAZARA_PHYSICS2D_API GearConstraint2D : public Constraint2D
|
||||
{
|
||||
public:
|
||||
@@ -117,8 +116,6 @@ namespace Nz
|
||||
|
||||
void SetPhase(float phase);
|
||||
void SetRatio(float ratio);
|
||||
|
||||
template<typename... Args> static GearConstraint2DRef New(Args&&... args);
|
||||
};
|
||||
|
||||
class MotorConstraint2D;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace Nz
|
||||
struct VertexBufferData
|
||||
{
|
||||
std::size_t binding;
|
||||
VertexDeclarationConstRef declaration;
|
||||
std::shared_ptr<const VertexDeclaration> declaration;
|
||||
};
|
||||
|
||||
std::shared_ptr<RenderPipelineLayout> pipelineLayout;
|
||||
|
||||
@@ -19,10 +19,10 @@ namespace Nz
|
||||
|
||||
struct RenderStates
|
||||
{
|
||||
FaceFilling faceFilling = FaceFilling_Fill;
|
||||
FaceSide cullingSide = FaceSide_Back;
|
||||
RendererComparison depthCompare = RendererComparison_Less;
|
||||
PrimitiveMode primitiveMode = PrimitiveMode_TriangleList;
|
||||
FaceFilling faceFilling = FaceFilling::Fill;
|
||||
FaceSide cullingSide = FaceSide::Back;
|
||||
RendererComparison depthCompare = RendererComparison::Less;
|
||||
PrimitiveMode primitiveMode = PrimitiveMode::TriangleList;
|
||||
|
||||
struct
|
||||
{
|
||||
@@ -36,10 +36,10 @@ namespace Nz
|
||||
|
||||
struct
|
||||
{
|
||||
RendererComparison compare = RendererComparison_Always;
|
||||
StencilOperation depthFail = StencilOperation_Keep;
|
||||
StencilOperation fail = StencilOperation_Keep;
|
||||
StencilOperation pass = StencilOperation_Keep;
|
||||
RendererComparison compare = RendererComparison::Always;
|
||||
StencilOperation depthFail = StencilOperation::Keep;
|
||||
StencilOperation fail = StencilOperation::Keep;
|
||||
StencilOperation pass = StencilOperation::Keep;
|
||||
UInt32 compareMask = 0xFFFFFFFF;
|
||||
UInt32 reference = 0;
|
||||
UInt32 writeMask = 0xFFFFFFFF;
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace Nz
|
||||
{
|
||||
struct RenderWindowParameters
|
||||
{
|
||||
std::vector<PixelFormat> depthFormats = {Nz::PixelFormat_Depth32, Nz::PixelFormat_Depth24}; //< By order of preference
|
||||
std::vector<PixelFormat> depthFormats = {Nz::PixelFormat::Depth32, Nz::PixelFormat::Depth24}; //< By order of preference
|
||||
bool verticalSync = false;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -17,12 +17,12 @@ namespace Nz
|
||||
struct TextureSamplerInfo
|
||||
{
|
||||
float anisotropyLevel = 0.f;
|
||||
SamplerFilter magFilter = SamplerFilter_Linear;
|
||||
SamplerFilter minFilter = SamplerFilter_Linear;
|
||||
SamplerMipmapMode mipmapMode = SamplerMipmapMode_Linear;
|
||||
SamplerWrap wrapModeU = SamplerWrap_Clamp;
|
||||
SamplerWrap wrapModeV = SamplerWrap_Clamp;
|
||||
SamplerWrap wrapModeW = SamplerWrap_Clamp;
|
||||
SamplerFilter magFilter = SamplerFilter::Linear;
|
||||
SamplerFilter minFilter = SamplerFilter::Linear;
|
||||
SamplerMipmapMode mipmapMode = SamplerMipmapMode::Linear;
|
||||
SamplerWrap wrapModeU = SamplerWrap::Clamp;
|
||||
SamplerWrap wrapModeV = SamplerWrap::Clamp;
|
||||
SamplerWrap wrapModeW = SamplerWrap::Clamp;
|
||||
|
||||
inline bool operator==(const TextureSamplerInfo& samplerInfo) const;
|
||||
inline bool operator!=(const TextureSamplerInfo& samplerInfo) const;
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include <Nazara/Prerequisites.hpp>
|
||||
#include <Nazara/Core/Color.hpp>
|
||||
#include <Nazara/Core/ObjectLibrary.hpp>
|
||||
#include <Nazara/Core/MovablePtr.hpp>
|
||||
#include <Nazara/Core/Resource.hpp>
|
||||
#include <Nazara/Core/ResourceLoader.hpp>
|
||||
#include <Nazara/Core/ResourceManager.hpp>
|
||||
@@ -49,8 +50,9 @@ namespace Nz
|
||||
|
||||
Image();
|
||||
Image(ImageType type, PixelFormat format, unsigned int width, unsigned int height, unsigned int depth = 1, UInt8 levelCount = 1);
|
||||
Image(const Image& image);
|
||||
Image(SharedImage* sharedImage);
|
||||
Image(const Image& image);
|
||||
inline Image(Image&& image) noexcept;
|
||||
~Image();
|
||||
|
||||
bool Convert(PixelFormat format);
|
||||
@@ -104,6 +106,7 @@ namespace Nz
|
||||
bool Update(const UInt8* pixels, const Rectui& rect, unsigned int z = 0, unsigned int srcWidth = 0, unsigned int srcHeight = 0, UInt8 level = 0) override;
|
||||
|
||||
Image& operator=(const Image& image);
|
||||
inline Image& operator=(Image&& image) noexcept;
|
||||
|
||||
static void Copy(UInt8* destination, const UInt8* source, PixelFormat format, unsigned int width, unsigned int height, unsigned int depth = 1, unsigned int dstWidth = 0, unsigned int dstHeight = 0, unsigned int srcWidth = 0, unsigned int srcHeight = 0);
|
||||
static UInt8 GetMaxLevel(unsigned int width, unsigned int height, unsigned int depth = 1);
|
||||
|
||||
@@ -8,6 +8,17 @@
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
inline Image::Image(Image&& image) noexcept :
|
||||
m_sharedImage(std::exchange(image.m_sharedImage, &emptyImage))
|
||||
{
|
||||
}
|
||||
|
||||
inline Image& Image::operator=(Image&& image) noexcept
|
||||
{
|
||||
std::swap(m_sharedImage, image.m_sharedImage);
|
||||
|
||||
return *this;
|
||||
}
|
||||
}
|
||||
|
||||
#include <Nazara/Utility/DebugOff.hpp>
|
||||
|
||||
Reference in New Issue
Block a user