mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 01:42:29 +00:00
chore(binana): update include and symbol
This commit is contained in:
parent
035260a92b
commit
9590ba10b8
4 changed files with 62 additions and 5 deletions
|
|
@ -40,14 +40,17 @@ struct CGxCaps {
|
||||||
uint32_t unkB0;
|
uint32_t unkB0;
|
||||||
// int32_t m_shaderTargets[GxShTargets_Last];
|
// int32_t m_shaderTargets[GxShTargets_Last];
|
||||||
int32_t m_shaderTargets[6];
|
int32_t m_shaderTargets[6];
|
||||||
uint32_t m_unkCC[6];
|
// Evidence for this: go to 0x00684CD8
|
||||||
|
uint32_t m_shaderConstants[6];
|
||||||
int32_t m_texFilterTrilinear;
|
int32_t m_texFilterTrilinear;
|
||||||
int32_t m_texFilterAnisotropic;
|
int32_t m_texFilterAnisotropic;
|
||||||
uint32_t m_maxTexAnisotropy;
|
uint32_t m_maxTexAnisotropy;
|
||||||
int32_t m_depthBias;
|
int32_t m_depthBias;
|
||||||
uint32_t unkF4;
|
uint32_t unkF4;
|
||||||
int32_t m_maxClipPlanes;
|
int32_t m_maxClipPlanes;
|
||||||
uint32_t unkFC[6];
|
// CGxDeviceD3d::ISetCaps
|
||||||
|
int32_t m_hardwareCursor;
|
||||||
|
uint32_t unk100[5];
|
||||||
uint32_t unk114[6];
|
uint32_t unk114[6];
|
||||||
int32_t m_stereoAvailable;
|
int32_t m_stereoAvailable;
|
||||||
int32_t int130;
|
int32_t int130;
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@
|
||||||
#include "gx/shader.h"
|
#include "gx/shader.h"
|
||||||
#include "gx/matrix_stack.h"
|
#include "gx/matrix_stack.h"
|
||||||
#include "gx/buffer.h"
|
#include "gx/buffer.h"
|
||||||
|
#include "gx/texture.h"
|
||||||
|
|
||||||
typedef struct CGxAppRenderState CGxAppRenderState;
|
typedef struct CGxAppRenderState CGxAppRenderState;
|
||||||
typedef struct CGxPushedRenderState CGxPushedRenderState;
|
typedef struct CGxPushedRenderState CGxPushedRenderState;
|
||||||
|
|
@ -229,7 +230,11 @@ struct CGxDevice {
|
||||||
uint32_t unk28E8;
|
uint32_t unk28E8;
|
||||||
TSFixedArray_CGxAppRenderState m_appRenderStates;
|
TSFixedArray_CGxAppRenderState m_appRenderStates;
|
||||||
TSFixedArray_CGxStateBom m_hwRenderStates;
|
TSFixedArray_CGxStateBom m_hwRenderStates;
|
||||||
uint32_t unk2904[1049];
|
uint32_t unk2904[20]; // 0x2904 (size 0x50)
|
||||||
|
int32_t m_hardwareCursor; // 0x2954 (size 0x4)
|
||||||
|
uint32_t unk2958[1026]; // 0x2958 (size 0x1008)
|
||||||
|
CGxTex* m_cursorTexture; // 0x3960 (size 0x4)
|
||||||
|
// 0x3964 == 14688 (the complete size of CGxDevice)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
50
3.3.5a/include/gx/texture.h
Normal file
50
3.3.5a/include/gx/texture.h
Normal file
|
|
@ -0,0 +1,50 @@
|
||||||
|
#ifndef GX_TEXTURE_H
|
||||||
|
#define GX_TEXTURE_H
|
||||||
|
|
||||||
|
#include "tempest/rect.h"
|
||||||
|
|
||||||
|
typedef struct CGxTexFlags CGxTexFlags;
|
||||||
|
typedef struct CGxTex CGxTex;
|
||||||
|
|
||||||
|
struct CGxTexFlags {
|
||||||
|
// unsigned __int32 m_filter : 3;
|
||||||
|
// unsigned __int32 m_wrapU : 1;
|
||||||
|
// unsigned __int32 m_wrapV : 1;
|
||||||
|
// unsigned __int32 m_forceMipTracking : 1;
|
||||||
|
// unsigned __int32 m_generateMipMaps : 1;
|
||||||
|
// unsigned __int32 m_renderTarget : 1;
|
||||||
|
// unsigned __int32 m_maxAnisotropy : 5;
|
||||||
|
uint32_t m_flags;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct CGxTex {
|
||||||
|
CiRect m_updateRect;
|
||||||
|
int16_t m_updatePlaneMin;
|
||||||
|
int16_t m_updatePlaneMax;
|
||||||
|
uint32_t m_width;
|
||||||
|
uint32_t m_height;
|
||||||
|
uint32_t m_depth;
|
||||||
|
uint32_t m_target;
|
||||||
|
uint32_t m_format;
|
||||||
|
uint32_t m_dataFormat;
|
||||||
|
CGxTexFlags m_flags;
|
||||||
|
void* m_userArg;
|
||||||
|
void* m_userFunc;
|
||||||
|
void* m_apiSpecificData;
|
||||||
|
void* m_apiSpecificData2;
|
||||||
|
uint32_t unk40;
|
||||||
|
uint32_t unk44;
|
||||||
|
uint32_t unk48;
|
||||||
|
uint32_t unk4C;
|
||||||
|
uint32_t unk50;
|
||||||
|
uint32_t unk54;
|
||||||
|
int8_t char58;
|
||||||
|
int8_t char59;
|
||||||
|
int8_t m_needsUpdate;
|
||||||
|
int8_t m_needsCreation;
|
||||||
|
int8_t m_needsFlagUpdate;
|
||||||
|
int8_t char5D;
|
||||||
|
uint16_t m_pad;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -66,8 +66,7 @@ enum EGxApi {
|
||||||
GxApi_D3d10 = 3,
|
GxApi_D3d10 = 3,
|
||||||
GxApi_D3d11 = 4,
|
GxApi_D3d11 = 4,
|
||||||
GxApi_GLL = 5,
|
GxApi_GLL = 5,
|
||||||
GxApi_GLSDL = 6,
|
GxApis_Last = 6
|
||||||
GxApis_Last = 7
|
|
||||||
};
|
};
|
||||||
|
|
||||||
enum EGxBlend {
|
enum EGxBlend {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue