RetroArch
Classes | Macros | Typedefs | Enumerations
dcommon.h File Reference
#include <dxgiformat.h>
Include dependency graph for dcommon.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  D2D1_PIXEL_FORMAT
 Description of a pixel format. More...
 
struct  D2D_POINT_2U
 Represents an x-coordinate and y-coordinate pair in two-dimensional space. More...
 
struct  D2D_POINT_2F
 Represents an x-coordinate and y-coordinate pair in two-dimensional space. More...
 
struct  D2D_VECTOR_2F
 A vector of 2 FLOAT values (x, y). More...
 
struct  D2D_VECTOR_3F
 A vector of 3 FLOAT values (x, y, z). More...
 
struct  D2D_VECTOR_4F
 A vector of 4 FLOAT values (x, y, z, w). More...
 
struct  D2D_RECT_F
 Represents a rectangle defined by the coordinates of the upper-left corner (left, top) and the coordinates of the lower-right corner (right, bottom). More...
 
struct  D2D_RECT_U
 Represents a rectangle defined by the coordinates of the upper-left corner (left, top) and the coordinates of the lower-right corner (right, bottom). More...
 
struct  D2D_SIZE_F
 Stores an ordered pair of floats, typically the width and height of a rectangle. More...
 
struct  D2D_SIZE_U
 Stores an ordered pair of integers, typically the width and height of a rectangle. More...
 
struct  D2D_MATRIX_3X2_F
 Represents a 3-by-2 matrix. More...
 
struct  D2D_MATRIX_4X3_F
 Represents a 4-by-3 matrix. More...
 
struct  D2D_MATRIX_4X4_F
 Represents a 4-by-4 matrix. More...
 
struct  D2D_MATRIX_5X4_F
 Represents a 5-by-4 matrix. More...
 

Macros

#define DCOMMON_H_INCLUDED
 
#define DX_DECLARE_INTERFACE(x)   DECLSPEC_UUID(x) DECLSPEC_NOVTABLE
 
#define CHECKMETHOD(method)   virtual DECLSPEC_NOTHROW _Must_inspect_result_ HRESULT STDMETHODCALLTYPE method
 

Typedefs

typedef enum DWRITE_MEASURING_MODE DWRITE_MEASURING_MODE
 The measuring method used for text layout. More...
 
typedef enum D2D1_ALPHA_MODE D2D1_ALPHA_MODE
 Qualifies how alpha is to be treated in a bitmap or render target containing alpha. More...
 
typedef struct D2D1_PIXEL_FORMAT D2D1_PIXEL_FORMAT
 Description of a pixel format. More...
 
typedef struct D2D_POINT_2U D2D_POINT_2U
 Represents an x-coordinate and y-coordinate pair in two-dimensional space. More...
 
typedef struct D2D_POINT_2F D2D_POINT_2F
 Represents an x-coordinate and y-coordinate pair in two-dimensional space. More...
 
typedef POINT D2D_POINT_2L
 
typedef struct D2D_VECTOR_2F D2D_VECTOR_2F
 A vector of 2 FLOAT values (x, y). More...
 
typedef struct D2D_VECTOR_3F D2D_VECTOR_3F
 A vector of 3 FLOAT values (x, y, z). More...
 
typedef struct D2D_VECTOR_4F D2D_VECTOR_4F
 A vector of 4 FLOAT values (x, y, z, w). More...
 
typedef struct D2D_RECT_F D2D_RECT_F
 Represents a rectangle defined by the coordinates of the upper-left corner (left, top) and the coordinates of the lower-right corner (right, bottom). More...
 
typedef struct D2D_RECT_U D2D_RECT_U
 Represents a rectangle defined by the coordinates of the upper-left corner (left, top) and the coordinates of the lower-right corner (right, bottom). More...
 
typedef RECT D2D_RECT_L
 
typedef struct D2D_SIZE_F D2D_SIZE_F
 Stores an ordered pair of floats, typically the width and height of a rectangle. More...
 
typedef struct D2D_SIZE_U D2D_SIZE_U
 Stores an ordered pair of integers, typically the width and height of a rectangle. More...
 
typedef struct D2D_MATRIX_3X2_F D2D_MATRIX_3X2_F
 Represents a 3-by-2 matrix. More...
 
typedef struct D2D_MATRIX_4X3_F D2D_MATRIX_4X3_F
 Represents a 4-by-3 matrix. More...
 
typedef struct D2D_MATRIX_4X4_F D2D_MATRIX_4X4_F
 Represents a 4-by-4 matrix. More...
 
typedef struct D2D_MATRIX_5X4_F D2D_MATRIX_5X4_F
 Represents a 5-by-4 matrix. More...
 
typedef D2D_POINT_2F D2D1_POINT_2F
 
typedef D2D_POINT_2U D2D1_POINT_2U
 
typedef D2D_POINT_2L D2D1_POINT_2L
 
typedef D2D_RECT_F D2D1_RECT_F
 
typedef D2D_RECT_U D2D1_RECT_U
 
typedef D2D_RECT_L D2D1_RECT_L
 
typedef D2D_SIZE_F D2D1_SIZE_F
 
typedef D2D_SIZE_U D2D1_SIZE_U
 
typedef D2D_MATRIX_3X2_F D2D1_MATRIX_3X2_F
 

Enumerations

enum  DWRITE_MEASURING_MODE { DWRITE_MEASURING_MODE_NATURAL, DWRITE_MEASURING_MODE_GDI_CLASSIC, DWRITE_MEASURING_MODE_GDI_NATURAL }
 The measuring method used for text layout. More...
 
enum  DWRITE_GLYPH_IMAGE_FORMATS {
  DWRITE_GLYPH_IMAGE_FORMATS_NONE = 0x00000000, DWRITE_GLYPH_IMAGE_FORMATS_TRUETYPE = 0x00000001, DWRITE_GLYPH_IMAGE_FORMATS_CFF = 0x00000002, DWRITE_GLYPH_IMAGE_FORMATS_COLR = 0x00000004,
  DWRITE_GLYPH_IMAGE_FORMATS_SVG = 0x00000008, DWRITE_GLYPH_IMAGE_FORMATS_PNG = 0x00000010, DWRITE_GLYPH_IMAGE_FORMATS_JPEG = 0x00000020, DWRITE_GLYPH_IMAGE_FORMATS_TIFF = 0x00000040,
  DWRITE_GLYPH_IMAGE_FORMATS_PREMULTIPLIED_B8G8R8A8 = 0x00000080
}
 Fonts may contain multiple drawable data formats for glyphs. These flags specify which formats are supported in the font, either at a font-wide level or per glyph, and the app may use them to tell DWrite which formats to return when splitting a color glyph run. More...
 
enum  D2D1_ALPHA_MODE {
  D2D1_ALPHA_MODE_UNKNOWN = 0, D2D1_ALPHA_MODE_PREMULTIPLIED = 1, D2D1_ALPHA_MODE_STRAIGHT = 2, D2D1_ALPHA_MODE_IGNORE = 3,
  D2D1_ALPHA_MODE_FORCE_DWORD = 0xffffffff
}
 Qualifies how alpha is to be treated in a bitmap or render target containing alpha. More...
 

Macro Definition Documentation

◆ CHECKMETHOD

#define CHECKMETHOD (   method)    virtual DECLSPEC_NOTHROW _Must_inspect_result_ HRESULT STDMETHODCALLTYPE method

◆ DCOMMON_H_INCLUDED

#define DCOMMON_H_INCLUDED

◆ DX_DECLARE_INTERFACE

#define DX_DECLARE_INTERFACE (   x)    DECLSPEC_UUID(x) DECLSPEC_NOVTABLE

Typedef Documentation

◆ D2D1_ALPHA_MODE

Qualifies how alpha is to be treated in a bitmap or render target containing alpha.

◆ D2D1_MATRIX_3X2_F

◆ D2D1_PIXEL_FORMAT

Description of a pixel format.

◆ D2D1_POINT_2F

◆ D2D1_POINT_2L

◆ D2D1_POINT_2U

◆ D2D1_RECT_F

◆ D2D1_RECT_L

◆ D2D1_RECT_U

◆ D2D1_SIZE_F

◆ D2D1_SIZE_U

◆ D2D_MATRIX_3X2_F

Represents a 3-by-2 matrix.

◆ D2D_MATRIX_4X3_F

Represents a 4-by-3 matrix.

◆ D2D_MATRIX_4X4_F

Represents a 4-by-4 matrix.

◆ D2D_MATRIX_5X4_F

Represents a 5-by-4 matrix.

◆ D2D_POINT_2F

typedef struct D2D_POINT_2F D2D_POINT_2F

Represents an x-coordinate and y-coordinate pair in two-dimensional space.

◆ D2D_POINT_2L

typedef POINT D2D_POINT_2L

◆ D2D_POINT_2U

typedef struct D2D_POINT_2U D2D_POINT_2U

Represents an x-coordinate and y-coordinate pair in two-dimensional space.

◆ D2D_RECT_F

typedef struct D2D_RECT_F D2D_RECT_F

Represents a rectangle defined by the coordinates of the upper-left corner (left, top) and the coordinates of the lower-right corner (right, bottom).

◆ D2D_RECT_L

typedef RECT D2D_RECT_L

◆ D2D_RECT_U

typedef struct D2D_RECT_U D2D_RECT_U

Represents a rectangle defined by the coordinates of the upper-left corner (left, top) and the coordinates of the lower-right corner (right, bottom).

◆ D2D_SIZE_F

typedef struct D2D_SIZE_F D2D_SIZE_F

Stores an ordered pair of floats, typically the width and height of a rectangle.

◆ D2D_SIZE_U

typedef struct D2D_SIZE_U D2D_SIZE_U

Stores an ordered pair of integers, typically the width and height of a rectangle.

◆ D2D_VECTOR_2F

typedef struct D2D_VECTOR_2F D2D_VECTOR_2F

A vector of 2 FLOAT values (x, y).

◆ D2D_VECTOR_3F

typedef struct D2D_VECTOR_3F D2D_VECTOR_3F

A vector of 3 FLOAT values (x, y, z).

◆ D2D_VECTOR_4F

typedef struct D2D_VECTOR_4F D2D_VECTOR_4F

A vector of 4 FLOAT values (x, y, z, w).

◆ DWRITE_MEASURING_MODE

The measuring method used for text layout.

Enumeration Type Documentation

◆ D2D1_ALPHA_MODE

Qualifies how alpha is to be treated in a bitmap or render target containing alpha.

Enumerator
D2D1_ALPHA_MODE_UNKNOWN 

Alpha mode should be determined implicitly. Some target surfaces do not supply or imply this information in which case alpha must be specified.

D2D1_ALPHA_MODE_PREMULTIPLIED 

Treat the alpha as premultipled.

D2D1_ALPHA_MODE_STRAIGHT 

Opacity is in the 'A' component only.

D2D1_ALPHA_MODE_IGNORE 

Ignore any alpha channel information.

D2D1_ALPHA_MODE_FORCE_DWORD 

◆ DWRITE_GLYPH_IMAGE_FORMATS

Fonts may contain multiple drawable data formats for glyphs. These flags specify which formats are supported in the font, either at a font-wide level or per glyph, and the app may use them to tell DWrite which formats to return when splitting a color glyph run.

Enumerator
DWRITE_GLYPH_IMAGE_FORMATS_NONE 

Indicates no data is available for this glyph.

DWRITE_GLYPH_IMAGE_FORMATS_TRUETYPE 

The glyph has TrueType outlines.

DWRITE_GLYPH_IMAGE_FORMATS_CFF 

The glyph has CFF outlines.

DWRITE_GLYPH_IMAGE_FORMATS_COLR 

The glyph has multilayered COLR data.

DWRITE_GLYPH_IMAGE_FORMATS_SVG 

The glyph has SVG outlines as standard XML.

Fonts may store the content gzip'd rather than plain text, indicated by the first two bytes as gzip header {0x1F 0x8B}.

DWRITE_GLYPH_IMAGE_FORMATS_PNG 

The glyph has PNG image data, with standard PNG IHDR.

DWRITE_GLYPH_IMAGE_FORMATS_JPEG 

The glyph has JPEG image data, with standard JIFF SOI header.

DWRITE_GLYPH_IMAGE_FORMATS_TIFF 

The glyph has TIFF image data.

DWRITE_GLYPH_IMAGE_FORMATS_PREMULTIPLIED_B8G8R8A8 

The glyph has raw 32-bit premultiplied BGRA data.

◆ DWRITE_MEASURING_MODE

The measuring method used for text layout.

Enumerator
DWRITE_MEASURING_MODE_NATURAL 

Text is measured using glyph ideal metrics whose values are independent to the current display resolution.

DWRITE_MEASURING_MODE_GDI_CLASSIC 

Text is measured using glyph display compatible metrics whose values tuned for the current display resolution.

DWRITE_MEASURING_MODE_GDI_NATURAL