diff options
author | Aaron Giles <aaron@aarongiles.com> | 2012-09-15 21:47:30 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2012-09-15 21:47:30 +0000 |
commit | ab97dc30efdd5cc1abf8c65b8ce29af364219167 (patch) | |
tree | 5ab46b3c21f6e0e4173a79a4151e019b3f2dc17e /src/osd/windows/d3dcomm.h | |
parent | d1da89cc7817315f05269205a3f56d36ebba170b (diff) |
First pass at modernizing struct definitions.
Diffstat (limited to 'src/osd/windows/d3dcomm.h')
-rw-r--r-- | src/osd/windows/d3dcomm.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/osd/windows/d3dcomm.h b/src/osd/windows/d3dcomm.h index 2b1e2c9defd..fedcd6ebbac 100644 --- a/src/osd/windows/d3dcomm.h +++ b/src/osd/windows/d3dcomm.h @@ -53,8 +53,7 @@ //============================================================ /* d3d_texture_info holds information about a texture */ -typedef struct _d3d_texture_info d3d_texture_info; -struct _d3d_texture_info +struct d3d_texture_info { d3d_texture_info * next; // next texture in the list d3d_texture_info * prev; // prev texture in the list @@ -79,8 +78,7 @@ struct _d3d_texture_info /* d3d_poly_info holds information about a single polygon/d3d primitive */ -typedef struct _d3d_poly_info d3d_poly_info; -struct _d3d_poly_info +struct d3d_poly_info { D3DPRIMITIVETYPE type; // type of primitive UINT32 count; // total number of primitives @@ -92,8 +90,7 @@ struct _d3d_poly_info /* d3d_vertex describes a single vertex */ -typedef struct _d3d_vertex d3d_vertex; -struct _d3d_vertex +struct d3d_vertex { float x, y, z; // X,Y,Z coordinates float rhw; // RHW when no HLSL, padding when HLSL @@ -103,8 +100,7 @@ struct _d3d_vertex /* line_aa_step is used for drawing antialiased lines */ -typedef struct _line_aa_step line_aa_step; -struct _line_aa_step +struct line_aa_step { float xoffs, yoffs; // X/Y deltas float weight; // weight contribution |