Engine: 添加 /FS 标志修复 MSVC PDB 冲突问题

- 在 CMakeLists.txt 中为 MSVC 编译选项添加 /FS 标志
- 添加 OpenGL Screenshot 模块支持
This commit is contained in:
2026-03-21 11:56:59 +08:00
parent 85c106d5dd
commit d786914552
3 changed files with 103 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
#pragma once
#include <cstdint>
#include <string>
namespace XCEngine {
namespace RHI {
class OpenGLSwapChain;
class OpenGLDevice;
class OpenGLScreenshot {
public:
static bool Capture(OpenGLDevice& device,
OpenGLSwapChain& swapChain,
const char* filename);
static bool Capture(OpenGLDevice& device,
OpenGLSwapChain& swapChain,
const char* filename,
int width,
int height);
private:
static bool SavePPM(const char* filename,
int width, int height);
};
} // namespace RHI
} // namespace XCEngine