-
-
Notifications
You must be signed in to change notification settings - Fork 770
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/input-revamp' into medusa
- Loading branch information
Showing
653 changed files
with
27,278 additions
and
2,077 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* Copyright (c) 2013-2017 Jeffrey Pfau | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
#ifndef M_CACHE_SET_H | ||
#define M_CACHE_SET_H | ||
|
||
#include <mgba-util/common.h> | ||
|
||
CXX_GUARD_START | ||
|
||
#include <mgba/core/map-cache.h> | ||
#include <mgba/core/tile-cache.h> | ||
#include <mgba-util/vector.h> | ||
|
||
DECLARE_VECTOR(mMapCacheSet, struct mMapCache); | ||
DECLARE_VECTOR(mTileCacheSet, struct mTileCache); | ||
|
||
struct mCacheSet { | ||
struct mMapCacheSet maps; | ||
struct mTileCacheSet tiles; | ||
}; | ||
|
||
void mCacheSetInit(struct mCacheSet*, size_t nMaps, size_t nTiles); | ||
void mCacheSetDeinit(struct mCacheSet*); | ||
|
||
void mCacheSetAssignVRAM(struct mCacheSet*, void* vram); | ||
|
||
void mCacheSetWriteVRAM(struct mCacheSet*, uint32_t address); | ||
void mCacheSetWritePalette(struct mCacheSet*, uint32_t entry, color_t color); | ||
|
||
CXX_GUARD_END | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.