912{
916 IDirect3D9 *d3d;
918
920
922
923
929 {
932 }
934
935 object =
calloc(1,
sizeof(*
object));
936 if (!object)
937 {
940 }
942 object->ref = 1;
944 object->desc = *
desc;
945
948 {
951 }
952
956 {
960 }
962
964
966 {
971 }
972
974
975 object->texture_size = object->glyph_size;
976 if (
object->glyph_size < 256)
977 object->texture_size =
min(256,
object->texture_size * 16);
978
979 object->glyphs_per_texture = object->texture_size * object->texture_size
980 / (object->glyph_size * object->glyph_size);
981 object->texture_pos = object->glyphs_per_texture;
982
984 *
font = &
object->ID3DXFont_iface;
985
987}
#define IDirect3DDevice9_GetDirect3D(p, a)
#define IDirect3DDevice9_GetCreationParameters(p, a)
#define IDirect3D9_Release(p)
#define IDirect3D9_CheckDeviceFormat(p, a, b, c, d, e, f)
#define IDirect3DDevice9_AddRef(p)
#define IDirect3DDevice9_GetDisplayMode(p, a, b)
#define D3DXERR_INVALIDDATA
static uint32_t make_pow2(uint32_t num)
static int glyph_rb_compare(const void *key, const struct wine_rb_entry *entry)
static const ID3DXFontVtbl D3DXFont_Vtbl
BOOL WINAPI GetTextMetricsW(_In_ HDC, _Out_ LPTEXTMETRICW)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
HFONT WINAPI CreateFontW(_In_ int, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_opt_ LPCWSTR)
#define CLIP_DEFAULT_PRECIS
BOOL WINAPI DeleteDC(_In_ HDC)