102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
text.c File Reference
#include "pcdogs/math/constants.h"
#include "pcdogs/game/constants.h"
#include "pcdogs/level/constants.h"
#include "pcdogs/ui/constants.h"
#include "pcdogs/menu/constants.h"
#include "pcdogs/graphics/constants.h"
#include "pcdogs/graphics/functions.h"
#include "pcdogs/graphics/globals.h"
#include "pcdogs/graphics/types.h"
#include "pcdogs/material/functions.h"
#include "pcdogs/material/types.h"
#include "pcdogs/package/globals.h"
#include "pcdogs/platform/functions.h"
#include "pcdogs/ui/functions.h"
#include <math.h>
#include <stdarg.h>
#include <string.h>

Go to the source code of this file.

Functions

void UI_RenderCenteredNumber (uint32_t packed_center_xy, int32_t number)
int32_t UI_ComputeStringWidth (char const *text)
static uint32_t glyph_width (const struct Material_TableEntry *material)
static void render_text (uint32_t packed_xy, const char *text, uint32_t flags, struct Material_RefEntry *font, bool fixed_spacing, uint32_t advance)
void UI_RenderText (uint32_t packed_xy, const char *text, uint32_t text_flags, void *font_context)
void UI_RenderFixedAdvanceText (uint32_t packed_xy, const char *text, uint32_t text_flags, void *font_context, uint32_t glyph_advance)

Function Documentation

◆ glyph_width()

uint32_t glyph_width ( const struct Material_TableEntry * material)
static

Definition at line 168 of file text.c.

◆ render_text()

void render_text ( uint32_t packed_xy,
const char * text,
uint32_t flags,
struct Material_RefEntry * font,
bool fixed_spacing,
uint32_t advance )
static

Definition at line 173 of file text.c.

◆ UI_ComputeStringWidth()

int32_t UI_ComputeStringWidth ( char const * text)

Definition at line 152 of file text.c.

◆ UI_RenderCenteredNumber()

void UI_RenderCenteredNumber ( uint32_t packed_center_xy,
int32_t number )

Definition at line 22 of file text.c.

◆ UI_RenderFixedAdvanceText()

void UI_RenderFixedAdvanceText ( uint32_t packed_xy,
const char * text,
uint32_t text_flags,
void * font_context,
uint32_t glyph_advance )

Definition at line 232 of file text.c.

◆ UI_RenderText()

void UI_RenderText ( uint32_t packed_xy,
const char * text,
uint32_t text_flags,
void * font_context )

Definition at line 226 of file text.c.