Skip to content

Commit

Permalink
Minor Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AdventureT committed Dec 30, 2023
1 parent 15e8af7 commit 2cb142c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
10 changes: 9 additions & 1 deletion Toshi/Include/TRenderD3D/TTextureFactoryHAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@ class TOSHI_EXPORT TTextureFactoryHAL
{
public:

virtual TTextureResource* CreateEx(TPVOID);
enum TTEXTURERESOURCEFORMAT
{

};

virtual TTextureResource* CreateEx(TPVOID a_pData, TUINT a_uiDataSize, TUINT a_uiWidth, TUINT a_uiHeight, TUINT a_uiMipLevels, TTEXTURERESOURCEFORMAT a_eFormat, BOOL a_bNoMipLevels)
{
return TNULL;
}

};

Expand Down
12 changes: 9 additions & 3 deletions Toshi/Source/TRender/TRenderInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,17 @@ TBOOL TRenderInterface::CreateSystemResources()
TCString(" Adding base resources\n").Print();
}

TBOOL bRes = TFALSE;

m_aSysResources[SYSRESOURCE_VFACTORIES] = CreateResource(&TGetClass(TNullResource), "VFactories", TNULL);
m_aSysResources[SYSRESOURCE_VFSYSSVNDUV1] = CreateResource(TFindClass(TVertexFactoryResource, TNULL), "VFSYSSVNDUV1", GetSystemResource(SYSRESOURCE_VFACTORIES));
TVALIDADDRESS(m_aSysResources[SYSRESOURCE_VFSYSSVNDUV1]);
//m_aSysResources[SYSRESOURCE_VFSYSSVNDUV1] = CreateResource(TFindClass(TVertexFactoryResource, TNULL), "VFSYSSVNDUV1", GetSystemResource(SYSRESOURCE_VFACTORIES));
//TVALIDADDRESS(m_aSysResources[SYSRESOURCE_VFSYSSVNDUV1]);

m_aSysResources[SYSRESOURCE_TEXTUREFACTORY] = CreateResource(TFindClass(TTextureFactoryHAL, TNULL), "TextureFactory", TNULL);
bRes = m_aSysResources[SYSRESOURCE_TEXTUREFACTORY]->Create();
TASSERT(TTRUE==bRes);

return TBOOL();
return TTRUE;
}

TResource* TRenderInterface::CreateResource(const TClass* a_pClass, TPCCHAR a_szResName, TResource* a_pParent)
Expand Down

0 comments on commit 2cb142c

Please sign in to comment.