mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
28 lines
701 B
C++
28 lines
701 B
C++
// Copyright 2014 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
namespace OGL
|
|
{
|
|
class BoundingBox
|
|
{
|
|
public:
|
|
static void Init(int target_width, int target_height);
|
|
static void Shutdown();
|
|
|
|
static void SetTargetSizeChanged(int target_width, int target_height);
|
|
|
|
// When SSBO isn't available, the bounding box is calculated directly from the
|
|
// stencil buffer.
|
|
static bool NeedsStencilBuffer();
|
|
// When the stencil buffer is changed, this function needs to be called to
|
|
// invalidate the cached bounding box data.
|
|
static void StencilWasUpdated();
|
|
|
|
static void Set(int index, int value);
|
|
static int Get(int index);
|
|
};
|
|
};
|