RetroArch
|
#include <string/stdstring.h>
#include "../common/d3d_common.h"
#include "../common/d3d9_common.h"
#include "../font_driver.h"
#include "../drivers/d3d_shaders/font.hlsl.d3d9.h"
Classes | |
struct | XBRESOURCE |
class | PackedResource |
struct | GLYPH_ATTR |
struct | Font_Locals_t |
struct | xdk360_video_font_t |
struct | FontFileHeaderImage_t |
struct | FontFileStrikesImage_t |
Macros | |
#define | XPR0_MAGIC_VALUE 0x30525058 |
#define | XPR1_MAGIC_VALUE 0x31525058 |
#define | XPR2_MAGIC_VALUE 0x58505232 |
#define | FONT_SCALE(d3d) ((d3d->resolution_hd_enable) ? 2 : 1) |
#define | CALCFONTFILEHEADERSIZE(x) ( sizeof(uint32_t) + (sizeof(float)* 4) + sizeof(uint16_t) + (sizeof(wchar_t)*(x)) ) |
#define | FONTFILEVERSION 5 |
Typedefs | |
typedef struct GLYPH_ATTR | GLYPH_ATTR |
Enumerations | |
enum | { RESOURCETYPE_USERDATA = ( ( 'U' << 24 ) | ( 'S' << 16 ) | ( 'E' << 8 ) | ( 'R' ) ), RESOURCETYPE_TEXTURE = ( ( 'T' << 24 ) | ( 'X' << 16 ) | ( '2' << 8 ) | ( 'D' ) ), RESOURCETYPE_VERTEXBUFFER = ( ( 'V' << 24 ) | ( 'B' << 16 ) | ( 'U' << 8 ) | ( 'F' ) ), RESOURCETYPE_INDEXBUFFER = ( ( 'I' << 24 ) | ( 'B' << 16 ) | ( 'U' << 8 ) | ( 'F' ) ), RESOURCETYPE_EOF = 0xffffffff } |
Functions | |
static INLINE void * | AllocateContiguousMemory (DWORD Size, DWORD Alignment) |
static INLINE void | FreeContiguousMemory (void *pData) |
static bool | xdk360_video_font_create_shaders (xdk360_video_font_t *font, LPDIRECT3DDEVICE9 dev) |
static void * | xdk360_init_font (void *video_data, const char *font_path, float font_size, bool is_threaded) |
static void | xdk360_free_font (void *data, bool is_threaded) |
static void | xdk360_render_msg_post (xdk360_video_font_t *font) |
static void | xdk360_render_msg_pre (xdk360_video_font_t *font) |
static void | xdk360_draw_text (xdk360_video_font_t *font, float x, float y, const wchar_t *strText) |
static void | xdk360_render_msg (video_frame_info_t *video_info, void *data, const char *str_msg, const struct font_params *params) |
Variables | |
static PackedResource | m_xprResource |
font_renderer_t | d3d_xbox360_font |
#define CALCFONTFILEHEADERSIZE | ( | x | ) | ( sizeof(uint32_t) + (sizeof(float)* 4) + sizeof(uint16_t) + (sizeof(wchar_t)*(x)) ) |
#define FONT_SCALE | ( | d3d | ) | ((d3d->resolution_hd_enable) ? 2 : 1) |
#define FONTFILEVERSION 5 |
#define XPR0_MAGIC_VALUE 0x30525058 |
#define XPR1_MAGIC_VALUE 0x31525058 |
#define XPR2_MAGIC_VALUE 0x58505232 |
typedef struct GLYPH_ATTR GLYPH_ATTR |
anonymous enum |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
font_renderer_t d3d_xbox360_font |
|
static |