#pragma once #include "../global/Base.h" /* * class FrameBuffer: * 帧缓存 */ class FrameBuffer { public: FrameBuffer(uint32_t width, uint32_t height, void* colorBuffer = nullptr); ~FrameBuffer(); FrameBuffer(const FrameBuffer&) = delete;//不准拷贝复制 uint32_t mWidth{ 0 }; uint32_t mHeight{ 0 }; uint32_t mPixelSize{ 0 }; RGBA* mColorBuffer{ nullptr }; //首地址 float* mDepthBuffer{ nullptr }; bool mExternBuffer{ false }; };