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
80c82f52
Commit
80c82f52
authored
Feb 04, 2006
by
Vitaly Budovski
Committed by
Alexandre Julliard
Feb 04, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Fixed POINTSCALEENABLE.
parent
3c17322e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
24 deletions
+31
-24
device.c
dlls/d3d8/device.c
+31
-24
No files found.
dlls/d3d8/device.c
View file @
80c82f52
...
...
@@ -2976,32 +2976,39 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetRenderState(LPDIRECT3DDEVICE8 iface, D3
case
D3DRS_POINTSCALE_B
:
case
D3DRS_POINTSCALE_C
:
case
D3DRS_POINTSCALEENABLE
:
{
/* If enabled, supply the parameters, otherwise fall back to defaults */
if
(
This
->
StateBlock
->
renderstate
[
D3DRS_POINTSCALEENABLE
])
{
GLfloat
att
[
3
]
=
{
1
.
0
f
,
0
.
0
f
,
0
.
0
f
};
att
[
0
]
=
*
((
float
*
)
&
This
->
StateBlock
->
renderstate
[
D3DRS_POINTSCALE_A
]);
att
[
1
]
=
*
((
float
*
)
&
This
->
StateBlock
->
renderstate
[
D3DRS_POINTSCALE_B
]);
att
[
2
]
=
*
((
float
*
)
&
This
->
StateBlock
->
renderstate
[
D3DRS_POINTSCALE_C
]);
if
(
GL_SUPPORT
(
EXT_POINT_PARAMETERS
))
{
GL_EXTCALL
(
glPointParameterfvEXT
)(
GL_DISTANCE_ATTENUATION_EXT
,
att
);
checkGLcall
(
"glPointParameterfvEXT(GL_DISTANCE_ATTENUATION_EXT, ...);"
);
}
else
{
TRACE
(
"D3DRS_POINTSCALEENABLE not supported on this opengl
\n
"
);
}
}
else
{
GLfloat
att
[
3
]
=
{
1
.
0
f
,
0
.
0
f
,
0
.
0
f
};
if
(
GL_SUPPORT
(
EXT_POINT_PARAMETERS
))
{
GL_EXTCALL
(
glPointParameterfvEXT
)(
GL_DISTANCE_ATTENUATION_EXT
,
att
);
checkGLcall
(
"glPointParameterfvEXT(GL_DISTANCE_ATTENUATION_EXT, ...);"
);
}
else
{
TRACE
(
"D3DRS_POINTSCALEENABLE not supported, but not on either
\n
"
);
}
}
break
;
{
/*
* POINTSCALEENABLE controls how point size value is treated. If set to
* true, the point size is scaled with respect to height of viewport.
* When set to false point size is in pixels.
*
* http://msdn.microsoft.com/library/en-us/directx9_c/point_sprites.asp
*/
/* Default values */
GLfloat
att
[
3
]
=
{
1
.
0
f
,
0
.
0
f
,
0
.
0
f
};
if
(
This
->
StateBlock
->
renderstate
[
D3DRS_POINTSCALEENABLE
])
{
att
[
0
]
=
*
((
float
*
)
&
This
->
StateBlock
->
renderstate
[
D3DRS_POINTSCALE_A
])
/
(
This
->
StateBlock
->
viewport
.
Height
*
This
->
StateBlock
->
viewport
.
Height
);
att
[
1
]
=
*
((
float
*
)
&
This
->
StateBlock
->
renderstate
[
D3DRS_POINTSCALE_B
])
/
(
This
->
StateBlock
->
viewport
.
Height
*
This
->
StateBlock
->
viewport
.
Height
);
att
[
2
]
=
*
((
float
*
)
&
This
->
StateBlock
->
renderstate
[
D3DRS_POINTSCALE_C
])
/
(
This
->
StateBlock
->
viewport
.
Height
*
This
->
StateBlock
->
viewport
.
Height
);
}
if
(
GL_SUPPORT
(
ARB_POINT_PARAMETERS
))
{
glPointParameterfvARB
(
GL_POINT_DISTANCE_ATTENUATION_ARB
,
att
);
checkGLcall
(
"glPointParameterfvARB(GL_DISTANCE_ATTENUATION_ARB, ..."
);
}
else
if
(
GL_SUPPORT
(
EXT_POINT_PARAMETERS
))
{
GL_EXTCALL
(
glPointParameterfvEXT
)(
GL_DISTANCE_ATTENUATION_EXT
,
att
);
checkGLcall
(
"glPointParameterfvEXT(GL_DISTANCE_ATTENUATION_EXT, ..."
);
}
else
{
TRACE
(
"POINT_PARAMETERS not supported in this version of opengl
\n
"
);
}
break
;
}
case
D3DRS_COLORWRITEENABLE
:
{
TRACE
(
"Color mask: r(%d) g(%d) b(%d) a(%d)
\n
"
,
...
...
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