Skip to content

Commit

Permalink
Updated premake5
Browse files Browse the repository at this point in the history
  • Loading branch information
AdventureT committed Jan 1, 2024
1 parent dbeda82 commit 60cb76e
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 9 deletions.
2 changes: 2 additions & 0 deletions Toshi/Include/TKernel/TObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#include "Defines.h"
#include "TCString.h"
#include <new>


TOSHI_NAMESPACE_BEGIN

// TClassProps definitions
Expand Down
2 changes: 1 addition & 1 deletion Toshi/Include/TRenderD3D/TTextureResourceD3D.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#include "TRender/TTextureResource.h"
#include <d3dx8.h>
#include <d3dx8tex.h>

TOSHI_NAMESPACE_BEGIN

Expand Down
10 changes: 5 additions & 5 deletions Toshi/Source/TRender/TRenderInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ TBOOL TRenderInterface::Create(TKernelInterface* pKernelInterface)
return TTRUE;
}

class TVertexFactoryResource : public TVertexFactoryFormat, public TResource
{
DECLARE_DYNAMIC(TVertexFactoryResource)
};
//class TVertexFactoryResource : public TVertexFactoryFormat, public TResource
//{
// DECLARE_DYNAMIC(TVertexFactoryResource)
//};

IMPLEMENT_DYNCREATE(TVertexFactoryResource, TResource)
//IMPLEMENT_DYNCREATE(TVertexFactoryResource, TResource)

TBOOL TRenderInterface::CreateSystemResources()
{
Expand Down
10 changes: 10 additions & 0 deletions Toshi/Source/TRender/TTextureResource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ TOSHI_NAMESPACE_USING

IMPLEMENT_DYNAMIC(TTextureResource, TResource)

TBOOL TTextureResource::Create(TPVOID a_pData, TUINT a_uiDataSize, TUINT a_eTextureFlags, TUINT a_uiWidth, TUINT a_uiHeight)
{
return TTRUE;
}

TBOOL TTextureResource::Create(TPCCHAR a_szFileName, TUINT a_eTextureFlags)
{
return TTRUE;
}

TBOOL TTextureResource::CreateEx(TPVOID a_pData, TUINT a_uiDataSize, TUINT a_uiWidth, TUINT a_uiHeight, TUINT a_uiMipLevels, TTEXTURERESOURCEFORMAT a_eFormat, TUINT a_uiMipmapFlags)
{
return TResource::Create();
Expand Down
13 changes: 10 additions & 3 deletions Toshi/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ project ("TRenderInterface")
links
{
"winmm.lib",
"TKernelInterface"
"TKernelInterface",
}

includedirs
Expand Down Expand Up @@ -192,17 +192,24 @@ project ("TRenderD3DInterface")
"d3dx8.lib",
"dxguid.lib",
"dxgi.lib",
"DxErr8.lib",
"legacy_stdio_definitions.lib",
"winmm.lib",
"dinput8.lib",
"TKernelInterface",
"TRenderInterface"
}

includedirs
{
"Include",
"Include"
}

externalincludedirs
{
"%{IncludeDir.dx8}"
}


libdirs
{
"%{LibDir.dx8}"
Expand Down
Binary file modified vendor/premake/premake5.exe
Binary file not shown.

0 comments on commit 60cb76e

Please sign in to comment.