ASW Lib
A.D.S. Games SDL Wrapper Library. A library targeted at Allegro4 users who want to switch to SDL3 and use modern c++.
Loading...
Searching...
No Matches
util.cpp File Reference
#include "./asw/modules/util.h"
#include <SDL3/SDL.h>
#include <SDL3_image/SDL_image.h>
#include <SDL3_ttf/SDL_ttf.h>
#include <string_view>
#include "./asw/modules/log.h"
#include "./lru_cache.h"
Include dependency graph for util.cpp:

Go to the source code of this file.

Classes

struct  anonymous_namespace{util.cpp}::TextSizeCacheKey
 
struct  anonymous_namespace{util.cpp}::TextSizeKeyView
 
struct  anonymous_namespace{util.cpp}::TextSizeKeyHash
 
struct  anonymous_namespace{util.cpp}::TextSizeKeyEqual
 

Namespaces

namespace  anonymous_namespace{util.cpp}
 

Functions

TextSizeKeyView anonymous_namespace{util.cpp}::view (const TextSizeCacheKey &key)
 
const TextSizeKeyView & anonymous_namespace{util.cpp}::view (const TextSizeKeyView &key)
 

Variables

constexpr std::size_t anonymous_namespace{util.cpp}::TEXT_SIZE_CACHE_LIMIT = 512
 
asw::detail::LruCache< TextSizeCacheKey, asw::Vec2< int >, TextSizeKeyHash, TextSizeKeyEqual > anonymous_namespace{util.cpp}::text_size_cache (TEXT_SIZE_CACHE_LIMIT)