/dports/emulators/mgba/mgba-0.9.2/src/gba/renderers/ |
H A D | software-mode0.c | 21 charBase = (background->charBase + (GBA_TEXT_MAP_TILE(mapData) << 5)) + (localY << 2); \ 36 charBase = (background->charBase + (GBA_TEXT_MAP_TILE(mapData) << 5)) + (localY << 2); \ 91 charBase = (background->charBase + (GBA_TEXT_MAP_TILE(mapData) << 5)) + (localY << 2); \ 118 charBase = (background->charBase + (GBA_TEXT_MAP_TILE(mapData) << 5)) + (localY << 2); \ 158 charBase = (background->charBase + (GBA_TEXT_MAP_TILE(mapData) << 5)) + (localY << 2); \ 189 charBase = (background->charBase + (GBA_TEXT_MAP_TILE(mapData) << 6)) + (localY << 3); \ 221 charBase += 4; \ 236 charBase = (background->charBase + (GBA_TEXT_MAP_TILE(mapData) << 6)) + (localY << 3); \ 248 charBase += 4; \ 289 charBase = (background->charBase + (GBA_TEXT_MAP_TILE(mapData) << 6)) + (localY << 3); \ [all …]
|
H A D | software-obj.c | 77 LOAD_16(tileData, ((yBase + charBase + xBase) & 0x7FFE), vramBase); \ 89 LOAD_16(tileData, ((yBase + charBase + xBase) & 0x7FFE), vramBase); \ 102 LOAD_16(tileData, ((yBase + charBase + xBase) & 0x7FFE), vramBase); \ 112 LOAD_16(tileData, ((yBase + charBase + xBase) & 0x7FFE), vramBase); \ 124 LOAD_16(tileData, ((yBase + charBase + xBase) & 0x7FFE), vramBase); \ 137 LOAD_16(tileData, ((yBase + charBase + xBase) & 0x7FFE), vramBase); \ 159 unsigned charBase = (GBAObjAttributesCGetTile(sprite->c) & ~align) * 0x20; in GBAVideoSoftwareRendererPreprocessSprite() local
|
H A D | software-bg.c | 82 pixelData = charBase[(mapData << 6) + ((localY & 0x700) >> 5) + ((localX & 0x700) >> 8)]; \ 92 pixelData = charBase[(mapData << 6) + ((localY & 0x700) >> 5) + ((localX & 0x700) >> 8)]; 135 uint8_t* charBase = &((uint8_t*) renderer->d.vram)[background->charBase]; in GBAVideoSoftwareRendererDrawBackgroundMode2() local
|
H A D | gl.c | 800 bg->charBase = 0; in GBAVideoGLRendererInit() 1220 unsigned charBase = background->charBase >> 11; in _dirtyMode0() local 1221 unsigned charMask = (0xFFFF << charBase) & 0xFFFF; in _dirtyMode0() 1238 unsigned charBase = background->charBase >> 11; in _dirtyMode2() local 1239 unsigned charMask = (0x3FFF << charBase) & 0xFFFF; in _dirtyMode2() 1596 bg->charBase = GBARegisterBGCNTGetCharBase(value) << 13; in GBAVideoGLRendererWriteBGCNT() 1699 unsigned charBase = (BASE_TILE >> 1) + (GBAObjAttributesCGetTile(sprite->c) & ~align) * 0x10; in GBAVideoGLRendererDrawSprite() local 1733 glUniform1i(uniforms[GBA_GL_OBJ_CHARBASE], charBase); in GBAVideoGLRendererDrawSprite() 1835 glUniform1i(uniforms[GBA_GL_BG_CHARBASE], background->charBase); in GBAVideoGLRendererDrawBackgroundMode0() 1862 glUniform1i(uniforms[GBA_GL_BG_CHARBASE], background->charBase); in GBAVideoGLRendererDrawBackgroundMode2()
|
/dports/games/libretro-mgba/mgba-6186d45/src/gba/renderers/ |
H A D | software-mode0.c | 21 charBase = (background->charBase + (GBA_TEXT_MAP_TILE(mapData) << 5)) + (localY << 2); \ 36 charBase = (background->charBase + (GBA_TEXT_MAP_TILE(mapData) << 5)) + (localY << 2); \ 91 charBase = (background->charBase + (GBA_TEXT_MAP_TILE(mapData) << 5)) + (localY << 2); \ 118 charBase = (background->charBase + (GBA_TEXT_MAP_TILE(mapData) << 5)) + (localY << 2); \ 158 charBase = (background->charBase + (GBA_TEXT_MAP_TILE(mapData) << 5)) + (localY << 2); \ 189 charBase = (background->charBase + (GBA_TEXT_MAP_TILE(mapData) << 6)) + (localY << 3); \ 221 charBase += 4; \ 236 charBase = (background->charBase + (GBA_TEXT_MAP_TILE(mapData) << 6)) + (localY << 3); \ 248 charBase += 4; \ 289 charBase = (background->charBase + (GBA_TEXT_MAP_TILE(mapData) << 6)) + (localY << 3); \ [all …]
|
H A D | software-bg.c | 26 pixelData = charBase[(mapData << 6) + ((localY & 0x700) >> 5) + ((localX & 0x700) >> 8)]; \ 36 pixelData = charBase[(mapData << 6) + ((localY & 0x700) >> 5) + ((localX & 0x700) >> 8)]; 71 uint8_t* charBase = &((uint8_t*) renderer->d.vram)[background->charBase]; in GBAVideoSoftwareRendererDrawBackgroundMode2() local
|
H A D | software-obj.c | 77 LOAD_16(tileData, ((yBase + charBase + xBase) & 0x7FFE), vramBase); \ 89 LOAD_16(tileData, ((yBase + charBase + xBase) & 0x7FFE), vramBase); \ 102 LOAD_16(tileData, ((yBase + charBase + xBase) & 0x7FFE), vramBase); \ 112 LOAD_16(tileData, ((yBase + charBase + xBase) & 0x7FFE), vramBase); \ 124 LOAD_16(tileData, ((yBase + charBase + xBase) & 0x7FFE), vramBase); \ 137 LOAD_16(tileData, ((yBase + charBase + xBase) & 0x7FFE), vramBase); \ 159 unsigned charBase = (GBAObjAttributesCGetTile(sprite->c) & ~align) * 0x20; in GBAVideoSoftwareRendererPreprocessSprite() local
|
H A D | gl.c | 810 bg->charBase = 0; in GBAVideoGLRendererInit() 1214 unsigned charBase = background->charBase >> 11; in _dirtyMode0() local 1215 unsigned charMask = (0xFFFF << charBase) & 0xFFFF; in _dirtyMode0() 1232 unsigned charBase = background->charBase >> 11; in _dirtyMode2() local 1233 unsigned charMask = (0x3FFF << charBase) & 0xFFFF; in _dirtyMode2() 1546 bg->charBase = GBARegisterBGCNTGetCharBase(value) << 13; in GBAVideoGLRendererWriteBGCNT() 1658 unsigned charBase = (BASE_TILE >> 1) + (GBAObjAttributesCGetTile(sprite->c) & ~align) * 0x10; in GBAVideoGLRendererDrawSprite() local 1685 glUniform1i(uniforms[GBA_GL_OBJ_CHARBASE], charBase); in GBAVideoGLRendererDrawSprite() 1785 glUniform1i(uniforms[GBA_GL_BG_CHARBASE], background->charBase); in GBAVideoGLRendererDrawBackgroundMode0() 1812 glUniform1i(uniforms[GBA_GL_BG_CHARBASE], background->charBase); in GBAVideoGLRendererDrawBackgroundMode2()
|
/dports/emulators/vba/VisualBoyAdvance-1.7.2/src/win32/ |
H A D | TileView.cpp | 72 charBase = 0; in TileView() 327 if(this->charBase == 4) in renderTile16() 353 u8 *charBase = &vram[this->charBase * 0x4000]; in render() local 362 if(this->charBase == 4) in render() 382 if(this->charBase == 3) in render() 430 m_charBase = charBase; in OnInitDialog() 489 charBase = 0; in OnCharbase0() 495 charBase = 1; in OnCharbase1() 501 charBase = 2; in OnCharbase2() 507 charBase = 3; in OnCharbase3() [all …]
|
H A D | GBTileView.cpp | 71 charBase = 0; in GBTileView() 298 void GBTileView::renderTile(int tile, int x, int y, u8 *charBase) in renderTile() argument 304 u8 tile_a = charBase[tile*16+j*2]; in renderTile() 305 u8 tile_b = charBase[tile*16+j*2+1]; in renderTile() 333 if(charBase) in render() 335 u8 *charBase = (gbVram != NULL) ? in render() local 342 renderTile(tile, x, y, charBase); in render() 383 m_charBase = charBase; in OnInitDialog() 428 charBase = 0; in OnCharbase0() 434 charBase = 1; in OnCharbase1() [all …]
|
H A D | TileView.h | 40 int charBase; variable 55 void renderTile16(int tile, int x, int y, u8 *charBase, u16 *palette); 56 void renderTile256(int tile, int x, int y, u8 *charBase, u16 *palette);
|
H A D | GBTileView.h | 39 int charBase; variable 54 void renderTile(int tile, int x, int y, u8 *charBase);
|
H A D | MapView.cpp | 124 u8 *charBase = &vram[((control >> 2) & 0x03) * 0x4000]; in BEGIN_MESSAGE_MAP() local 171 u8 c = charBase[tile * 64 + tileY * 8 + tileX]; in BEGIN_MESSAGE_MAP() 212 u8 color = charBase[tile * 32 + tileY * 4 + (tileX>>1)]; in BEGIN_MESSAGE_MAP() 280 u8 *charBase = &vram[((control >> 2) & 0x03) * 0x4000]; in renderRotScreen() local 311 u8 color = charBase[tile * 64 + tileY * 8 + tileX]; in renderRotScreen() 327 u8 color = charBase[tile * 64 + tileY * 8 + tileX]; in renderRotScreen() 533 u32 charBase = ((control >> 2) & 0x03) * 0x4000 + 0x6000000; in paint() local 546 buffer.Format("0x%08X", charBase); in paint()
|
/dports/emulators/visualboyadvance-m/visualboyadvance-m-VBA-M_Beta_2/src/win32/ |
H A D | TileView.cpp | 51 charBase = 0; in TileView() 309 if(this->charBase == 4) in renderTile16() 335 u8 *charBase = &vram[this->charBase * 0x4000]; in render() local 344 if(this->charBase == 4) in render() 364 if(this->charBase == 3) in render() 412 m_charBase = charBase; in OnInitDialog() 471 charBase = 0; in OnCharbase0() 477 charBase = 1; in OnCharbase1() 483 charBase = 2; in OnCharbase2() 489 charBase = 3; in OnCharbase3() [all …]
|
H A D | GBTileView.cpp | 50 charBase = 0; in GBTileView() 277 void GBTileView::renderTile(int tile, int x, int y, u8 *charBase) in renderTile() argument 283 u8 tile_a = charBase[tile*16+j*2]; in renderTile() 284 u8 tile_b = charBase[tile*16+j*2+1]; in renderTile() 312 if(charBase) in render() 314 u8 *charBase = (gbVram != NULL) ? in render() local 321 renderTile(tile, x, y, charBase); in render() 362 m_charBase = charBase; in OnInitDialog() 407 charBase = 0; in OnCharbase0() 413 charBase = 1; in OnCharbase1() [all …]
|
H A D | TileView.h | 21 int charBase; variable 36 void renderTile16(int tile, int x, int y, u8 *charBase, u16 *palette); 37 void renderTile256(int tile, int x, int y, u8 *charBase, u16 *palette);
|
H A D | GBTileView.h | 20 int charBase; variable 35 void renderTile(int tile, int x, int y, u8 *charBase);
|
H A D | MapView.cpp | 103 u8 *charBase = &vram[((control >> 2) & 0x03) * 0x4000]; in BEGIN_MESSAGE_MAP() local 150 u8 c = charBase[tile * 64 + tileY * 8 + tileX]; in BEGIN_MESSAGE_MAP() 191 u8 color = charBase[tile * 32 + tileY * 4 + (tileX>>1)]; in BEGIN_MESSAGE_MAP() 259 u8 *charBase = &vram[((control >> 2) & 0x03) * 0x4000]; in renderRotScreen() local 289 u8 color = charBase[tile * 64 + tileY * 8 + tileX]; in renderRotScreen() 501 u32 charBase = ((control >> 2) & 0x03) * 0x4000 + 0x6000000; in paint() local 514 buffer.Format("0x%08X", charBase); in paint()
|
/dports/emulators/visualboyadvance-m/visualboyadvance-m-VBA-M_Beta_2/src/wx/ |
H A D | gfxviewers.cpp | 343 u8 c = charBase[tile * 64 + tileY * 8 + tileX]; in renderTextScreen() 1610 u8* charBase = &vram[charbase]; in Update() local 1625 render256(tile, x, y, charBase, palette); in Update() 1645 render16(tile, x, y, charBase, palette); in Update() 1698 u8 c = charBase[tile * 64 + j * 8 + i]; in render256() 1721 u8 c = charBase[tile * 32 + j * 4 + (i >> 1)]; in render16() 1770 u8* charBase = (gbVram != NULL) ? in Update() local 1779 render(tile, x, y, charBase); in Update() 1818 void render(int tile, int x, int y, u8* charBase) in render() argument 1825 u8 tile_a = charBase[tile * 16 + j * 2]; in render() [all …]
|
/dports/games/libretro-beetle_gba/beetle-gba-libretro-8d1e421/mednafen/gba/ |
H A D | Gfx.cpp | 107 const uint8 *tileBase = &charBase[tile.tileNum * 64 + tileY * 8]; in gfxReadTile() 145 const u8h *tileBase = (u8h*) &charBase[tile.tileNum * 32 + tileY * 4]; in gfxReadTilePal() 188 uint8 *charBase = &vram[((control >> 2) & 0x03) * 0x4000]; in gfxDrawTextScreen() local 264 gfxDrawTile(readTile(screenSource, yyy, charBase, palette, prio), &line[x]); in gfxDrawTextScreen() 283 … gfxDrawTileClipped(readTile(screenSource, yyy, charBase, palette, prio), &line[x], 0, firstTileX); in gfxDrawTextScreen() 318 uint8 *charBase = &vram[((control >> 2) & 0x03) * 0x4000]; in gfxDrawTextScreen() local 378 uint8 color = charBase[tile * 64 + tileY * 8 + tileX]; in gfxDrawTextScreen() 419 uint8 color = charBase[(tile<<5) + (tileY<<2) + (tileX>>1)]; in gfxDrawTextScreen() 494 uint8 *charBase = &vram[((control >> 2) & 0x03) * 0x4000]; in gfxDrawRotScreen() local 581 uint8 color = charBase[(tile<<6) + (tileY<<3) + tileX]; in gfxDrawRotScreen() [all …]
|
/dports/games/libretro-scummvm/scummvm-7b1e929/engines/tinsel/ |
H A D | graphics.h | 39 char *charBase; // character set base address member
|
H A D | graphics.cpp | 358 p = (uint8 *)pObj->charBase + psxSkipBytes + (indexVal << 3); in PsxDrawTiles() 360 p = (uint8 *)pObj->charBase + psxSkipBytes + (indexVal << 4); in PsxDrawTiles() 465 const uint8 *p = (uint8 *)pObj->charBase + (indexVal << 4); in WrtNonZero() 478 const uint8 *p = (uint8 *)pObj->charBase + ((pObj->transOffset + indexVal) << 4); in WrtNonZero() 837 pObj->charBase = NULL; in DrawObject() 843 pObj->charBase = (char *)p + READ_LE_UINT32(p + 0x10); in DrawObject()
|
/dports/games/scummvm/scummvm-2.5.1/engines/tinsel/ |
H A D | graphics.h | 40 char *charBase; // character set base address member
|
H A D | graphics.cpp | 371 p = (uint8 *)pObj->charBase + psxSkipBytes + (indexVal << 3); in PsxDrawTiles() 373 p = (uint8 *)pObj->charBase + psxSkipBytes + (indexVal << 4); in PsxDrawTiles() 478 const uint8 *p = (uint8 *)pObj->charBase + (indexVal << 4); in WrtNonZero() 491 const uint8 *p = (uint8 *)pObj->charBase + ((pObj->transOffset + indexVal) << 4); in WrtNonZero() 1080 pObj->charBase = nullptr; in DrawObject() 1086 pObj->charBase = (char *)p + READ_LE_UINT32(p + 0x10); in DrawObject()
|
/dports/emulators/mednafen/mednafen/src/gba/ |
H A D | Gfx.cpp | 70 uint8 *charBase = &vram[((control >> 2) & 0x03) * 0x4000]; in gfxDrawTextScreen() local 130 uint8 color = charBase[tile * 64 + tileY * 8 + tileX]; in gfxDrawTextScreen() 171 uint8 color = charBase[(tile<<5) + (tileY<<2) + (tileX>>1)]; in gfxDrawTextScreen() 244 uint8 *charBase = &vram[((control >> 2) & 0x03) * 0x4000]; in gfxDrawRotScreen() local 331 uint8 color = charBase[(tile<<6) + (tileY<<3) + tileX]; in gfxDrawRotScreen() 363 uint8 color = charBase[(tile<<6) + (tileY<<3) + tileX]; in gfxDrawRotScreen()
|