Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
bbc009f4
Commit
bbc009f4
authored
Jun 06, 2011
by
Dylan Smith
Committed by
Alexandre Julliard
Jun 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9/tests: Add texture coordinates and vertex colors in X file.
parent
19abc0d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
25 deletions
+51
-25
mesh.c
dlls/d3dx9_36/tests/mesh.c
+51
-25
No files found.
dlls/d3dx9_36/tests/mesh.c
View file @
bbc009f4
...
...
@@ -1994,6 +1994,30 @@ static void D3DXLoadMeshTest(void)
"TextureFilename {
\"
texture.jpg
\"
; }"
"}"
"}"
"MeshVertexColors {"
"8;"
/* DWORD nVertexColors; */
/* array IndexedColor vertexColors[nVertexColors]; */
"0; 0.0; 0.0; 0.0; 0.0;;"
"1; 0.0; 0.0; 1.0; 0.1;;"
"2; 0.0; 1.0; 0.0; 0.2;;"
"3; 0.0; 1.0; 1.0; 0.3;;"
"4; 1.0; 0.0; 0.0; 0.4;;"
"5; 1.0; 0.0; 1.0; 0.5;;"
"6; 1.0; 1.0; 0.0; 0.6;;"
"7; 1.0; 1.0; 1.0; 0.7;;"
"}"
"MeshTextureCoords {"
"8;"
/* DWORD nTextureCoords; */
/* array Coords2d textureCoords[nTextureCoords]; */
"0.0; 1.0;,"
"1.0; 1.0;,"
"0.0; 0.0;,"
"1.0; 0.0;,"
"1.0; 1.0;,"
"0.0; 1.0;,"
"1.0; 0.0;,"
"0.0; 0.0;;"
"}"
"}"
;
static
const
WORD
box_index_buffer
[]
=
{
0
,
1
,
3
,
...
...
@@ -2012,31 +2036,33 @@ static void D3DXLoadMeshTest(void)
static
const
struct
{
D3DXVECTOR3
position
;
D3DXVECTOR3
normal
;
D3DCOLOR
diffuse
;
D3DXVECTOR2
tex_coords
;
}
box_vertex_buffer
[]
=
{
{{
0
.
0
,
0
.
0
,
0
.
0
},
{
-
1
.
0
,
0
.
0
,
0
.
0
}},
{{
0
.
0
,
0
.
0
,
1
.
0
},
{
-
1
.
0
,
0
.
0
,
0
.
0
}},
{{
0
.
0
,
1
.
0
,
0
.
0
},
{
-
1
.
0
,
0
.
0
,
0
.
0
}},
{{
0
.
0
,
1
.
0
,
1
.
0
},
{
-
1
.
0
,
0
.
0
,
0
.
0
}},
{{
1
.
0
,
0
.
0
,
0
.
0
},
{
1
.
0
,
0
.
0
,
0
.
0
}},
{{
1
.
0
,
0
.
0
,
1
.
0
},
{
1
.
0
,
0
.
0
,
0
.
0
}},
{{
1
.
0
,
1
.
0
,
0
.
0
},
{
0
.
0
,
1
.
0
,
0
.
0
}},
{{
1
.
0
,
1
.
0
,
1
.
0
},
{
0
.
0
,
1
.
0
,
0
.
0
}},
{{
0
.
0
,
1
.
0
,
0
.
0
},
{
0
.
0
,
1
.
0
,
0
.
0
}},
{{
0
.
0
,
1
.
0
,
1
.
0
},
{
0
.
0
,
1
.
0
,
0
.
0
}},
{{
1
.
0
,
1
.
0
,
0
.
0
},
{
1
.
0
,
0
.
0
,
0
.
0
}},
{{
1
.
0
,
1
.
0
,
1
.
0
},
{
1
.
0
,
0
.
0
,
0
.
0
}},
{{
0
.
0
,
0
.
0
,
1
.
0
},
{
0
.
0
,
-
1
.
0
,
0
.
0
}},
{{
0
.
0
,
0
.
0
,
0
.
0
},
{
0
.
0
,
-
1
.
0
,
0
.
0
}},
{{
1
.
0
,
0
.
0
,
0
.
0
},
{
0
.
0
,
-
1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.
0
,
1
.
0
}
},
{{
1
.
0
,
1
.
0
,
1
.
0
},
{
0
.
0
,
0
.
0
,
1
.
0
}
,
0xb3ffffff
,
{
0
.
0
,
0
.
0
}
},
{{
0
.
0
,
1
.
0
,
1
.
0
},
{
0
.
0
,
0
.
0
,
1
.
0
}
,
0x4d00ffff
,
{
1
.
0
,
0
.
0
}
},
{{
0
.
0
,
0
.
0
,
0
.
0
},
{
0
.
0
,
0
.
0
,
-
1
.
0
}
,
0x00000000
,
{
0
.
0
,
1
.
0
}
},
{{
0
.
0
,
1
.
0
,
0
.
0
},
{
0
.
0
,
0
.
0
,
-
1
.
0
}
,
0x3300ff00
,
{
0
.
0
,
0
.
0
}
},
{{
1
.
0
,
1
.
0
,
0
.
0
},
{
0
.
0
,
0
.
0
,
-
1
.
0
}
,
0x99ffff00
,
{
1
.
0
,
0
.
0
}
},
{{
1
.
0
,
0
.
0
,
0
.
0
},
{
0
.
0
,
0
.
0
,
-
1
.
0
}
,
0x66ff0000
,
{
1
.
0
,
1
.
0
}
},
};
static
const
D3DXMATERIAL
box_materials
[]
=
{
{
...
...
@@ -2060,7 +2086,7 @@ static void D3DXLoadMeshTest(void)
(
char
*
)
"texture.jpg"
,
/* pTextureFilename */
},
};
const
DWORD
box_fvf
=
D3DFVF_XYZ
|
D3DFVF_NORMAL
;
const
DWORD
box_fvf
=
D3DFVF_XYZ
|
D3DFVF_NORMAL
|
D3DFVF_DIFFUSE
|
D3DFVF_TEX1
;
/*________________________*/
HRESULT
hr
;
HWND
wnd
=
NULL
;
...
...
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