wined3d: Get rid of the WINED3DBASISTYPE typedef.

This commit is contained in:
Henri Verbeet 2012-01-11 21:27:33 +01:00 committed by Alexandre Julliard
parent f38e94af7c
commit 7dac3e0921
4 changed files with 16 additions and 15 deletions

View File

@ -834,7 +834,7 @@ HRESULT tesselate_rectpatch(struct wined3d_device *This, struct WineD3DRectPatch
*/ */
ERR("Vertex stride is not a multiple of sizeof(GLfloat)\n"); ERR("Vertex stride is not a multiple of sizeof(GLfloat)\n");
} }
if (info->basis != WINED3DBASIS_BEZIER) if (info->basis != WINED3D_BASIS_BEZIER)
FIXME("Basis is %s, how to handle this?\n", debug_d3dbasis(info->basis)); FIXME("Basis is %s, how to handle this?\n", debug_d3dbasis(info->basis));
if (info->degree != WINED3D_DEGREE_CUBIC) if (info->degree != WINED3D_DEGREE_CUBIC)
FIXME("Degree is %s, how to handle this?\n", debug_d3ddegree(info->degree)); FIXME("Degree is %s, how to handle this?\n", debug_d3ddegree(info->degree));

View File

@ -2398,11 +2398,13 @@ const char *debug_glerror(GLenum error) {
} }
} }
const char *debug_d3dbasis(WINED3DBASISTYPE basis) { const char *debug_d3dbasis(enum wined3d_basis_type basis)
switch(basis) { {
case WINED3DBASIS_BEZIER: return "WINED3DBASIS_BEZIER"; switch (basis)
case WINED3DBASIS_BSPLINE: return "WINED3DBASIS_BSPLINE"; {
case WINED3DBASIS_INTERPOLATE: return "WINED3DBASIS_INTERPOLATE"; case WINED3D_BASIS_BEZIER: return "WINED3D_BASIS_BEZIER";
case WINED3D_BASIS_BSPLINE: return "WINED3D_BASIS_BSPLINE";
case WINED3D_BASIS_INTERPOLATE: return "WINED3D_BASIS_INTERPOLATE";
default: return "unrecognized"; default: return "unrecognized";
} }
} }

View File

@ -2508,7 +2508,7 @@ const char *debug_d3dtstype(enum wined3d_transform_state tstype) DECLSPEC_HIDDEN
const char *debug_d3dpool(WINED3DPOOL pool) DECLSPEC_HIDDEN; const char *debug_d3dpool(WINED3DPOOL pool) DECLSPEC_HIDDEN;
const char *debug_fbostatus(GLenum status) DECLSPEC_HIDDEN; const char *debug_fbostatus(GLenum status) DECLSPEC_HIDDEN;
const char *debug_glerror(GLenum error) DECLSPEC_HIDDEN; const char *debug_glerror(GLenum error) DECLSPEC_HIDDEN;
const char *debug_d3dbasis(WINED3DBASISTYPE basis) DECLSPEC_HIDDEN; const char *debug_d3dbasis(enum wined3d_basis_type basis) DECLSPEC_HIDDEN;
const char *debug_d3ddegree(enum wined3d_degree_type order) DECLSPEC_HIDDEN; const char *debug_d3ddegree(enum wined3d_degree_type order) DECLSPEC_HIDDEN;
const char *debug_d3dtop(enum wined3d_texture_op d3dtop) DECLSPEC_HIDDEN; const char *debug_d3dtop(enum wined3d_texture_op d3dtop) DECLSPEC_HIDDEN;
void dump_color_fixup_desc(struct color_fixup_desc fixup) DECLSPEC_HIDDEN; void dump_color_fixup_desc(struct color_fixup_desc fixup) DECLSPEC_HIDDEN;

View File

@ -641,13 +641,12 @@ enum wined3d_transform_state
#define WINED3D_TS_WORLD_MATRIX(index) (enum wined3d_transform_state)(index + 256) #define WINED3D_TS_WORLD_MATRIX(index) (enum wined3d_transform_state)(index + 256)
typedef enum _WINED3DBASISTYPE enum wined3d_basis_type
{ {
WINED3DBASIS_BEZIER = 0, WINED3D_BASIS_BEZIER = 0,
WINED3DBASIS_BSPLINE = 1, WINED3D_BASIS_BSPLINE = 1,
WINED3DBASIS_INTERPOLATE = 2, WINED3D_BASIS_INTERPOLATE = 2,
WINED3DBASIS_FORCE_DWORD = 0x7fffffff };
} WINED3DBASISTYPE;
typedef enum _WINED3DCUBEMAP_FACES typedef enum _WINED3DCUBEMAP_FACES
{ {
@ -1583,7 +1582,7 @@ struct wined3d_rect_patch_info
UINT width; UINT width;
UINT height; UINT height;
UINT stride; UINT stride;
WINED3DBASISTYPE basis; enum wined3d_basis_type basis;
enum wined3d_degree_type degree; enum wined3d_degree_type degree;
}; };
@ -1591,7 +1590,7 @@ struct wined3d_tri_patch_info
{ {
UINT start_vertex_offset; UINT start_vertex_offset;
UINT vertex_count; UINT vertex_count;
WINED3DBASISTYPE basis; enum wined3d_basis_type basis;
enum wined3d_degree_type degree; enum wined3d_degree_type degree;
}; };