mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
avoid the extern keyword in .cpp files
This commit is contained in:
@ -11,6 +11,7 @@
|
||||
|
||||
#include "VideoCommon/BPFunctions.h"
|
||||
#include "VideoCommon/BPStructs.h"
|
||||
#include "VideoCommon/Fifo.h"
|
||||
#include "VideoCommon/PerfQueryBase.h"
|
||||
#include "VideoCommon/PixelEngine.h"
|
||||
#include "VideoCommon/PixelShaderManager.h"
|
||||
@ -24,8 +25,6 @@
|
||||
|
||||
using namespace BPFunctions;
|
||||
|
||||
extern volatile bool g_bSkipCurrentFrame;
|
||||
|
||||
static const float s_gammaLUT[] =
|
||||
{
|
||||
1.0f,
|
||||
|
@ -15,7 +15,6 @@
|
||||
#include "VideoCommon/VideoConfig.h"
|
||||
|
||||
//void UpdateFPSDisplay(const char *text);
|
||||
extern NativeVertexFormat *g_nativeVertexFmt;
|
||||
|
||||
GFXDebuggerBase *g_pdebugger = nullptr;
|
||||
volatile bool GFXDebuggerPauseFlag = false; // if true, the GFX thread will be spin locked until it's false again
|
||||
|
@ -13,13 +13,13 @@
|
||||
#include "Core/HW/Memmap.h"
|
||||
|
||||
#include "VideoCommon/CommandProcessor.h"
|
||||
#include "VideoCommon/DataReader.h"
|
||||
#include "VideoCommon/Fifo.h"
|
||||
#include "VideoCommon/OpcodeDecoding.h"
|
||||
#include "VideoCommon/PixelEngine.h"
|
||||
#include "VideoCommon/VideoConfig.h"
|
||||
|
||||
volatile bool g_bSkipCurrentFrame = false;
|
||||
extern u8* g_pVideoData;
|
||||
|
||||
namespace
|
||||
{
|
||||
|
@ -19,9 +19,6 @@
|
||||
#include "VideoCommon/TextureCacheBase.h"
|
||||
#include "VideoCommon/VideoConfig.h"
|
||||
|
||||
// ugly
|
||||
extern int frameCount;
|
||||
|
||||
enum
|
||||
{
|
||||
TEXTURE_KILL_THRESHOLD = 200,
|
||||
|
@ -52,6 +52,10 @@ enum TextureFormat
|
||||
GX_CTF_Z16L = 0xC | _GX_TF_ZTF | _GX_TF_CTF,
|
||||
};
|
||||
|
||||
extern const char* texfmt[];
|
||||
extern const unsigned char sfont_map[];
|
||||
extern const unsigned char sfont_raw[][9*10];
|
||||
|
||||
int TexDecoder_GetTexelSizeInNibbles(int format);
|
||||
int TexDecoder_GetTextureSizeInBytes(int width, int height, int format);
|
||||
int TexDecoder_GetBlockWidthInTexels(u32 format);
|
||||
|
@ -15,10 +15,6 @@
|
||||
bool TexFmt_Overlay_Enable=false;
|
||||
bool TexFmt_Overlay_Center=false;
|
||||
|
||||
extern const char* texfmt[];
|
||||
extern const unsigned char sfont_map[];
|
||||
extern const unsigned char sfont_raw[][9*10];
|
||||
|
||||
// TRAM
|
||||
// STATE_TO_SAVE
|
||||
GC_ALIGNED16(u8 texMem[TMEM_SIZE]);
|
||||
|
@ -35,10 +35,6 @@
|
||||
static bool TexFmt_Overlay_Enable=false;
|
||||
static bool TexFmt_Overlay_Center=false;
|
||||
|
||||
extern const char* texfmt[];
|
||||
extern const unsigned char sfont_map[];
|
||||
extern const unsigned char sfont_raw[][9*10];
|
||||
|
||||
// TRAM
|
||||
// STATE_TO_SAVE
|
||||
GC_ALIGNED16(u8 texMem[TMEM_SIZE]);
|
||||
|
@ -16,10 +16,6 @@
|
||||
#define ASHIFT 24
|
||||
#define AMASK 0xFF000000
|
||||
|
||||
extern int colIndex;
|
||||
extern int colElements[2];
|
||||
|
||||
|
||||
__forceinline void _SetCol(u32 val)
|
||||
{
|
||||
DataWrite(val);
|
||||
|
@ -12,9 +12,6 @@
|
||||
#include "VideoCommon/VertexManagerBase.h"
|
||||
#include "VideoCommon/VideoCommon.h"
|
||||
|
||||
extern float posScale;
|
||||
extern TVtxAttr *pVtxAttr;
|
||||
|
||||
// Thoughts on the implementation of a vertex loader compiler.
|
||||
// s_pCurBufferPointer should definitely be in a register.
|
||||
// Could load the position scale factor in XMM7, for example.
|
||||
|
@ -34,9 +34,6 @@ __forceinline void LOG_TEX<2>()
|
||||
// PRIM_LOG("tex: %f %f, ", ((float*)VertexManager::s_pCurBufferPointer)[-2], ((float*)VertexManager::s_pCurBufferPointer)[-1]);
|
||||
}
|
||||
|
||||
extern int tcIndex;
|
||||
extern float tcScale[8];
|
||||
|
||||
static void LOADERDECL TexCoord_Read_Dummy()
|
||||
{
|
||||
tcIndex++;
|
||||
|
Reference in New Issue
Block a user