Skip to content

Commit

Permalink
Update CKTexture
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamepiaynmo committed Dec 31, 2020
1 parent 94bdcad commit 43d0b54
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 44 deletions.
2 changes: 1 addition & 1 deletion BuildVer.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#define BML_MAJOR_VER 0
#define BML_MINOR_VER 3
#define BML_BUILD_VER 29
#define BML_BUILD_VER 30
12 changes: 0 additions & 12 deletions virtools/CKBitmapData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ NAKED CKBOOL CKBitmapData::ReleaseSurfacePtr(int Slot) {
JUMP(0x24030151);
}

NAKED CKBOOL CKBitmapData::FlushSurfacePtr(int Slot) {
UNDEFINED;
}

NAKED CKSTRING CKBitmapData::GetSlotFileName(int Slot) {
JUMP(0x24030170);
}
Expand Down Expand Up @@ -152,14 +148,6 @@ NAKED CKBOOL CKBitmapData::HasOriginalFile() {
UNDEFINED;
}

NAKED void CKBitmapData::SetDesiredVideoFormat(VX_PIXELFORMAT pf) {
JUMPV(0x8c);
}

NAKED VX_PIXELFORMAT CKBitmapData::GetDesiredVideoFormat() {
UNDEFINED;
}

NAKED CKBOOL CKBitmapData::ResizeImages(int Width, int Height) {
JUMP(0x2403032E);
}
Expand Down
3 changes: 0 additions & 3 deletions virtools/CKBitmapData.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ class BML_EXPORT CKBitmapData {
CKMovieReader* GetMovieReader();
CKBYTE* LockSurfacePtr(int Slot = -1);
CKBOOL ReleaseSurfacePtr(int Slot = -1);
CKBOOL FlushSurfacePtr(int Slot = -1);
CKSTRING GetSlotFileName(int Slot);
CKBOOL SetSlotFileName(int Slot, CKSTRING Filename);
int GetWidth();
Expand Down Expand Up @@ -109,8 +108,6 @@ class BML_EXPORT CKBitmapData {
void SetVolumeMap(CKBOOL VolumeMap);
CKBOOL IsVolumeMap();
CKBOOL HasOriginalFile();
void SetDesiredVideoFormat(VX_PIXELFORMAT pf);
VX_PIXELFORMAT GetDesiredVideoFormat();
CKBOOL ResizeImages(int Width, int Height);
void SetDynamicHint(CKBOOL Dynamic);
CKBOOL GetDynamicHint();
Expand Down
32 changes: 10 additions & 22 deletions virtools/CKTexture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,34 +56,22 @@ NAKED CKBOOL CKTexture::GetSystemTextureDesc(VxImageDescEx& desc) {
JUMPV(0x88);
}

NAKED CKBOOL CKTexture::SetUserMipMapMode(CKBOOL UserMipmap) {
UNDEFINED;
NAKED void CKTexture::SetDesiredVideoFormat(VX_PIXELFORMAT pf) {
JUMPV(0x8c);
}

NAKED BOOL CKTexture::GetUserMipMapLevel(int Level, VxImageDescEx& ResultImage) {
UNDEFINED;
}

NAKED int CKTexture::GetRstTextureIndex() {
UNDEFINED;
}

NAKED BOOL CKTexture::LockVideoMemory(VxImageDescEx& Surface, int MipLevel, VX_LOCKFLAGS Flags) {
UNDEFINED;
}

NAKED void CKTexture::UnlockVideoMemory(int MipLevel) {
UNDEFINED;
NAKED VX_PIXELFORMAT CKTexture::GetDesiredVideoFormat() {
JUMPV(0x90);
}

NAKED BOOL CKTexture::VideoToSystemMemory() {
UNDEFINED;
NAKED CKBOOL CKTexture::FlushSurfacePtr(int Slot) {
JUMPV(0x94);
}

NAKED void* CKTexture::GetRstTextureObject() {
UNDEFINED;
NAKED BOOL CKTexture::GetUserMipMapLevel(int Level, VxImageDescEx& ResultImage) {
JUMPV(0x98);
}

NAKED BOOL CKTexture::EnsureVideoMemory(CKRenderContext* ctx, CKBOOL Clamping) {
UNDEFINED;
NAKED int CKTexture::GetRstTextureIndex() {
JUMPV(0x9c);
}
9 changes: 3 additions & 6 deletions virtools/CKTexture.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,11 @@ class BML_EXPORT CKTexture : public CKBeObject, public CKBitmapData {
CKBOOL GetVideoTextureDesc(VxImageDescEx& desc);
VX_PIXELFORMAT GetVideoPixelFormat();
CKBOOL GetSystemTextureDesc(VxImageDescEx& desc);
CKBOOL SetUserMipMapMode(CKBOOL UserMipmap);
void SetDesiredVideoFormat(VX_PIXELFORMAT pf);
VX_PIXELFORMAT GetDesiredVideoFormat();
CKBOOL FlushSurfacePtr(int Slot = -1);
BOOL GetUserMipMapLevel(int Level, VxImageDescEx& ResultImage);
int GetRstTextureIndex();
BOOL LockVideoMemory(VxImageDescEx& Surface, int MipLevel, VX_LOCKFLAGS Flags = VX_LOCK_DEFAULT);
void UnlockVideoMemory(int MipLevel);
BOOL VideoToSystemMemory();
void* GetRstTextureObject();
BOOL EnsureVideoMemory(CKRenderContext* ctx, CKBOOL Clamping = FALSE);

protected:
CKTexture() {};
Expand Down

0 comments on commit 43d0b54

Please sign in to comment.