Started to extract common parts of the two gfx plugins into a new library (VS2008 users, sorry :)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@22 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard
2008-07-17 20:29:04 +00:00
parent fa6bd5d2e2
commit 711b1e0016
31 changed files with 2654 additions and 3127 deletions

View File

@ -16,12 +16,10 @@
// http://code.google.com/p/dolphin-emu/
#include "Globals.h"
#include "Common.h"
#include "BPStructs.h"
#include "TextureDecoder.h"
#include "OpcodeDecoding.h"
// TRAM
u8 texMem[TMEM_SIZE];
@ -48,6 +46,7 @@ int TexDecoder_GetTexelSizeInNibbles(int format)
default: return 1;
}
}
int TexDecoder_GetBlockWidthInTexels(int format)
{
switch(format) {
@ -62,7 +61,7 @@ int TexDecoder_GetBlockWidthInTexels(int format)
case GX_TF_C8: return 8;
case GX_TF_C14X2: return 4;
case GX_TF_CMPR: return 8;
default:return 8;
default: return 8;
}
}