cmdfx 1.0.1
Lightweight game engine for your terminal
Loading...
Searching...
No Matches
util.hpp File Reference

C++ Extensions for CmdFX Utilities. More...

#include "cmdfx/core/util.h"

Go to the source code of this file.

Namespaces

namespace  CmdFX
 Primary namespace for CmdFX.

Functions

int CmdFX::getTickSpeed ()
int CmdFX::setTickSpeed (int tickspeed)
unsigned long CmdFX::currentTimeMillis ()
unsigned long long CmdFX::currentTimeNanos ()
void CmdFX::sleepMillis (unsigned long millis)
void CmdFX::sleepNanos (unsigned long long nanos)
double CmdFX::clamp (double value, double min, double max)
float CmdFX::clamp (float value, float min, float max)
int CmdFX::clamp (int value, int min, int max)
double CmdFX::lerp (double a, double b, double t)
float CmdFX::lerp (float a, float b, float t)
int CmdFX::lerp (int a, int b, double t)
void CmdFX::rgbToHsv (int rgb, double *h, double *s, double *v)
int CmdFX::hsvToRgb (double h, double s, double v)
int CmdFX::lerpColor (int rgb1, int rgb2, double t)
ThreadID CmdFX::launchThread (void(*func)(void *), void *arg)
int CmdFX::joinThread (ThreadID thread)
int CmdFX::detachThread (ThreadID thread)
void * CmdFX::getInternalMutex (int id)
int CmdFX::lockMutex (void *mutex)
int CmdFX::unlockMutex (void *mutex)
void CmdFX::tryLockMutex (int id)
void CmdFX::tryUnlockMutex (int id)
int CmdFX::isThreadSafeEnabled ()
int CmdFX::initThreadSafe ()
int CmdFX::destroyThreadSafe ()

Detailed Description

C++ Extensions for CmdFX Utilities.

Author
Gregory Mitchell (me@gm.nosp@m.itch.nosp@m.215.x.nosp@m.yz)
Version
0.2.1
Date
2025-05-20