Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
3b07e705
Commit
3b07e705
authored
16 years ago
by
Henri Verbeet
Committed by
Alexandre Julliard
16 years ago
Browse files
Options
Downloads
Patches
Plain Diff
wined3d: Add d3d10 primitive types.
parent
3f9e0d93
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dlls/wined3d/drawprim.c
+12
-0
12 additions, 0 deletions
dlls/wined3d/drawprim.c
dlls/wined3d/utils.c
+5
-0
5 additions, 0 deletions
dlls/wined3d/utils.c
include/wine/wined3d.idl
+5
-0
5 additions, 0 deletions
include/wine/wined3d.idl
with
22 additions
and
0 deletions
dlls/wined3d/drawprim.c
+
12
−
0
View file @
3b07e705
...
...
@@ -56,6 +56,18 @@ static GLenum primitive_to_gl(WINED3DPRIMITIVETYPE primitive_type)
case
WINED3DPT_TRIANGLEFAN
:
return
GL_TRIANGLE_FAN
;
case
WINED3DPT_LINELIST_ADJ
:
return
GL_LINES_ADJACENCY_ARB
;
case
WINED3DPT_LINESTRIP_ADJ
:
return
GL_LINE_STRIP_ADJACENCY_ARB
;
case
WINED3DPT_TRIANGLELIST_ADJ
:
return
GL_TRIANGLES_ADJACENCY_ARB
;
case
WINED3DPT_TRIANGLESTRIP_ADJ
:
return
GL_TRIANGLE_STRIP_ADJACENCY_ARB
;
default:
FIXME
(
"Unhandled primitive type %s
\n
"
,
debug_d3dprimitivetype
(
primitive_type
));
return
GL_NONE
;
...
...
This diff is collapsed.
Click to expand it.
dlls/wined3d/utils.c
+
5
−
0
View file @
3b07e705
...
...
@@ -918,12 +918,17 @@ const char* debug_d3dresourcetype(WINED3DRESOURCETYPE res) {
const
char
*
debug_d3dprimitivetype
(
WINED3DPRIMITIVETYPE
PrimitiveType
)
{
switch
(
PrimitiveType
)
{
#define PRIM_TO_STR(prim) case prim: return #prim
PRIM_TO_STR
(
WINED3DPT_UNDEFINED
);
PRIM_TO_STR
(
WINED3DPT_POINTLIST
);
PRIM_TO_STR
(
WINED3DPT_LINELIST
);
PRIM_TO_STR
(
WINED3DPT_LINESTRIP
);
PRIM_TO_STR
(
WINED3DPT_TRIANGLELIST
);
PRIM_TO_STR
(
WINED3DPT_TRIANGLESTRIP
);
PRIM_TO_STR
(
WINED3DPT_TRIANGLEFAN
);
PRIM_TO_STR
(
WINED3DPT_LINELIST_ADJ
);
PRIM_TO_STR
(
WINED3DPT_LINESTRIP_ADJ
);
PRIM_TO_STR
(
WINED3DPT_TRIANGLELIST_ADJ
);
PRIM_TO_STR
(
WINED3DPT_TRIANGLESTRIP_ADJ
);
#undef PRIM_TO_STR
default:
FIXME
(
"Unrecognized %u WINED3DPRIMITIVETYPE!
\n
"
,
PrimitiveType
);
...
...
This diff is collapsed.
Click to expand it.
include/wine/wined3d.idl
+
5
−
0
View file @
3b07e705
...
...
@@ -97,12 +97,17 @@ typedef enum _WINED3DLIGHTTYPE
typedef
enum
_WINED3DPRIMITIVETYPE
{
WINED3DPT_UNDEFINED
=
0
,
WINED3DPT_POINTLIST
=
1
,
WINED3DPT_LINELIST
=
2
,
WINED3DPT_LINESTRIP
=
3
,
WINED3DPT_TRIANGLELIST
=
4
,
WINED3DPT_TRIANGLESTRIP
=
5
,
WINED3DPT_TRIANGLEFAN
=
6
,
WINED3DPT_LINELIST_ADJ
=
10
,
WINED3DPT_LINESTRIP_ADJ
=
11
,
WINED3DPT_TRIANGLELIST_ADJ
=
12
,
WINED3DPT_TRIANGLESTRIP_ADJ
=
13
,
WINED3DPT_FORCE_DWORD
=
0
x7fffffff
}
WINED3DPRIMITIVETYPE
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment