From 959831f4ef5a3e797f576c3de08cd65032c997ad Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 13 Jan 2013 18:54:10 +1000 Subject: Remove damned ancient DOS line endings from Irrlicht. Hopefully I did not go overboard. --- .../irrlicht-1.8/source/Irrlicht/CZBuffer.cpp | 218 ++++++++++----------- 1 file changed, 109 insertions(+), 109 deletions(-) (limited to 'libraries/irrlicht-1.8/source/Irrlicht/CZBuffer.cpp') diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CZBuffer.cpp b/libraries/irrlicht-1.8/source/Irrlicht/CZBuffer.cpp index 23b515b..6403efa 100644 --- a/libraries/irrlicht-1.8/source/Irrlicht/CZBuffer.cpp +++ b/libraries/irrlicht-1.8/source/Irrlicht/CZBuffer.cpp @@ -1,109 +1,109 @@ -// Copyright (C) 2002-2012 Nikolaus Gebhardt -// This file is part of the "Irrlicht Engine". -// For conditions of distribution and use, see copyright notice in irrlicht.h - -#include "IrrCompileConfig.h" -#include "CZBuffer.h" -#include "irrString.h" - -#ifdef _IRR_COMPILE_WITH_SOFTWARE_ - -namespace irr -{ -namespace video -{ - - -//! constructor -CZBuffer::CZBuffer(const core::dimension2d& size) -: Buffer(0), BufferEnd(0), Size(0,0), TotalSize(0) -{ - #ifdef _DEBUG - setDebugName("CZBuffer"); - #endif - - setSize(size); -} - - - -//! destructor -CZBuffer::~CZBuffer() -{ - delete [] Buffer; -} - - - -//! clears the zbuffer -void CZBuffer::clear() -{ - memset(Buffer, 0, (BufferEnd-Buffer)*sizeof(TZBufferType)); -} - - - -//! sets the new size of the zbuffer -void CZBuffer::setSize(const core::dimension2d& size) -{ - if (size == Size) - return; - - Size = size; - - delete [] Buffer; - - TotalSize = size.Width * size.Height; - Buffer = new TZBufferType[TotalSize]; - BufferEnd = Buffer + TotalSize; -} - - - -//! returns the size of the zbuffer -const core::dimension2d& CZBuffer::getSize() const -{ - return Size; -} - - - -//! locks the zbuffer -TZBufferType* CZBuffer::lock() -{ - return Buffer; -} - - - -//! unlocks the zbuffer -void CZBuffer::unlock() -{ -} - -} // end namespace video -} // end namespace irr - -#endif // _IRR_COMPILE_WITH_SOFTWARE_ - -namespace irr -{ -namespace video -{ - -//! creates a ZBuffer -IZBuffer* createZBuffer(const core::dimension2d& size) -{ - #ifdef _IRR_COMPILE_WITH_SOFTWARE_ - return new CZBuffer(size); - #else - return 0; - #endif // _IRR_COMPILE_WITH_SOFTWARE_ -} - - -} // end namespace video -} // end namespace irr - - - +// Copyright (C) 2002-2012 Nikolaus Gebhardt +// This file is part of the "Irrlicht Engine". +// For conditions of distribution and use, see copyright notice in irrlicht.h + +#include "IrrCompileConfig.h" +#include "CZBuffer.h" +#include "irrString.h" + +#ifdef _IRR_COMPILE_WITH_SOFTWARE_ + +namespace irr +{ +namespace video +{ + + +//! constructor +CZBuffer::CZBuffer(const core::dimension2d& size) +: Buffer(0), BufferEnd(0), Size(0,0), TotalSize(0) +{ + #ifdef _DEBUG + setDebugName("CZBuffer"); + #endif + + setSize(size); +} + + + +//! destructor +CZBuffer::~CZBuffer() +{ + delete [] Buffer; +} + + + +//! clears the zbuffer +void CZBuffer::clear() +{ + memset(Buffer, 0, (BufferEnd-Buffer)*sizeof(TZBufferType)); +} + + + +//! sets the new size of the zbuffer +void CZBuffer::setSize(const core::dimension2d& size) +{ + if (size == Size) + return; + + Size = size; + + delete [] Buffer; + + TotalSize = size.Width * size.Height; + Buffer = new TZBufferType[TotalSize]; + BufferEnd = Buffer + TotalSize; +} + + + +//! returns the size of the zbuffer +const core::dimension2d& CZBuffer::getSize() const +{ + return Size; +} + + + +//! locks the zbuffer +TZBufferType* CZBuffer::lock() +{ + return Buffer; +} + + + +//! unlocks the zbuffer +void CZBuffer::unlock() +{ +} + +} // end namespace video +} // end namespace irr + +#endif // _IRR_COMPILE_WITH_SOFTWARE_ + +namespace irr +{ +namespace video +{ + +//! creates a ZBuffer +IZBuffer* createZBuffer(const core::dimension2d& size) +{ + #ifdef _IRR_COMPILE_WITH_SOFTWARE_ + return new CZBuffer(size); + #else + return 0; + #endif // _IRR_COMPILE_WITH_SOFTWARE_ +} + + +} // end namespace video +} // end namespace irr + + + -- cgit v1.1