Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
532fe7a1
Commit
532fe7a1
authored
Oct 12, 2006
by
Ivan Gyurdiev
Committed by
Alexandre Julliard
Oct 12, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Merge D3DDP_MAXTEXCOORD constants into one constant in WINED3D namespace.
parent
2bac4a02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
15 deletions
+12
-15
drawprim.c
dlls/wined3d/drawprim.c
+9
-9
wined3d_types.h
include/wine/wined3d_types.h
+3
-6
No files found.
dlls/wined3d/drawprim.c
View file @
532fe7a1
...
...
@@ -368,24 +368,24 @@ static BOOL fixed_get_input(
*
regnum
=
5
;
else
if
(
usage
==
D3DDECLUSAGE_COLOR
&&
usage_idx
==
1
)
*
regnum
=
6
;
else
if
(
usage
==
D3DDECLUSAGE_TEXCOORD
&&
usage_idx
<
D3DDP_MAXTEXCOORD
)
else
if
(
usage
==
D3DDECLUSAGE_TEXCOORD
&&
usage_idx
<
WINE
D3DDP_MAXTEXCOORD
)
*
regnum
=
7
+
usage_idx
;
else
if
((
usage
==
D3DDECLUSAGE_POSITION
||
usage
==
D3DDECLUSAGE_POSITIONT
)
&&
usage_idx
==
1
)
*
regnum
=
7
+
D3DDP_MAXTEXCOORD
;
*
regnum
=
7
+
WINE
D3DDP_MAXTEXCOORD
;
else
if
(
usage
==
D3DDECLUSAGE_NORMAL
&&
usage_idx
==
1
)
*
regnum
=
8
+
D3DDP_MAXTEXCOORD
;
*
regnum
=
8
+
WINE
D3DDP_MAXTEXCOORD
;
else
if
(
usage
==
D3DDECLUSAGE_TANGENT
&&
usage_idx
==
0
)
*
regnum
=
9
+
D3DDP_MAXTEXCOORD
;
*
regnum
=
9
+
WINE
D3DDP_MAXTEXCOORD
;
else
if
(
usage
==
D3DDECLUSAGE_BINORMAL
&&
usage_idx
==
0
)
*
regnum
=
10
+
D3DDP_MAXTEXCOORD
;
*
regnum
=
10
+
WINE
D3DDP_MAXTEXCOORD
;
else
if
(
usage
==
D3DDECLUSAGE_TESSFACTOR
&&
usage_idx
==
0
)
*
regnum
=
11
+
D3DDP_MAXTEXCOORD
;
*
regnum
=
11
+
WINE
D3DDP_MAXTEXCOORD
;
else
if
(
usage
==
D3DDECLUSAGE_FOG
&&
usage_idx
==
0
)
*
regnum
=
12
+
D3DDP_MAXTEXCOORD
;
*
regnum
=
12
+
WINE
D3DDP_MAXTEXCOORD
;
else
if
(
usage
==
D3DDECLUSAGE_DEPTH
&&
usage_idx
==
0
)
*
regnum
=
13
+
D3DDP_MAXTEXCOORD
;
*
regnum
=
13
+
WINE
D3DDP_MAXTEXCOORD
;
else
if
(
usage
==
D3DDECLUSAGE_SAMPLE
&&
usage_idx
==
0
)
*
regnum
=
14
+
D3DDP_MAXTEXCOORD
;
*
regnum
=
14
+
WINE
D3DDP_MAXTEXCOORD
;
if
(
*
regnum
<
0
)
{
FIXME
(
"Unsupported input stream [usage=%s, usage_idx=%u]
\n
"
,
...
...
include/wine/wined3d_types.h
View file @
532fe7a1
...
...
@@ -25,11 +25,6 @@
#ifndef __WINE_WINED3D_TYPES_H
#define __WINE_WINED3D_TYPES_H
/* TODO: remove the dependency on d3d9 or d3d8 */
#if !defined( __WINE_D3D_H ) && !defined( __WINE_D3D8_H ) && !defined( __WINE_D3D9_H )
# error You must include d3d.h, d3d8.h or d3d9.h header to use this header
#endif
typedef
DWORD
WINED3DCOLOR
;
typedef
enum
_WINED3DLIGHTTYPE
{
...
...
@@ -986,6 +981,8 @@ typedef struct glDescriptor {
int
/*GLenum*/
glType
;
}
glDescriptor
;
#define WINED3DDP_MAXTEXCOORD 8
typedef
enum
_WINED3DDECLMETHOD
{
WINED3DDECLMETHOD_DEFAULT
=
0
,
WINED3DDECLMETHOD_PARTIALU
=
1
,
...
...
@@ -1038,7 +1035,7 @@ typedef struct WineDirect3DVertexStridedData {
WineDirect3DStridedData
pSize
;
WineDirect3DStridedData
diffuse
;
WineDirect3DStridedData
specular
;
WineDirect3DStridedData
texCoords
[
D3DDP_MAXTEXCOORD
];
WineDirect3DStridedData
texCoords
[
WINE
D3DDP_MAXTEXCOORD
];
WineDirect3DStridedData
position2
;
/* tween data */
WineDirect3DStridedData
normal2
;
/* tween data */
WineDirect3DStridedData
tangent
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment