Commit 5bddd442 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Get rid of the WINED3DDEGREETYPE typedef.

parent 5c3ba123
......@@ -837,7 +837,7 @@ HRESULT tesselate_rectpatch(struct wined3d_device *This, struct WineD3DRectPatch
}
if (info->basis != WINED3DBASIS_BEZIER)
FIXME("Basis is %s, how to handle this?\n", debug_d3dbasis(info->basis));
if (info->degree != WINED3DDEGREE_CUBIC)
if (info->degree != WINED3D_DEGREE_CUBIC)
FIXME("Degree is %s, how to handle this?\n", debug_d3ddegree(info->degree));
/* First, get the boundary cube of the input data */
......
......@@ -1798,14 +1798,14 @@ static void state_patchsegments(struct wined3d_context *context, const struct wi
static void state_positiondegree(struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id)
{
if (state->render_states[WINED3DRS_POSITIONDEGREE] != WINED3DDEGREE_CUBIC)
if (state->render_states[WINED3DRS_POSITIONDEGREE] != WINED3D_DEGREE_CUBIC)
FIXME("WINED3DRS_POSITIONDEGREE %#x not yet implemented.\n",
state->render_states[WINED3DRS_POSITIONDEGREE]);
}
static void state_normaldegree(struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id)
{
if (state->render_states[WINED3DRS_NORMALDEGREE] != WINED3DDEGREE_LINEAR)
if (state->render_states[WINED3DRS_NORMALDEGREE] != WINED3D_DEGREE_LINEAR)
FIXME("WINED3DRS_NORMALDEGREE %#x not yet implemented.\n",
state->render_states[WINED3DRS_NORMALDEGREE]);
}
......
......@@ -1208,8 +1208,8 @@ void stateblock_init_default_state(struct wined3d_stateblock *stateblock)
tmpfloat.f = 0.0f;
state->render_states[WINED3DRS_TWEENFACTOR] = tmpfloat.d;
state->render_states[WINED3DRS_BLENDOP] = WINED3D_BLEND_OP_ADD;
state->render_states[WINED3DRS_POSITIONDEGREE] = WINED3DDEGREE_CUBIC;
state->render_states[WINED3DRS_NORMALDEGREE] = WINED3DDEGREE_LINEAR;
state->render_states[WINED3DRS_POSITIONDEGREE] = WINED3D_DEGREE_CUBIC;
state->render_states[WINED3DRS_NORMALDEGREE] = WINED3D_DEGREE_LINEAR;
/* states new in d3d9 */
state->render_states[WINED3DRS_SCISSORTESTENABLE] = FALSE;
state->render_states[WINED3DRS_SLOPESCALEDEPTHBIAS] = 0;
......
......@@ -2402,12 +2402,14 @@ const char *debug_d3dbasis(WINED3DBASISTYPE basis) {
}
}
const char *debug_d3ddegree(WINED3DDEGREETYPE degree) {
switch(degree) {
case WINED3DDEGREE_LINEAR: return "WINED3DDEGREE_LINEAR";
case WINED3DDEGREE_QUADRATIC: return "WINED3DDEGREE_QUADRATIC";
case WINED3DDEGREE_CUBIC: return "WINED3DDEGREE_CUBIC";
case WINED3DDEGREE_QUINTIC: return "WINED3DDEGREE_QUINTIC";
const char *debug_d3ddegree(enum wined3d_degree_type degree)
{
switch (degree)
{
case WINED3D_DEGREE_LINEAR: return "WINED3D_DEGREE_LINEAR";
case WINED3D_DEGREE_QUADRATIC: return "WINED3D_DEGREE_QUADRATIC";
case WINED3D_DEGREE_CUBIC: return "WINED3D_DEGREE_CUBIC";
case WINED3D_DEGREE_QUINTIC: return "WINED3D_DEGREE_QUINTIC";
default: return "unrecognized";
}
}
......
......@@ -2485,7 +2485,7 @@ const char *debug_d3dpool(WINED3DPOOL pool) DECLSPEC_HIDDEN;
const char *debug_fbostatus(GLenum status) DECLSPEC_HIDDEN;
const char *debug_glerror(GLenum error) DECLSPEC_HIDDEN;
const char *debug_d3dbasis(WINED3DBASISTYPE basis) DECLSPEC_HIDDEN;
const char *debug_d3ddegree(WINED3DDEGREETYPE order) DECLSPEC_HIDDEN;
const char *debug_d3ddegree(enum wined3d_degree_type order) DECLSPEC_HIDDEN;
const char *debug_d3dtop(WINED3DTEXTUREOP d3dtop) DECLSPEC_HIDDEN;
void dump_color_fixup_desc(struct color_fixup_desc fixup) DECLSPEC_HIDDEN;
const char *debug_surflocation(DWORD flag) DECLSPEC_HIDDEN;
......
......@@ -97,14 +97,13 @@ enum wined3d_device_type
WINED3D_DEVICE_TYPE_NULLREF = 4,
};
typedef enum _WINED3DDEGREETYPE
enum wined3d_degree_type
{
WINED3DDEGREE_LINEAR = 1,
WINED3DDEGREE_QUADRATIC = 2,
WINED3DDEGREE_CUBIC = 3,
WINED3DDEGREE_QUINTIC = 5,
WINED3DDEGREE_FORCE_DWORD = 0x7fffffff
} WINED3DDEGREETYPE;
WINED3D_DEGREE_LINEAR = 1,
WINED3D_DEGREE_QUADRATIC = 2,
WINED3D_DEGREE_CUBIC = 3,
WINED3D_DEGREE_QUINTIC = 5,
};
#define WINEMAKEFOURCC(ch0, ch1, ch2, ch3) \
((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \
......@@ -1603,7 +1602,7 @@ struct wined3d_rect_patch_info
UINT height;
UINT stride;
WINED3DBASISTYPE basis;
WINED3DDEGREETYPE degree;
enum wined3d_degree_type degree;
};
struct wined3d_tri_patch_info
......@@ -1611,7 +1610,7 @@ struct wined3d_tri_patch_info
UINT start_vertex_offset;
UINT vertex_count;
WINED3DBASISTYPE basis;
WINED3DDEGREETYPE degree;
enum wined3d_degree_type degree;
};
struct wined3d_adapter_identifier
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment