mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-18 17:29:17 +01:00
1d2854c777
*Fixed issue with crashing carousel when switching from empty game list to none empty list. *Added download for Full HQ & LQ Covers. When both are checked HQ Covers are prioritized. *Added support for Full HQ & LQ Covers: Full covers are currently used only in the GameInfo Screen (Press 2). The Box can be rotated in there with the Nunchuck. When the box is clicked it will jump to the midlle of the screen. Here it can be rotated with Nunchuck & Wiimote D-Pad. Also it can be zoomed in/out with the PLUS or MINUS buttons. Zoomed in covers are currently cut off when going too far into the screen because the axis had to be layed to the middle to keep the symmetry. Don't report issues about that. It's known. Another use of full covers might follow with a new layout if we think of something nice ;). *Added support for different box colors. Box colors are taken from WiiTDB so if you get a wrong color complain at WiiTDB :P.
46 lines
904 B
C++
46 lines
904 B
C++
#ifndef BOXMESH_HPP_
|
|
#define BOXMESH_HPP_
|
|
|
|
//Box mesh from hibern
|
|
|
|
// Quick and dirty hardcoded DVD box mesh
|
|
// Should be replaced by a true mesh loader
|
|
// Lacks normals
|
|
|
|
class CTexCoord
|
|
{
|
|
public:
|
|
float x;
|
|
float y;
|
|
public:
|
|
CTexCoord(void) { x = 0.f; y = 0.f; }
|
|
CTexCoord(float px, float py) { x = px; y = py; }
|
|
};
|
|
|
|
struct SMeshVert
|
|
{
|
|
guVector pos;
|
|
CTexCoord texCoord;
|
|
};
|
|
|
|
// Flat cover
|
|
extern const SMeshVert g_flatCoverMesh[];
|
|
extern const u32 g_flatCoverMeshSize;
|
|
|
|
// Box
|
|
extern const SMeshVert g_boxMeshQ[]; // Quads
|
|
extern const u32 g_boxMeshQSize;
|
|
extern const SMeshVert g_boxMeshT[]; // Triangles
|
|
extern const u32 g_boxMeshTSize;
|
|
// Box cover
|
|
extern const SMeshVert g_boxBackCoverMesh[];
|
|
extern const u32 g_boxBackCoverMeshSize;
|
|
extern const SMeshVert g_boxCoverMesh[];
|
|
extern const u32 g_boxCoverMeshSize;
|
|
//
|
|
extern const float g_boxCoverYCenter;
|
|
extern const float g_coverYCenter;
|
|
|
|
|
|
#endif
|