Add agl as submodule

This commit is contained in:
MonsterDruide1 2021-07-14 21:12:35 +02:00
parent d13da8bbfd
commit 8f70a3ac62
8 changed files with 10 additions and 48 deletions

3
.gitmodules vendored
View File

@ -4,3 +4,6 @@
[submodule "include/NintendoSDK"] [submodule "include/NintendoSDK"]
path = include/NintendoSDK path = include/NintendoSDK
url = https://github.com/open-ead/nnheaders url = https://github.com/open-ead/nnheaders
[submodule "include/agl"]
path = include/agl
url = https://github.com/open-ead/agl

View File

@ -33,4 +33,7 @@ add_subdirectory(include/NintendoSDK)
target_link_libraries(odyssey PUBLIC NintendoSDK) target_link_libraries(odyssey PUBLIC NintendoSDK)
add_subdirectory(include/sead) add_subdirectory(include/sead)
target_link_libraries(odyssey PUBLIC sead) target_link_libraries(odyssey PUBLIC sead)
add_subdirectory(include/agl)
target_link_libraries(odyssey PUBLIC agl)

1
include/agl Submodule

@ -0,0 +1 @@
Subproject commit e6bd74df66d65f387c575a17dc5949531d38dbdd

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#include "nn/g3d.h" #include <nn/g3d/ResFile.h>
#include <filedevice/seadFileDevice.h> #include <filedevice/seadFileDevice.h>
#include <filedevice/seadArchiveFileDevice.h> #include <filedevice/seadArchiveFileDevice.h>
#include <resource/seadResource.h> #include <resource/seadResource.h>

View File

@ -1,3 +0,0 @@
#pragma once
#include <nn/g3d/g3d_ResFile.h>

View File

@ -1,24 +0,0 @@
#pragma once
#include "nn/util/util_AccessorBase.h"
namespace nn
{
namespace g3d
{
struct ResFileData
{
// empty for now
};
class ResFile : public nn::util::AccessorBase<ResFileData>
{
public:
static ResFile* ResCast(void *);
void ReleaseTexture();
void Reset();
};
};
};

View File

@ -1,17 +0,0 @@
#pragma once
namespace nn
{
namespace util
{
template<typename T>
class AccessorBase : protected T
{
protected:
AccessorBase();
public:
typedef T value_type;
};
};
};

View File

@ -4,8 +4,7 @@
#include <heap/seadHeap.h> #include <heap/seadHeap.h>
#include <heap/seadHeapMgr.h> #include <heap/seadHeapMgr.h>
#include <resource/seadResource.h> #include <resource/seadResource.h>
#include <agl/g3d/g3dResFile.h>
#include <agl/g3d.h>
namespace al namespace al
{ {