mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Don't set common globals from Video Backends
This commit is contained in:
@ -18,6 +18,12 @@ class Mapping;
|
||||
}
|
||||
class PointerWrap;
|
||||
|
||||
class AbstractGfx;
|
||||
class BoundingBox;
|
||||
class Renderer;
|
||||
class TextureCacheBase;
|
||||
class VertexManagerBase;
|
||||
|
||||
enum class FieldType
|
||||
{
|
||||
Odd,
|
||||
@ -71,7 +77,19 @@ public:
|
||||
void DoState(PointerWrap& p);
|
||||
|
||||
protected:
|
||||
void InitializeShared();
|
||||
// For hardware backends
|
||||
bool InitializeShared(std::unique_ptr<AbstractGfx> gfx,
|
||||
std::unique_ptr<VertexManagerBase> vertex_manager,
|
||||
std::unique_ptr<PerfQueryBase> perf_query,
|
||||
std::unique_ptr<BoundingBox> bounding_box);
|
||||
|
||||
// For software and null backends. Allows overriding the default Renderer and Texture Cache
|
||||
bool InitializeShared(std::unique_ptr<AbstractGfx> gfx,
|
||||
std::unique_ptr<VertexManagerBase> vertex_manager,
|
||||
std::unique_ptr<PerfQueryBase> perf_query,
|
||||
std::unique_ptr<BoundingBox> bounding_box,
|
||||
std::unique_ptr<Renderer> renderer,
|
||||
std::unique_ptr<TextureCacheBase> texture_cache);
|
||||
void ShutdownShared();
|
||||
|
||||
bool m_initialized = false;
|
||||
|
Reference in New Issue
Block a user