wined3d: Get rid of the WINED3DDEGREETYPE typedef.
This commit is contained in:
parent
5c3ba123de
commit
5bddd4427d
|
@ -837,7 +837,7 @@ HRESULT tesselate_rectpatch(struct wined3d_device *This, struct WineD3DRectPatch
|
||||||
}
|
}
|
||||||
if (info->basis != WINED3DBASIS_BEZIER)
|
if (info->basis != WINED3DBASIS_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 != WINED3DDEGREE_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));
|
||||||
|
|
||||||
/* First, get the boundary cube of the input data */
|
/* 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)
|
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",
|
FIXME("WINED3DRS_POSITIONDEGREE %#x not yet implemented.\n",
|
||||||
state->render_states[WINED3DRS_POSITIONDEGREE]);
|
state->render_states[WINED3DRS_POSITIONDEGREE]);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void state_normaldegree(struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id)
|
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",
|
FIXME("WINED3DRS_NORMALDEGREE %#x not yet implemented.\n",
|
||||||
state->render_states[WINED3DRS_NORMALDEGREE]);
|
state->render_states[WINED3DRS_NORMALDEGREE]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1208,8 +1208,8 @@ void stateblock_init_default_state(struct wined3d_stateblock *stateblock)
|
||||||
tmpfloat.f = 0.0f;
|
tmpfloat.f = 0.0f;
|
||||||
state->render_states[WINED3DRS_TWEENFACTOR] = tmpfloat.d;
|
state->render_states[WINED3DRS_TWEENFACTOR] = tmpfloat.d;
|
||||||
state->render_states[WINED3DRS_BLENDOP] = WINED3D_BLEND_OP_ADD;
|
state->render_states[WINED3DRS_BLENDOP] = WINED3D_BLEND_OP_ADD;
|
||||||
state->render_states[WINED3DRS_POSITIONDEGREE] = WINED3DDEGREE_CUBIC;
|
state->render_states[WINED3DRS_POSITIONDEGREE] = WINED3D_DEGREE_CUBIC;
|
||||||
state->render_states[WINED3DRS_NORMALDEGREE] = WINED3DDEGREE_LINEAR;
|
state->render_states[WINED3DRS_NORMALDEGREE] = WINED3D_DEGREE_LINEAR;
|
||||||
/* states new in d3d9 */
|
/* states new in d3d9 */
|
||||||
state->render_states[WINED3DRS_SCISSORTESTENABLE] = FALSE;
|
state->render_states[WINED3DRS_SCISSORTESTENABLE] = FALSE;
|
||||||
state->render_states[WINED3DRS_SLOPESCALEDEPTHBIAS] = 0;
|
state->render_states[WINED3DRS_SLOPESCALEDEPTHBIAS] = 0;
|
||||||
|
|
|
@ -2402,12 +2402,14 @@ const char *debug_d3dbasis(WINED3DBASISTYPE basis) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *debug_d3ddegree(WINED3DDEGREETYPE degree) {
|
const char *debug_d3ddegree(enum wined3d_degree_type degree)
|
||||||
switch(degree) {
|
{
|
||||||
case WINED3DDEGREE_LINEAR: return "WINED3DDEGREE_LINEAR";
|
switch (degree)
|
||||||
case WINED3DDEGREE_QUADRATIC: return "WINED3DDEGREE_QUADRATIC";
|
{
|
||||||
case WINED3DDEGREE_CUBIC: return "WINED3DDEGREE_CUBIC";
|
case WINED3D_DEGREE_LINEAR: return "WINED3D_DEGREE_LINEAR";
|
||||||
case WINED3DDEGREE_QUINTIC: return "WINED3DDEGREE_QUINTIC";
|
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";
|
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_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(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;
|
const char *debug_d3dtop(WINED3DTEXTUREOP 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;
|
||||||
const char *debug_surflocation(DWORD flag) DECLSPEC_HIDDEN;
|
const char *debug_surflocation(DWORD flag) DECLSPEC_HIDDEN;
|
||||||
|
|
|
@ -97,14 +97,13 @@ enum wined3d_device_type
|
||||||
WINED3D_DEVICE_TYPE_NULLREF = 4,
|
WINED3D_DEVICE_TYPE_NULLREF = 4,
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef enum _WINED3DDEGREETYPE
|
enum wined3d_degree_type
|
||||||
{
|
{
|
||||||
WINED3DDEGREE_LINEAR = 1,
|
WINED3D_DEGREE_LINEAR = 1,
|
||||||
WINED3DDEGREE_QUADRATIC = 2,
|
WINED3D_DEGREE_QUADRATIC = 2,
|
||||||
WINED3DDEGREE_CUBIC = 3,
|
WINED3D_DEGREE_CUBIC = 3,
|
||||||
WINED3DDEGREE_QUINTIC = 5,
|
WINED3D_DEGREE_QUINTIC = 5,
|
||||||
WINED3DDEGREE_FORCE_DWORD = 0x7fffffff
|
};
|
||||||
} WINED3DDEGREETYPE;
|
|
||||||
|
|
||||||
#define WINEMAKEFOURCC(ch0, ch1, ch2, ch3) \
|
#define WINEMAKEFOURCC(ch0, ch1, ch2, ch3) \
|
||||||
((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \
|
((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \
|
||||||
|
@ -1603,7 +1602,7 @@ struct wined3d_rect_patch_info
|
||||||
UINT height;
|
UINT height;
|
||||||
UINT stride;
|
UINT stride;
|
||||||
WINED3DBASISTYPE basis;
|
WINED3DBASISTYPE basis;
|
||||||
WINED3DDEGREETYPE degree;
|
enum wined3d_degree_type degree;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct wined3d_tri_patch_info
|
struct wined3d_tri_patch_info
|
||||||
|
@ -1611,7 +1610,7 @@ struct wined3d_tri_patch_info
|
||||||
UINT start_vertex_offset;
|
UINT start_vertex_offset;
|
||||||
UINT vertex_count;
|
UINT vertex_count;
|
||||||
WINED3DBASISTYPE basis;
|
WINED3DBASISTYPE basis;
|
||||||
WINED3DDEGREETYPE degree;
|
enum wined3d_degree_type degree;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct wined3d_adapter_identifier
|
struct wined3d_adapter_identifier
|
||||||
|
|
Loading…
Reference in New Issue