mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-06 16:49:59 +01:00
* Moved RSXTexture from RSXThread.h to RSXTexture.h * Renamed RSXTexture::Getmipmap to RSXTexture::GetMipmap * Used more GCM texture format constants in GLGSRender.h * PKG Loader: Added an "Overwrite?" dialog in case the folder dest+titleID (i.e. "/dev_hdd0/game/"+titleID) already exists. Note that in that case, the game won't be installed regardless of the option you choose on the dialog.
63 lines
1.1 KiB
C++
63 lines
1.1 KiB
C++
#pragma once
|
|
|
|
class RSXTexture
|
|
{
|
|
u8 m_index;
|
|
|
|
public:
|
|
u32 m_pitch;
|
|
u16 m_depth;
|
|
|
|
public:
|
|
RSXTexture();
|
|
RSXTexture(u8 index);
|
|
void Init();
|
|
|
|
// Offset
|
|
u32 GetOffset() const;
|
|
|
|
// Format
|
|
u8 GetLocation() const;
|
|
bool isCubemap() const;
|
|
u8 GetBorderType() const;
|
|
u8 GetDimension() const;
|
|
u8 GetFormat() const;
|
|
u16 GetMipmap() const;
|
|
|
|
// Address
|
|
u8 GetWrapS() const;
|
|
u8 GetWrapT() const;
|
|
u8 GetWrapR() const;
|
|
u8 GetUnsignedRemap() const;
|
|
u8 GetZfunc() const;
|
|
u8 GetGamma() const;
|
|
u8 GetAnisoBias() const;
|
|
u8 GetSignedRemap() const;
|
|
|
|
// Control0
|
|
bool IsEnabled() const;
|
|
u16 GetMinLOD() const;
|
|
u16 GetMaxLOD() const;
|
|
u8 GetMaxAniso() const;
|
|
bool IsAlphaKillEnabled() const;
|
|
|
|
// Control1
|
|
u32 GetRemap() const;
|
|
|
|
// Filter
|
|
u16 GetBias() const;
|
|
u8 GetMinFilter() const;
|
|
u8 GetMagFilter() const;
|
|
u8 GetConvolutionFilter() const;
|
|
bool isASigned() const;
|
|
bool isRSigned() const;
|
|
bool isGSigned() const;
|
|
bool isBSigned() const;
|
|
|
|
// Image Rect
|
|
u16 GetWidth() const;
|
|
u16 GetHeight() const;
|
|
|
|
void SetControl3(u16 depth, u32 pitch);
|
|
};
|