mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Got rid of all of jp's ////////////////////////////// lines (nearly 500 of them)!
Yes, I used a script :D git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4169 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -105,9 +105,9 @@
|
||||
#define BPMEM_TEV_KSEL 0xF6 // 0xF6 + 8
|
||||
#define BPMEM_BP_MASK 0xFE
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Tev/combiner things
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
#define TEVOP_ADD 0
|
||||
#define TEVOP_SUB 1
|
||||
@ -439,9 +439,9 @@ union RAS1_IREF
|
||||
u32 getTexMap(int i) { return (hex>>(6*i))&3; }
|
||||
};
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Texture structs
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
union TexMode0
|
||||
{
|
||||
struct
|
||||
@ -559,9 +559,9 @@ struct FourTexUnits
|
||||
};
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Geometry/other structs
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
union GenMode
|
||||
{
|
||||
struct
|
||||
@ -611,9 +611,9 @@ union X10Y10
|
||||
u32 hex;
|
||||
};
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Framebuffer/pixel stuff (incl fog)
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
union BlendMode
|
||||
{
|
||||
struct
|
||||
@ -736,9 +736,9 @@ union PE_CONTROL
|
||||
u32 hex;
|
||||
};
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Texture coordinate stuff
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
union TCInfo
|
||||
{
|
||||
struct
|
||||
@ -823,9 +823,9 @@ union UPE_Copy
|
||||
};
|
||||
};
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// All of BP memory
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
struct BPCmd
|
||||
{
|
||||
|
@ -35,12 +35,12 @@ extern const unsigned char sfont_raw[][9*10];
|
||||
// STATE_TO_SAVE
|
||||
u8 texMem[TMEM_SIZE];
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Gamecube/Wii texture decoder
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Decodes all known Gamecube/Wii texture formats.
|
||||
// by ector
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
int TexDecoder_GetTexelSizeInNibbles(int format)
|
||||
{
|
||||
switch (format & 0x3f) {
|
||||
|
@ -65,8 +65,8 @@ void _SetCol565(u16 val)
|
||||
col |= Convert5To8(val & 0x1F) << BSHIFT;
|
||||
_SetCol(col | (0xFF << ASHIFT));
|
||||
}
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
inline u32 _Read24(const u8 *addr)
|
||||
{
|
||||
return addr[0] | (addr[1] << 8) | (addr[2] << 16) | 0xFF000000;
|
||||
@ -77,8 +77,8 @@ inline u32 _Read32(const u8 *addr)
|
||||
return *(const u32 *)addr;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
void LOADERDECL Color_ReadDirect_24b_888()
|
||||
{
|
||||
@ -129,9 +129,9 @@ void LOADERDECL Color_ReadDirect_32b_8888()
|
||||
|
||||
_SetCol(col);
|
||||
}
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
void LOADERDECL Color_ReadIndex8_16b_565()
|
||||
{
|
||||
u8 Index = DataReadU8();
|
||||
@ -169,9 +169,9 @@ void LOADERDECL Color_ReadIndex8_32b_8888()
|
||||
const u8 *iAddress = cached_arraybases[ARRAY_COLOR+colIndex] + (Index * arraystrides[ARRAY_COLOR+colIndex]);
|
||||
_SetCol(_Read32(iAddress));
|
||||
}
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
void LOADERDECL Color_ReadIndex16_16b_565()
|
||||
{
|
||||
u16 Index = DataReadU16();
|
||||
|
@ -108,9 +108,9 @@ TPipelineFunction VertexLoader_Normal::GetFunction(unsigned int _type, unsigned
|
||||
return pFunc;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// --- Direct ---
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void LOADERDECL VertexLoader_Normal::Normal_DirectByte()
|
||||
{
|
||||
*VertexManager::s_pCurBufferPointer++ = DataReadU8();
|
||||
@ -178,9 +178,9 @@ void LOADERDECL VertexLoader_Normal::Normal_DirectFloat3()
|
||||
}
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// --- Index8 ---
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void LOADERDECL VertexLoader_Normal::Normal_Index8_Byte()
|
||||
{
|
||||
u8 Index = DataReadU8();
|
||||
@ -302,9 +302,9 @@ void LOADERDECL VertexLoader_Normal::Normal_Index8_Float3_Indices3()
|
||||
}
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// --- Index16 ---
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
void LOADERDECL VertexLoader_Normal::Normal_Index16_Byte()
|
||||
{
|
||||
|
@ -60,7 +60,7 @@ enum
|
||||
|
||||
extern SVideoInitialize g_VideoInitialize;
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
inline u8 *Memory_GetPtr(u32 _uAddress)
|
||||
{
|
||||
return g_VideoInitialize.pGetMemoryPointer(_uAddress);
|
||||
@ -80,7 +80,7 @@ inline u32 Memory_Read_U32(u32 _uAddress)
|
||||
{
|
||||
return Common::swap32(*(u32*)g_VideoInitialize.pGetMemoryPointer(_uAddress));
|
||||
}
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
inline u8* Memory_Read_U8_Ptr(u32 _uAddress)
|
||||
{
|
||||
return (u8*)g_VideoInitialize.pGetMemoryPointer(_uAddress);
|
||||
@ -95,7 +95,7 @@ inline u32* Memory_Read_U32_Unswapped_Ptr(u32 _uAddress)
|
||||
{
|
||||
return (u32*)g_VideoInitialize.pGetMemoryPointer(_uAddress);
|
||||
}
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
inline float Memory_Read_Float(u32 _uAddress)
|
||||
{
|
||||
|
@ -20,9 +20,9 @@
|
||||
|
||||
#include "Common.h"
|
||||
|
||||
/////////////
|
||||
|
||||
// Lighting
|
||||
/////////////
|
||||
|
||||
|
||||
#define XF_TEXPROJ_ST 0
|
||||
#define XF_TEXPROJ_STQ 1
|
||||
|
Reference in New Issue
Block a user