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
241c2639
Commit
241c2639
authored
Oct 07, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Oct 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl32: List the manually written functions instead of the excluded.
parent
3f17c701
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
24 deletions
+47
-24
make_opengl
dlls/opengl32/make_opengl
+47
-24
No files found.
dlls/opengl32/make_opengl
View file @
241c2639
...
@@ -381,18 +381,23 @@ my %wgl_functions;
...
@@ -381,18 +381,23 @@ my %wgl_functions;
my
%
gl_enums
;
my
%
gl_enums
;
my
(
%
gl_types
,
@gl_types
);
# also use an array to preserve declaration order
my
(
%
gl_types
,
@gl_types
);
# also use an array to preserve declaration order
my
%
supported_wgl
_functions
=
my
%
manual_win
_functions
=
(
(
"wglCopyContext"
=>
1
,
"glDebugEntry"
=>
1
,
"wglCreateContext"
=>
1
,
"wglChoosePixelFormat"
=>
1
,
"wglDeleteContext"
=>
1
,
"wglCreateLayerContext"
=>
1
,
"wglDescribePixelFormat"
=>
1
,
"wglDescribeLayerPlane"
=>
1
,
"wglGetPixelFormat"
=>
1
,
"wglGetCurrentContext"
=>
1
,
"wglGetProcAddress"
=>
1
,
"wglGetCurrentDC"
=>
1
,
"wglMakeCurrent"
=>
1
,
"wglGetDefaultProcAddress"
=>
1
,
"wglSetPixelFormat"
=>
1
,
"wglGetLayerPaletteEntries"
=>
1
,
"wglShareLists"
=>
1
,
"wglRealizeLayerPalette"
=>
1
,
"wglSwapBuffers"
=>
1
,
"wglSetLayerPaletteEntries"
=>
1
,
"wglSwapLayerBuffers"
=>
1
,
"wglUseFontBitmapsA"
=>
1
,
"wglUseFontBitmapsW"
=>
1
,
"wglUseFontOutlinesA"
=>
1
,
"wglUseFontOutlinesW"
=>
1
,
);
);
my
%
remapped_wgl_functions
=
my
%
remapped_wgl_functions
=
...
@@ -642,7 +647,7 @@ print HEADER "struct opengl_funcs\n{\n";
...
@@ -642,7 +647,7 @@ print HEADER "struct opengl_funcs\n{\n";
print
HEADER
" struct\n {\n"
;
print
HEADER
" struct\n {\n"
;
foreach
(
sort
keys
%
wgl_functions
)
foreach
(
sort
keys
%
wgl_functions
)
{
{
next
unless
defined
$supported_wgl
_functions
{
$_
};
next
if
defined
$manual_win
_functions
{
$_
};
my
$decl_args
=
get_func_args
(
$wgl_functions
{
$_
},
1
,
1
);
my
$decl_args
=
get_func_args
(
$wgl_functions
{
$_
},
1
,
1
);
my
$func_ret
=
get_func_ret
(
$wgl_functions
{
$_
},
1
);
my
$func_ret
=
get_func_ret
(
$wgl_functions
{
$_
},
1
);
printf
HEADER
" %-10s (WINAPI *p_$_)($decl_args);\n"
,
$func_ret
;
printf
HEADER
" %-10s (WINAPI *p_$_)($decl_args);\n"
,
$func_ret
;
...
@@ -652,7 +657,7 @@ print HEADER " } wgl;\n\n";
...
@@ -652,7 +657,7 @@ print HEADER " } wgl;\n\n";
print
HEADER
" struct\n {\n"
;
print
HEADER
" struct\n {\n"
;
foreach
(
sort
keys
%
norm_functions
)
foreach
(
sort
keys
%
norm_functions
)
{
{
next
if
$_
eq
"glDebugEntry"
;
next
if
defined
$manual_win_functions
{
$_
}
;
my
$decl_args
=
get_func_args
(
$norm_functions
{
$_
},
1
,
1
);
my
$decl_args
=
get_func_args
(
$norm_functions
{
$_
},
1
,
1
);
my
$func_ret
=
get_func_ret
(
$norm_functions
{
$_
},
1
);
my
$func_ret
=
get_func_ret
(
$norm_functions
{
$_
},
1
);
printf
HEADER
" %-10s (WINE_GLAPI *p_$_)($decl_args);\n"
,
$func_ret
;
printf
HEADER
" %-10s (WINE_GLAPI *p_$_)($decl_args);\n"
,
$func_ret
;
...
@@ -662,6 +667,7 @@ print HEADER " } gl;\n\n";
...
@@ -662,6 +667,7 @@ print HEADER " } gl;\n\n";
print
HEADER
" struct\n {\n"
;
print
HEADER
" struct\n {\n"
;
foreach
(
sort
keys
%
ext_functions
)
foreach
(
sort
keys
%
ext_functions
)
{
{
next
if
defined
$manual_win_functions
{
$_
};
my
$decl_args
=
get_func_args
(
$ext_functions
{
$_
},
1
,
1
);
my
$decl_args
=
get_func_args
(
$ext_functions
{
$_
},
1
,
1
);
my
$func_ret
=
get_func_ret
(
$ext_functions
{
$_
},
1
);
my
$func_ret
=
get_func_ret
(
$ext_functions
{
$_
},
1
);
printf
HEADER
" %-10s (WINE_GLAPI *p_$_)($decl_args);\n"
,
$func_ret
;
printf
HEADER
" %-10s (WINE_GLAPI *p_$_)($decl_args);\n"
,
$func_ret
;
...
@@ -672,7 +678,7 @@ print HEADER "};\n\n";
...
@@ -672,7 +678,7 @@ print HEADER "};\n\n";
print
HEADER
"#define ALL_WGL_FUNCS"
;
print
HEADER
"#define ALL_WGL_FUNCS"
;
foreach
(
sort
keys
%
norm_functions
)
foreach
(
sort
keys
%
norm_functions
)
{
{
next
if
$_
eq
"glDebugEntry"
;
next
if
defined
$manual_win_functions
{
$_
}
;
printf
HEADER
" \\\n USE_GL_FUNC(\%s)"
,
$_
;
printf
HEADER
" \\\n USE_GL_FUNC(\%s)"
,
$_
;
}
}
print
HEADER
"\n\n"
;
print
HEADER
"\n\n"
;
...
@@ -724,10 +730,12 @@ close HEADER;
...
@@ -724,10 +730,12 @@ close HEADER;
#
#
open
(
SPEC
,
">$spec_file"
)
or
die
"cannot create $spec_file"
;
open
(
SPEC
,
">$spec_file"
)
or
die
"cannot create $spec_file"
;
foreach
(
sort
keys
%
norm_functions
)
{
foreach
(
sort
keys
%
norm_functions
)
{
printf
SPEC
"%s\n"
,
generate_spec_entry
(
$_
,
$norm_functions
{
$_
}
);
printf
SPEC
"%s\n"
,
generate_spec_entry
(
$_
,
$norm_functions
{
$_
}
);
}
}
foreach
(
sort
keys
%
wgl_functions
)
{
foreach
(
sort
keys
%
wgl_functions
)
{
printf
SPEC
"%s\n"
,
generate_spec_entry
(
$_
,
$wgl_functions
{
$_
}
);
printf
SPEC
"%s\n"
,
generate_spec_entry
(
$_
,
$wgl_functions
{
$_
}
);
}
}
...
@@ -749,32 +757,47 @@ $file_header .= "WINE_DEFAULT_DEBUG_CHANNEL(opengl);\n\n" if $gen_traces;
...
@@ -749,32 +757,47 @@ $file_header .= "WINE_DEFAULT_DEBUG_CHANNEL(opengl);\n\n" if $gen_traces;
open
(
NORM
,
">$norm_file"
)
or
die
"cannot create $norm_file"
;
open
(
NORM
,
">$norm_file"
)
or
die
"cannot create $norm_file"
;
print
NORM
$file_header
;
print
NORM
$file_header
;
foreach
(
sort
keys
%
norm_functions
)
{
foreach
(
sort
keys
%
norm_functions
)
{
next
if
defined
$manual_win_functions
{
$_
};
next
if
needs_wrapper
(
$_
,
$norm_functions
{
$_
}
);
next
if
needs_wrapper
(
$_
,
$norm_functions
{
$_
}
);
print
NORM
GenerateThunk
(
$_
,
$norm_functions
{
$_
},
"gl"
);
print
NORM
GenerateThunk
(
$_
,
$norm_functions
{
$_
},
"gl"
);
}
}
foreach
(
sort
keys
%
wgl_functions
)
{
foreach
(
sort
keys
%
wgl_functions
)
next
unless
defined
$supported_wgl_functions
{
$_
};
{
next
if
defined
$manual_win_functions
{
$_
};
print
NORM
generate_null_func
(
$_
,
$wgl_functions
{
$_
},
" WINAPI"
);
print
NORM
generate_null_func
(
$_
,
$wgl_functions
{
$_
},
" WINAPI"
);
}
}
foreach
(
sort
keys
%
norm_functions
)
{
foreach
(
sort
keys
%
norm_functions
)
{
next
if
defined
$manual_win_functions
{
$_
};
print
NORM
generate_null_func
(
$_
,
$norm_functions
{
$_
},
""
);
print
NORM
generate_null_func
(
$_
,
$norm_functions
{
$_
},
""
);
}
}
foreach
(
sort
keys
%
ext_functions
)
{
foreach
(
sort
keys
%
ext_functions
)
{
next
if
defined
$manual_win_functions
{
$_
};
print
NORM
generate_null_func
(
$_
,
$ext_functions
{
$_
},
""
);
print
NORM
generate_null_func
(
$_
,
$ext_functions
{
$_
},
""
);
}
}
print
NORM
"\nstruct opengl_funcs null_opengl_funcs =\n{\n {\n"
;
print
NORM
"\nstruct opengl_funcs null_opengl_funcs =\n{\n {\n"
;
foreach
(
sort
keys
%
wgl_functions
)
foreach
(
sort
keys
%
wgl_functions
)
{
{
next
unless
defined
$supported_wgl
_functions
{
$_
};
next
if
defined
$manual_win
_functions
{
$_
};
print
NORM
" null_$_,\n"
;
print
NORM
" null_$_,\n"
;
}
}
print
NORM
" },\n {\n"
;
print
NORM
" },\n {\n"
;
foreach
(
sort
keys
%
norm_functions
)
{
print
NORM
" null_$_,\n"
unless
$_
eq
"glDebugEntry"
;
}
foreach
(
sort
keys
%
norm_functions
)
{
next
if
defined
$manual_win_functions
{
$_
};
print
NORM
" null_$_,\n"
;
}
print
NORM
" },\n {\n"
;
print
NORM
" },\n {\n"
;
foreach
(
sort
keys
%
ext_functions
)
{
print
NORM
" null_$_,\n"
;
}
foreach
(
sort
keys
%
ext_functions
)
{
next
if
defined
$manual_win_functions
{
$_
};
print
NORM
" null_$_,\n"
;
}
print
NORM
" }\n};\n"
;
print
NORM
" }\n};\n"
;
close
(
NORM
);
close
(
NORM
);
...
...
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