@@ -4,3 +4,4 @@
|
|||||||
/c_cpp_properties.json
|
/c_cpp_properties.json
|
||||||
/tasks.json
|
/tasks.json
|
||||||
/settings.json
|
/settings.json
|
||||||
|
/ps2dev-intellisense
|
||||||
@@ -148,7 +148,7 @@ Distributed under the Apache License 2.0 License. See `LICENSE` for more informa
|
|||||||
Without these guys, Tyra would not happen:
|
Without these guys, Tyra would not happen:
|
||||||
* [Dr Henry Fortuna](http://ps2-edu.tensioncore.com/index.html) - for code sources, PS2 academy tutorials
|
* [Dr Henry Fortuna](http://ps2-edu.tensioncore.com/index.html) - for code sources, PS2 academy tutorials
|
||||||
* Whole [PS2DEV](https://github.com/ps2dev) team, and specially to [Rick Gaiser](https://github.com/rickgaiser), [fjtrujy](https://github.com/fjtrujy) - for a lot of good tips!
|
* Whole [PS2DEV](https://github.com/ps2dev) team, and specially to [Rick Gaiser](https://github.com/rickgaiser), [fjtrujy](https://github.com/fjtrujy) - for a lot of good tips!
|
||||||
* [Wellington Carvalho](https://github.com/Wellinator), [André Guilheme](https://github.com/wolfysdl) - for testing, contributing to Tyra and sharing cool ideas!
|
* [Wellington Carvalho](https://github.com/Wellinator), [André Guilheme](https://github.com/Wolf3s) - for testing, contributing to Tyra and sharing cool ideas!
|
||||||
* [Leonardo Ono](https://github.com/leonardo-ono) - for software renderer example (with clipping!)
|
* [Leonardo Ono](https://github.com/leonardo-ono) - for software renderer example (with clipping!)
|
||||||
* [Lukasz D.K.](https://github.com/lukaszdk) - for huge archive of PS2 stuff
|
* [Lukasz D.K.](https://github.com/lukaszdk) - for huge archive of PS2 stuff
|
||||||
* [Guilherme Lampert](https://github.com/glampert) - for code sources
|
* [Guilherme Lampert](https://github.com/glampert) - for code sources
|
||||||
|
|||||||
@@ -11,6 +11,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <limits.h>
|
||||||
|
#include <syslimits.h>
|
||||||
|
|
||||||
namespace Tyra {
|
namespace Tyra {
|
||||||
|
|
||||||
@@ -42,9 +44,9 @@ class FileUtils {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
// Argv name+path & just path
|
// Argv name+path & just path
|
||||||
char cwd[255];
|
char cwd[NAME_MAX];
|
||||||
char elfName[255];
|
char elfName[NAME_MAX];
|
||||||
char elfPath[255 - 14];
|
char elfPath[NAME_MAX - 14];
|
||||||
|
|
||||||
void setPathInfo(const char* path);
|
void setPathInfo(const char* path);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -24,13 +24,14 @@ class TextureBuilderData {
|
|||||||
std::string name;
|
std::string name;
|
||||||
|
|
||||||
int width, height;
|
int width, height;
|
||||||
unsigned char* data;
|
u8* data;
|
||||||
TextureBpp bpp;
|
TextureBpp bpp;
|
||||||
unsigned char gsComponents;
|
u8 gsComponents;
|
||||||
|
|
||||||
int clutWidth, clutHeight;
|
int clutWidth, clutHeight;
|
||||||
unsigned char* clut;
|
u8* clut;
|
||||||
TextureBpp clutBpp;
|
TextureBpp clutBpp;
|
||||||
unsigned char clutGsComponents;
|
u8 clutGsComponents;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Tyra
|
} // namespace Tyra
|
||||||
|
|||||||
@@ -36,9 +36,6 @@ class Math {
|
|||||||
static int randomi(const int& min, const int& max);
|
static int randomi(const int& min, const int& max);
|
||||||
static bool equalf(const float& a, const float& b,
|
static bool equalf(const float& a, const float& b,
|
||||||
const float& epsilon = 0.00001F);
|
const float& epsilon = 0.00001F);
|
||||||
|
|
||||||
private:
|
|
||||||
Math();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Tyra
|
} // namespace Tyra
|
||||||
|
|||||||
@@ -12,8 +12,7 @@
|
|||||||
#include <tamtypes.h>
|
#include <tamtypes.h>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <kernel.h>
|
#include <kernel.h>
|
||||||
#include <limits.h>
|
|
||||||
#include <syslimits.h>
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include "file/file_utils.hpp"
|
#include "file/file_utils.hpp"
|
||||||
|
|||||||
Reference in New Issue
Block a user