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
34c40097
Commit
34c40097
authored
Dec 05, 2006
by
Chris Robinson
Committed by
Alexandre Julliard
Dec 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wgl: Implement wglGetPixelFormatAttribfvARB.
parent
87fa2e3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
11 deletions
+34
-11
opengl.c
dlls/winex11.drv/opengl.c
+34
-11
No files found.
dlls/winex11.drv/opengl.c
View file @
34c40097
...
...
@@ -2228,17 +2228,6 @@ static GLboolean WINAPI X11DRV_wglChoosePixelFormatARB(HDC hdc, const int *piAtt
}
/**
* X11DRV_wglGetPixelFormatAttribfvARB
*
* WGL_ARB_pixel_format: wglGetPixelFormatAttribfvARB
*/
static
GLboolean
WINAPI
X11DRV_wglGetPixelFormatAttribfvARB
(
HDC
hdc
,
int
iPixelFormat
,
int
iLayerPlane
,
UINT
nAttributes
,
const
int
*
piAttributes
,
FLOAT
*
pfValues
)
{
FIXME
(
"(%p, %d, %d, %d, %p, %p): stub
\n
"
,
hdc
,
iPixelFormat
,
iLayerPlane
,
nAttributes
,
piAttributes
,
pfValues
);
return
GL_FALSE
;
}
/**
* X11DRV_wglGetPixelFormatAttribivARB
*
* WGL_ARB_pixel_format: wglGetPixelFormatAttribivARB
...
...
@@ -2462,6 +2451,40 @@ pix_error:
}
/**
* X11DRV_wglGetPixelFormatAttribfvARB
*
* WGL_ARB_pixel_format: wglGetPixelFormatAttribfvARB
*/
static
GLboolean
WINAPI
X11DRV_wglGetPixelFormatAttribfvARB
(
HDC
hdc
,
int
iPixelFormat
,
int
iLayerPlane
,
UINT
nAttributes
,
const
int
*
piAttributes
,
FLOAT
*
pfValues
)
{
int
*
attr
;
int
ret
;
int
i
;
TRACE
(
"(%p, %d, %d, %d, %p, %p)
\n
"
,
hdc
,
iPixelFormat
,
iLayerPlane
,
nAttributes
,
piAttributes
,
pfValues
);
/* Allocate a temporary array to store integer values */
attr
=
HeapAlloc
(
GetProcessHeap
(),
0
,
nAttributes
*
sizeof
(
int
));
if
(
!
attr
)
{
ERR
(
"couldn't allocate %d array
\n
"
,
nAttributes
);
return
GL_FALSE
;
}
/* Piggy-back on wglGetPixelFormatAttribivARB */
ret
=
X11DRV_wglGetPixelFormatAttribivARB
(
hdc
,
iPixelFormat
,
iLayerPlane
,
nAttributes
,
piAttributes
,
attr
);
if
(
ret
)
{
/* Convert integer values to float. Should also check for attributes
that can give decimal values here */
for
(
i
=
0
;
i
<
nAttributes
;
i
++
)
{
pfValues
[
i
]
=
attr
[
i
];
}
}
HeapFree
(
GetProcessHeap
(),
0
,
attr
);
return
ret
;
}
/**
* X11DRV_wglBindTexImageARB
*
* WGL_ARB_render_texture: wglBindTexImageARB
...
...
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