mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-03 12:27:21 +12:00
[PICA] More textures. Upstream should also build now
This commit is contained in:
parent
51130b295a
commit
ccdab41c28
5 changed files with 66 additions and 36 deletions
|
@ -41,7 +41,7 @@ public:
|
|||
}
|
||||
|
||||
// Adds a surface object to the cache and returns it
|
||||
SurfaceType add(const SurfaceType& surface) {
|
||||
SurfaceType& add(const SurfaceType& surface) {
|
||||
if (size >= capacity) {
|
||||
Helpers::panic("Surface cache full! Add emptying!");
|
||||
}
|
||||
|
|
|
@ -55,11 +55,11 @@ struct Texture {
|
|||
}
|
||||
|
||||
void allocate();
|
||||
void decodeTexture(void* data);
|
||||
void decodeTexture(const void* data);
|
||||
void free();
|
||||
u64 sizeInBytes();
|
||||
|
||||
u32 decodeTexel(u32 u, u32 v, Formats fmt, void* data);
|
||||
u32 decodeTexel(u32 u, u32 v, Formats fmt, const void* data);
|
||||
|
||||
// Get the morton interleave offset of a texel based on its U and V values
|
||||
static u32 mortonInterleave(u32 u, u32 v);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue