1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 19:34:59 +00:00
serenity/Userland/Libraries/LibGL/DepthBuffer.h
2021-05-09 15:58:35 +02:00

27 lines
395 B
C++

/*
* Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@gmx.de>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibGfx/Size.h>
namespace GL {
class DepthBuffer final {
public:
DepthBuffer(Gfx::IntSize const&);
~DepthBuffer();
float* scanline(int y);
void clear(float depth);
private:
Gfx::IntSize m_size;
float* m_data { nullptr };
};
}