Remove Win32 byte types from memory texture loaders

This commit is contained in:
notmatthewbeshay
2026-03-10 01:15:08 +11:00
parent fca297538b
commit 6026f078ac
4 changed files with 16 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
#include "../Platform/stdafx.h"
#include "MemTexture.h"
MemTexture::MemTexture(const std::wstring& _url, PBYTE pbData,DWORD dwBytes, MemTextureProcessor *processor)
MemTexture::MemTexture(const std::wstring& _url, std::uint8_t *pbData, std::uint32_t dataBytes, MemTextureProcessor *processor)
{
// 4J - added
count = 1;
@@ -14,7 +14,7 @@ MemTexture::MemTexture(const std::wstring& _url, PBYTE pbData,DWORD dwBytes, Mem
// load the texture, and process it
//loadedImage=Textures::getTexture()
// 4J - remember to add deletes in here for any created BufferedImages when implemented
loadedImage = new BufferedImage(pbData,dwBytes);
loadedImage = new BufferedImage(pbData,dataBytes);
if(processor==NULL)
{
@@ -30,4 +30,4 @@ MemTexture::MemTexture(const std::wstring& _url, PBYTE pbData,DWORD dwBytes, Mem
MemTexture::~MemTexture()
{
delete loadedImage;
}
}