![]() |
GA::kit v0.3
G&A's in-house C++ application framework
|
Namespaces | |
| namespace | ease |
| namespace | json |
| namespace | math |
Classes | |
| class | Bounds |
| struct | Bounds3D |
| A 3D axis-aligned bounding box. More... | |
| class | Component |
| struct | Event |
| struct | FontStyle |
| class | Image |
| struct | KeyEvent |
| struct | MatrixScope |
| struct | MouseEvent |
| class | Node |
| Node represents a basic "node" (or view) in the scenegraph. More... | |
| class | Paragraph |
| struct | Rect |
| A 2D axis-aligned rectangle, with x,y (float) position and w,h (float) size components. More... | |
| class | Renderer |
| class | ResourceCache |
| resource cache class, represents a container for a resource type organized by name (string) More... | |
| class | Scene |
| Scene is a view controller. More... | |
| struct | scope_guard |
| class | Timeline |
| struct | Timeout |
| class | TimeoutManager |
| class | Timer |
| class | Tint |
| struct | TouchEvent |
| class | TouchZone |
| class | Transform |
| Transform represents a basic model matrix: translate * rotate * scale Stored internally as ga::mat4 (4x4 matrix) as well as: More... | |
| class | Tween |
| class | TweenBase |
Typedefs | |
| using | Color = ga::vec4 |
| using | EasingFn = std::function< float(float)> |
| using | FontCache = ResourceCache< Font > |
| using | Json = nlohmann::json |
| template<class... T> | |
| using | Signal = sigslot::signal< T... > |
| using | Connection = sigslot::connection |
| using | ScopedConnection = sigslot::scoped_connection |
| using | Observer = sigslot::observer |
| using | Clock = std::chrono::steady_clock |
| using | TimePoint = std::chrono::time_point< Clock > |
| using | Millis = std::chrono::milliseconds |
| using | Uuid = xg::Guid |
Enumerations | |
| enum class | EaseType { LINEAR , EXPO_IN , EXPO_OUT , EXPO_IN_OUT , CUBE_IN_QUAD_OUT , MATERIAL , MATERIAL_ENTER , MATERIAL_EXIT , CUSTOM , NUM_TYPES , DEFAULT = LINEAR } |
| enum class | HorzAlign { LEFT , CENTER , RIGHT } |
| enum class | VertAlign { TOP , MIDDLE , BOTTOM } |
| enum class | FitMode { NONE , FIT , STRETCH , COVER , FIT_WIDTH , FIT_HEIGHT , FIT_DEPTH } |
| enum class | MatrixType { MODEL , VIEW , PROJECTION } |
Functions | |
| std::function< float(float)> | easeFn (const EaseType &type) |
| FontCache & | fontCache () |
| void | from_json (const ga::Json &j, ga::vec4 &v) |
| void | to_json (ga::Json &j, const ga::vec4 &v) |
| void | from_json (const ga::Json &j, ga::quat &q) |
| void | to_json (ga::Json &j, const ga::quat &q) |
| void | from_json (const ga::Json &j, ga::vec3 &v) |
| void | to_json (ga::Json &j, const ga::vec3 &v) |
| void | from_json (const ga::Json &j, ga::vec2 &v) |
| void | to_json (ga::Json &j, const ga::vec2 &v) |
| void | from_json (const ga::Json &j, ga::mat4 &m) |
| void | to_json (ga::Json &j, const ga::mat4 &m) |
| vec2 | anchor (HorzAlign h, VertAlign v) |
| vec3 | calcScaleToFit (const vec3 &sourceSize, const vec3 &containerSize, const FitMode &fitMode) |
| vec2 | calcScaleToFit (const vec2 &sourceSize, const vec2 &containerSize, const FitMode &fitMode) |
| template<typename T > | |
| T | toDegrees (const T &radians) |
| double | toDegrees (const double &radians) |
| template<typename T > | |
| T | toRadians (const T °rees) |
| double | toRadians (const double °rees) |
| template<typename T > | |
| const T & | clamp (const T &val, const T &min, const T &max) |
| Clamp a value between a minimum and a maximum. | |
| template<typename T > | |
| T | map (const T &val, const T &inMin, const T &inMax, const T &outMin, const T &outMax, bool bClamp=false) |
| Map a value from one range to another. | |
| float | map (const float &val, const float &inMin, const float &inMax, const float &outMin, const float &outMax, bool bClamp=false) |
| template<typename T > | |
| T | lerp (const T &a, const T &b, const T &pct) |
| template<typename T > | |
| T | lerp (const T &a, const T &b, float pct) |
| float | lerp (float a, float b, float pct) |
| quat | lerp (const quat &a, const quat &b, float pct) |
| quat | slerp (const quat &a, const quat &b, float pct) |
| float | cubicBezier (float x, float x1, float y1, float x2, float y2) |
| template<typename T > | |
| T | interpolate (const T &a, const T &b, float pct, std::function< float(float)> easeFn, bool bClamp=false) |
| Renderer & | getRenderer () |
| template<class ResourceT , class... Args> | |
| bool | loadResource (ResourceT &r, Args... args) |
| long | timeMillis (const TimePoint &timePoint) |
| long | timeMillis () |
| long | durMillis (const TimePoint &begin, const TimePoint &end) |
| std::ostream & | operator<< (std::ostream &stream, const TimePoint &timePoint) |
| std::vector< std::string > | splitString (const std::string &str, char delim=' ') |
| std::string | toLower (std::string str) |
| std::string | toUpper (std::string str) |
| Uuid | newUuid () |
| using ga::Clock = typedef std::chrono::steady_clock |
| using ga::Color = typedef ga::vec4 |
| using ga::Connection = typedef sigslot::connection |
| using ga::EasingFn = typedef std::function<float( float )> |
| using ga::FontCache = typedef ResourceCache<Font> |
| using ga::Json = typedef nlohmann::json |
| using ga::Millis = typedef std::chrono::milliseconds |
| using ga::Observer = typedef sigslot::observer |
| using ga::ScopedConnection = typedef sigslot::scoped_connection |
| using ga::Signal = typedef sigslot::signal<T...> |
| using ga::TimePoint = typedef std::chrono::time_point<Clock> |
| using ga::Uuid = typedef xg::Guid |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
inline |
|
inline |
|
inline |
Clamp a value between a minimum and a maximum.
| T | type must support < and > comparison |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| bool ga::loadResource | ( | ResourceT & | r, |
| Args... | args | ||
| ) |
|
inline |
|
inline |
Map a value from one range to another.
Optionally, clamp the result to stay within the output range.
| T | type must support +, -, /, * operators (and <,> for clamp) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |