// Copyright 2008 Dolphin Emulator Project // Licensed under GPLv2+ // Refer to the license.txt file included. #pragma once #include #include "Common/CommonTypes.h" #include "VideoCommon/RenderBase.h" class SWOGLWindow; class SWRenderer : public Renderer { public: SWRenderer(std::unique_ptr window); bool IsHeadless() const override; std::unique_ptr CreateTexture(const TextureConfig& config) override; std::unique_ptr CreateStagingTexture(StagingTextureType type, const TextureConfig& config) override; std::unique_ptr CreateFramebuffer(const AbstractTexture* color_attachment, const AbstractTexture* depth_attachment) override; std::unique_ptr CreateShaderFromSource(ShaderStage stage, const char* source, size_t length) override; std::unique_ptr CreateShaderFromBinary(ShaderStage stage, const void* data, size_t length) override; std::unique_ptr CreatePipeline(const AbstractPipelineConfig& config) override; u32 AccessEFB(EFBAccessType type, u32 x, u32 y, u32 poke_data) override; void PokeEFB(EFBAccessType type, const EfbPokeData* points, size_t num_points) override {} u16 BBoxRead(int index) override; void BBoxWrite(int index, u16 value) override; TargetRectangle ConvertEFBRectangle(const EFBRectangle& rc) override; void RenderXFBToScreen(const AbstractTexture* texture, const EFBRectangle& rc) override; void ClearScreen(const EFBRectangle& rc, bool colorEnable, bool alphaEnable, bool zEnable, u32 color, u32 z) override; void ReinterpretPixelData(unsigned int convtype) override {} private: std::unique_ptr m_window; };