From e1ad7d69b981c7ed249ba7efd4287d712db3747d Mon Sep 17 00:00:00 2001 From: Yuri Kunde Schlesner Date: Sun, 29 Jan 2017 17:43:09 -0800 Subject: SWRasterizer: Move framebuffer operation functions to their own file --- src/video_core/swrasterizer/framebuffer.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/video_core/swrasterizer/framebuffer.h (limited to 'src/video_core/swrasterizer/framebuffer.h') diff --git a/src/video_core/swrasterizer/framebuffer.h b/src/video_core/swrasterizer/framebuffer.h new file mode 100644 index 000000000..220f7013b --- /dev/null +++ b/src/video_core/swrasterizer/framebuffer.h @@ -0,0 +1,23 @@ +// Copyright 2017 Citra Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include "common/common_types.h" +#include "common/vector_math.h" +#include "video_core/regs_framebuffer.h" + +namespace Pica { +namespace Rasterizer { + +void DrawPixel(int x, int y, const Math::Vec4& color); +const Math::Vec4 GetPixel(int x, int y); +u32 GetDepth(int x, int y); +u8 GetStencil(int x, int y); +void SetDepth(int x, int y, u32 value); +void SetStencil(int x, int y, u8 value); +u8 PerformStencilAction(FramebufferRegs::StencilAction action, u8 old_stencil, u8 ref); + +} // namespace Rasterizer +} // namespace Pica -- cgit v1.2.3