Initial Cross Platform Work

This commit is contained in:
2025-04-24 16:39:24 +02:00
parent dbffb7f316
commit 13c2869ba8
170 changed files with 18611 additions and 10292 deletions

View File

@ -23,8 +23,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
#include <pd/core/tween.hpp>
#include <pd/drivers/hid.hpp>
#include <pd/core/core.hpp>
#include <pd/overlays/overlay.hpp>
namespace PD {
@ -153,11 +152,11 @@ class Keyboard : public Overlay {
static int too;
// Tween for selector Movement
Tween<vec2> selector;
Tween<fvec2> selector;
// Tween for Selector Size
Tween<vec2> sel_szs;
Tween<fvec2> sel_szs;
// Current Cell size
vec2 cselszs;
fvec2 cselszs;
// selector index
int raw_sel;
@ -169,9 +168,9 @@ class Keyboard : public Overlay {
// Remove Animation
bool rem = false;
/// Probably a float would've done the job as well ;)
Tween<vec2> flymgr;
Tween<fvec2> flymgr;
// Secode Flymanager
Tween<vec2> chflymgr;
Tween<fvec2> chflymgr;
// Show Help
bool show_help = true;
};

View File

@ -23,8 +23,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
#include <pd/core/color.hpp>
#include <pd/core/tween.hpp>
#include <pd/core/core.hpp>
#include <pd/lithium/renderer.hpp>
namespace PD {
@ -68,10 +67,10 @@ class MessageMgr : public PD::SmartCtor<MessageMgr> {
PD::Color col_bg; // Background Color
PD::Color col_text; // Text Color
float lifetime = 0.f; // LifeTime
PD::Tween<vec2> pos; // Position effect
PD::Tween<fvec2> pos; // Position effect
std::string title; // Title
std::string msg; // Message
vec2 size; // Size of the Background
fvec2 size; // Size of the Background
bool tbr = false; // To be Removed ?
bool kill = false; // Instant Kill
int s = 0; // Slot

View File

@ -23,8 +23,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
#include <pd/core/common.hpp>
#include <pd/drivers/hid.hpp>
#include <pd/core/core.hpp>
#include <pd/lithium/renderer.hpp>
namespace PD {

View File

@ -23,7 +23,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
#include <pd/drivers/hid.hpp>
#include <pd/core/core.hpp>
#include <pd/lithium/renderer.hpp>
#include <pd/overlays/overlay.hpp>

View File

@ -23,7 +23,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
#include <pd/drivers/hid.hpp>
#include <pd/core/core.hpp>
#include <pd/overlays/overlay.hpp>
namespace PD {
@ -74,7 +74,7 @@ class Performance : public Overlay {
* @param text Text to Show
* @param ren Renderer Reference
*/
void Line(vec2& pos, const std::string& text, LI::Renderer::Ref ren);
void Line(fvec2& pos, const std::string& text, LI::Renderer::Ref ren);
// Trace String Average
std::string TSA(const std::string& id);
// Described in Keyboard

View File

@ -23,8 +23,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
#include <pd/core/tween.hpp>
#include <pd/drivers/hid.hpp>
#include <pd/core/core.hpp>
#include <pd/overlays/overlay.hpp>
#include <pd/ui7/ui7.hpp>
@ -68,7 +67,7 @@ class SettingsMenu : public Overlay {
// Some Animation
bool rem = false;
Tween<vec2> flymgr;
Tween<fvec2> flymgr;
// Custom UI7 Context
UI7::Context::Ref ctx;