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
1249c642
Commit
1249c642
authored
Aug 02, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl32: Make some functions and variables static.
parent
986e202a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
29 deletions
+28
-29
wgl.c
dlls/opengl32/wgl.c
+13
-1
wgl_ext.c
dlls/opengl32/wgl_ext.c
+15
-15
wgl_ext.h
dlls/opengl32/wgl_ext.h
+0
-13
No files found.
dlls/opengl32/wgl.c
View file @
1249c642
...
...
@@ -47,8 +47,20 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
wgl
);
WINE_DECLARE_DEBUG_CHANNEL
(
opengl
);
typedef
struct
wine_glx_s
{
unsigned
version
;
/** SGIX / 1.3 */
GLXFBConfig
*
(
*
p_glXChooseFBConfig
)
(
Display
*
dpy
,
int
screen
,
const
int
*
attrib_list
,
int
*
nelements
);
int
(
*
p_glXGetFBConfigAttrib
)
(
Display
*
dpy
,
GLXFBConfig
config
,
int
attribute
,
int
*
value
);
XVisualInfo
*
(
*
p_glXGetVisualFromFBConfig
)
(
Display
*
dpy
,
GLXFBConfig
config
);
/** 1.3 */
GLXFBConfig
*
(
*
p_glXGetFBConfigs
)
(
Display
*
dpy
,
int
screen
,
int
*
nelements
);
void
(
*
p_glXQueryDrawable
)
(
Display
*
dpy
,
GLXDrawable
draw
,
int
attribute
,
unsigned
int
*
value
);
Bool
(
*
p_glXMakeContextCurrent
)
(
Display
*
,
GLXDrawable
,
GLXDrawable
,
GLXContext
);
}
wine_glx_t
;
/** global glx object */
wine_glx_t
wine_glx
;
static
wine_glx_t
wine_glx
;
/* x11drv GDI escapes */
#define X11DRV_ESCAPE 6789
...
...
dlls/opengl32/wgl_ext.c
View file @
1249c642
...
...
@@ -90,21 +90,21 @@ static char *WGL_extensions = NULL;
*
* @TODO: use a struct to handle parameters
*/
BOOL
query_function_make_current_read
(
glXGetProcAddressARB_t
proc
,
const
char
*
gl_version
,
const
char
*
gl_extensions
,
static
BOOL
query_function_make_current_read
(
glXGetProcAddressARB_t
proc
,
const
char
*
gl_version
,
const
char
*
gl_extensions
,
const
char
*
glx_version
,
const
char
*
glx_extensions
,
const
char
*
server_glx_extensions
,
const
char
*
client_glx_extensions
)
{
return
0
<=
strcmp
(
"1.3"
,
glx_version
);
}
BOOL
query_function_multisample
(
glXGetProcAddressARB_t
proc
,
const
char
*
gl_version
,
const
char
*
gl_extensions
,
static
BOOL
query_function_multisample
(
glXGetProcAddressARB_t
proc
,
const
char
*
gl_version
,
const
char
*
gl_extensions
,
const
char
*
glx_version
,
const
char
*
glx_extensions
,
const
char
*
server_glx_extensions
,
const
char
*
client_glx_extensions
)
{
return
NULL
!=
strstr
(
glx_extensions
,
"GLX_ARB_multisample"
);
}
BOOL
query_function_pbuffer
(
glXGetProcAddressARB_t
proc
,
const
char
*
gl_version
,
const
char
*
gl_extensions
,
static
BOOL
query_function_pbuffer
(
glXGetProcAddressARB_t
proc
,
const
char
*
gl_version
,
const
char
*
gl_extensions
,
const
char
*
glx_version
,
const
char
*
glx_extensions
,
const
char
*
server_glx_extensions
,
const
char
*
client_glx_extensions
)
{
...
...
@@ -114,7 +114,7 @@ BOOL query_function_pbuffer(glXGetProcAddressARB_t proc, const char *gl_version,
return
0
<=
strcmp
(
"1.3"
,
glx_version
)
||
NULL
!=
strstr
(
glx_extensions
,
"GLX_SGIX_pbuffer"
);
}
BOOL
query_function_pixel_format
(
glXGetProcAddressARB_t
proc
,
const
char
*
gl_version
,
const
char
*
gl_extensions
,
static
BOOL
query_function_pixel_format
(
glXGetProcAddressARB_t
proc
,
const
char
*
gl_version
,
const
char
*
gl_extensions
,
const
char
*
glx_version
,
const
char
*
glx_extensions
,
const
char
*
server_glx_extensions
,
const
char
*
client_glx_extensions
)
{
...
...
@@ -126,12 +126,12 @@ BOOL query_function_pixel_format(glXGetProcAddressARB_t proc, const char *gl_ver
* http://oss.sgi.com/projects/ogl-sample/registry/ARB/wgl_render_texture.txt
* ~/tmp/ogl/ogl_offscreen_rendering_3
*/
Bool
(
*
p_glXBindTexImageARB
)(
Display
*
dpy
,
GLXPbuffer
pbuffer
,
int
buffer
);
Bool
(
*
p_glXReleaseTexImageARB
)(
Display
*
dpy
,
GLXPbuffer
pbuffer
,
int
buffer
);
Bool
(
*
p_glXDrawableAttribARB
)(
Display
*
dpy
,
GLXDrawable
draw
,
const
int
*
attribList
);
int
use_render_texture_emulation
=
0
;
int
use_render_texture_ati
=
0
;
BOOL
query_function_render_texture
(
glXGetProcAddressARB_t
proc
,
const
char
*
gl_version
,
const
char
*
gl_extensions
,
static
Bool
(
*
p_glXBindTexImageARB
)(
Display
*
dpy
,
GLXPbuffer
pbuffer
,
int
buffer
);
static
Bool
(
*
p_glXReleaseTexImageARB
)(
Display
*
dpy
,
GLXPbuffer
pbuffer
,
int
buffer
);
static
Bool
(
*
p_glXDrawableAttribARB
)(
Display
*
dpy
,
GLXDrawable
draw
,
const
int
*
attribList
);
static
int
use_render_texture_emulation
=
0
;
static
int
use_render_texture_ati
=
0
;
static
BOOL
query_function_render_texture
(
glXGetProcAddressARB_t
proc
,
const
char
*
gl_version
,
const
char
*
gl_extensions
,
const
char
*
glx_version
,
const
char
*
glx_extensions
,
const
char
*
server_glx_extensions
,
const
char
*
client_glx_extensions
)
{
...
...
@@ -165,8 +165,8 @@ BOOL query_function_render_texture(glXGetProcAddressARB_t proc, const char *gl_v
return
bTest
;
}
int
(
*
p_glXSwapIntervalSGI
)(
int
);
BOOL
query_function_swap_control
(
glXGetProcAddressARB_t
proc
,
const
char
*
gl_version
,
const
char
*
gl_extensions
,
static
int
(
*
p_glXSwapIntervalSGI
)(
int
);
static
BOOL
query_function_swap_control
(
glXGetProcAddressARB_t
proc
,
const
char
*
gl_version
,
const
char
*
gl_extensions
,
const
char
*
glx_version
,
const
char
*
glx_extensions
,
const
char
*
server_glx_extensions
,
const
char
*
client_glx_extensions
)
{
...
...
@@ -1212,7 +1212,7 @@ GLboolean WINAPI wglQueryPbufferARB(HPBUFFERARB hPbuffer, int iAttribute, int *p
return
GL_TRUE
;
}
GLboolean
WINAPI
wglBindTexImageARB
(
HPBUFFERARB
hPbuffer
,
int
iBuffer
)
static
GLboolean
WINAPI
wglBindTexImageARB
(
HPBUFFERARB
hPbuffer
,
int
iBuffer
)
{
Wine_GLPBuffer
*
object
=
(
Wine_GLPBuffer
*
)
hPbuffer
;
TRACE
(
"(%p, %d)
\n
"
,
hPbuffer
,
iBuffer
);
...
...
@@ -1255,7 +1255,7 @@ GLboolean WINAPI wglBindTexImageARB(HPBUFFERARB hPbuffer, int iBuffer)
return
GL_FALSE
;
}
GLboolean
WINAPI
wglReleaseTexImageARB
(
HPBUFFERARB
hPbuffer
,
int
iBuffer
)
static
GLboolean
WINAPI
wglReleaseTexImageARB
(
HPBUFFERARB
hPbuffer
,
int
iBuffer
)
{
Wine_GLPBuffer
*
object
=
(
Wine_GLPBuffer
*
)
hPbuffer
;
TRACE
(
"(%p, %d)
\n
"
,
hPbuffer
,
iBuffer
);
...
...
@@ -1295,7 +1295,7 @@ GLboolean WINAPI wglReleaseTexImageARB(HPBUFFERARB hPbuffer, int iBuffer)
return
GL_FALSE
;
}
GLboolean
WINAPI
wglSetPbufferAttribARB
(
HPBUFFERARB
hPbuffer
,
const
int
*
piAttribList
)
static
GLboolean
WINAPI
wglSetPbufferAttribARB
(
HPBUFFERARB
hPbuffer
,
const
int
*
piAttribList
)
{
Wine_GLPBuffer
*
object
=
(
Wine_GLPBuffer
*
)
hPbuffer
;
WARN
(
"(%p, %p): alpha-testing, report any problem
\n
"
,
hPbuffer
,
piAttribList
);
...
...
dlls/opengl32/wgl_ext.h
View file @
1249c642
...
...
@@ -39,17 +39,4 @@ typedef struct {
extern
WGL_extension
wgl_extension_registry
[];
extern
int
wgl_extension_registry_size
;
typedef
struct
wine_glx_s
{
unsigned
version
;
/** SGIX / 1.3 */
GLXFBConfig
*
(
*
p_glXChooseFBConfig
)
(
Display
*
dpy
,
int
screen
,
const
int
*
attrib_list
,
int
*
nelements
);
int
(
*
p_glXGetFBConfigAttrib
)
(
Display
*
dpy
,
GLXFBConfig
config
,
int
attribute
,
int
*
value
);
XVisualInfo
*
(
*
p_glXGetVisualFromFBConfig
)
(
Display
*
dpy
,
GLXFBConfig
config
);
/** 1.3 */
GLXFBConfig
*
(
*
p_glXGetFBConfigs
)
(
Display
*
dpy
,
int
screen
,
int
*
nelements
);
void
(
*
p_glXQueryDrawable
)
(
Display
*
dpy
,
GLXDrawable
draw
,
int
attribute
,
unsigned
int
*
value
);
Bool
(
*
p_glXMakeContextCurrent
)
(
Display
*
,
GLXDrawable
,
GLXDrawable
,
GLXContext
);
}
wine_glx_t
;
extern
wine_glx_t
wine_glx
;
#endif
/* __DLLS_OPENGL32_WGL_EXT_H */
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