doc fixes, added irx load error

This commit is contained in:
Sandro Sobczyński
2020-11-03 21:48:59 +01:00
parent 9e3ed74b45
commit 52518540f3
5 changed files with 13 additions and 7 deletions
-2
View File
@@ -44,8 +44,6 @@ private:
Game *game; Game *game;
s32 mainThreadId; s32 mainThreadId;
static void wakeup(s32 t_alarmId, u16 t_time, void *t_common); static void wakeup(s32 t_alarmId, u16 t_time, void *t_common);
// ThreadManager threadManager;
}; };
#endif #endif
+5 -2
View File
@@ -21,7 +21,10 @@
#include <draw_sampling.h> #include <draw_sampling.h>
#include "./anim_state.hpp" #include "./anim_state.hpp"
/** Class which have common types for all 3D objects */ /**
* Class which have contain 3D object data.
* External data can be loaded via loadXXX() methods.
*/
class Mesh class Mesh
{ {
@@ -51,7 +54,7 @@ public:
/** Returns material, which is a mesh "subgroup". */ /** Returns material, which is a mesh "subgroup". */
MeshMaterial &getMaterial(const u32 &i) const { return frames[0].getMaterial(i); }; MeshMaterial &getMaterial(const u32 &i) const { return frames[0].getMaterial(i); };
/** Auto count of frames. Static object (not animated) will have only 1 frame. */ /** Count of frames. Static object (not animated) will have only 1 frame. */
const u32 &getFramesCount() const { return framesCount; }; const u32 &getFramesCount() const { return framesCount; };
/** Count of vertices. */ /** Count of vertices. */
+2 -1
View File
@@ -15,7 +15,8 @@
#include "./math/vector3.hpp" #include "./math/vector3.hpp"
#include "./math/plane.hpp" #include "./math/plane.hpp"
/** Class which contains draw instructions for part mesh of mesh. /**
* Class which contains draw instructions for part of mesh.
* Mesh can have many materials. * Mesh can have many materials.
* For example, car mesh can have three materials: * For example, car mesh can have three materials:
* body, tires and windows. * body, tires and windows.
+2 -2
View File
@@ -20,8 +20,8 @@
/** /**
* Class which contains texture data. * Class which contains texture data.
* Textures are paired with meshes via addUsage(), * Textures are paired with meshes via addLink() and
* removeUsage() functions which use meshId and materialId. * removeLink() functions which use meshId and materialId.
*/ */
class MeshTexture class MeshTexture
{ {
+4
View File
@@ -78,7 +78,11 @@ void Audio::loadModules()
{ {
PRINT_LOG("Modules loading started (LIBSD, AUDSRV)"); PRINT_LOG("Modules loading started (LIBSD, AUDSRV)");
ret = SifLoadModule("rom0:LIBSD", 0, NULL); ret = SifLoadModule("rom0:LIBSD", 0, NULL);
if (ret == -203)
PRINT_ERR("LIBSD loading failed!");
ret = SifLoadModule("host:AUDSRV.IRX", 0, NULL); ret = SifLoadModule("host:AUDSRV.IRX", 0, NULL);
if (ret == -203)
PRINT_ERR("AUDSRV.IRX loading failed!");
PRINT_LOG("Modules loaded"); PRINT_LOG("Modules loaded");
} }