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
8b3f8687
Commit
8b3f8687
authored
Oct 02, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move the pixel/vertex states arrays to stateblock.c.
parent
a84974e2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
133 deletions
+0
-133
device.c
dlls/wined3d/device.c
+0
-118
stateblock.c
dlls/wined3d/stateblock.c
+0
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-15
No files found.
dlls/wined3d/device.c
View file @
8b3f8687
...
...
@@ -7170,124 +7170,6 @@ const IWineD3DDeviceVtbl IWineD3DDevice_Vtbl =
IWineD3DDeviceImpl_EnumResources
};
const
DWORD
SavedPixelStates_R
[
NUM_SAVEDPIXELSTATES_R
]
=
{
WINED3DRS_ALPHABLENDENABLE
,
WINED3DRS_ALPHAFUNC
,
WINED3DRS_ALPHAREF
,
WINED3DRS_ALPHATESTENABLE
,
WINED3DRS_BLENDOP
,
WINED3DRS_COLORWRITEENABLE
,
WINED3DRS_DESTBLEND
,
WINED3DRS_DITHERENABLE
,
WINED3DRS_FILLMODE
,
WINED3DRS_FOGDENSITY
,
WINED3DRS_FOGEND
,
WINED3DRS_FOGSTART
,
WINED3DRS_LASTPIXEL
,
WINED3DRS_SHADEMODE
,
WINED3DRS_SRCBLEND
,
WINED3DRS_STENCILENABLE
,
WINED3DRS_STENCILFAIL
,
WINED3DRS_STENCILFUNC
,
WINED3DRS_STENCILMASK
,
WINED3DRS_STENCILPASS
,
WINED3DRS_STENCILREF
,
WINED3DRS_STENCILWRITEMASK
,
WINED3DRS_STENCILZFAIL
,
WINED3DRS_TEXTUREFACTOR
,
WINED3DRS_WRAP0
,
WINED3DRS_WRAP1
,
WINED3DRS_WRAP2
,
WINED3DRS_WRAP3
,
WINED3DRS_WRAP4
,
WINED3DRS_WRAP5
,
WINED3DRS_WRAP6
,
WINED3DRS_WRAP7
,
WINED3DRS_ZENABLE
,
WINED3DRS_ZFUNC
,
WINED3DRS_ZWRITEENABLE
};
const
DWORD
SavedPixelStates_T
[
NUM_SAVEDPIXELSTATES_T
]
=
{
WINED3DTSS_ALPHAARG0
,
WINED3DTSS_ALPHAARG1
,
WINED3DTSS_ALPHAARG2
,
WINED3DTSS_ALPHAOP
,
WINED3DTSS_BUMPENVLOFFSET
,
WINED3DTSS_BUMPENVLSCALE
,
WINED3DTSS_BUMPENVMAT00
,
WINED3DTSS_BUMPENVMAT01
,
WINED3DTSS_BUMPENVMAT10
,
WINED3DTSS_BUMPENVMAT11
,
WINED3DTSS_COLORARG0
,
WINED3DTSS_COLORARG1
,
WINED3DTSS_COLORARG2
,
WINED3DTSS_COLOROP
,
WINED3DTSS_RESULTARG
,
WINED3DTSS_TEXCOORDINDEX
,
WINED3DTSS_TEXTURETRANSFORMFLAGS
};
const
DWORD
SavedPixelStates_S
[
NUM_SAVEDPIXELSTATES_S
]
=
{
WINED3DSAMP_ADDRESSU
,
WINED3DSAMP_ADDRESSV
,
WINED3DSAMP_ADDRESSW
,
WINED3DSAMP_BORDERCOLOR
,
WINED3DSAMP_MAGFILTER
,
WINED3DSAMP_MINFILTER
,
WINED3DSAMP_MIPFILTER
,
WINED3DSAMP_MIPMAPLODBIAS
,
WINED3DSAMP_MAXMIPLEVEL
,
WINED3DSAMP_MAXANISOTROPY
,
WINED3DSAMP_SRGBTEXTURE
,
WINED3DSAMP_ELEMENTINDEX
};
const
DWORD
SavedVertexStates_R
[
NUM_SAVEDVERTEXSTATES_R
]
=
{
WINED3DRS_AMBIENT
,
WINED3DRS_AMBIENTMATERIALSOURCE
,
WINED3DRS_CLIPPING
,
WINED3DRS_CLIPPLANEENABLE
,
WINED3DRS_COLORVERTEX
,
WINED3DRS_DIFFUSEMATERIALSOURCE
,
WINED3DRS_EMISSIVEMATERIALSOURCE
,
WINED3DRS_FOGDENSITY
,
WINED3DRS_FOGEND
,
WINED3DRS_FOGSTART
,
WINED3DRS_FOGTABLEMODE
,
WINED3DRS_FOGVERTEXMODE
,
WINED3DRS_INDEXEDVERTEXBLENDENABLE
,
WINED3DRS_LIGHTING
,
WINED3DRS_LOCALVIEWER
,
WINED3DRS_MULTISAMPLEANTIALIAS
,
WINED3DRS_MULTISAMPLEMASK
,
WINED3DRS_NORMALIZENORMALS
,
WINED3DRS_PATCHEDGESTYLE
,
WINED3DRS_POINTSCALE_A
,
WINED3DRS_POINTSCALE_B
,
WINED3DRS_POINTSCALE_C
,
WINED3DRS_POINTSCALEENABLE
,
WINED3DRS_POINTSIZE
,
WINED3DRS_POINTSIZE_MAX
,
WINED3DRS_POINTSIZE_MIN
,
WINED3DRS_POINTSPRITEENABLE
,
WINED3DRS_RANGEFOGENABLE
,
WINED3DRS_SPECULARMATERIALSOURCE
,
WINED3DRS_TWEENFACTOR
,
WINED3DRS_VERTEXBLEND
,
WINED3DRS_CULLMODE
,
WINED3DRS_FOGCOLOR
};
const
DWORD
SavedVertexStates_T
[
NUM_SAVEDVERTEXSTATES_T
]
=
{
WINED3DTSS_TEXCOORDINDEX
,
WINED3DTSS_TEXTURETRANSFORMFLAGS
};
const
DWORD
SavedVertexStates_S
[
NUM_SAVEDVERTEXSTATES_S
]
=
{
WINED3DSAMP_DMAPOFFSET
};
void
IWineD3DDeviceImpl_MarkStateDirty
(
IWineD3DDeviceImpl
*
This
,
DWORD
state
)
{
DWORD
rep
=
This
->
StateTable
[
state
].
representative
;
struct
wined3d_context
*
context
;
...
...
dlls/wined3d/stateblock.c
View file @
8b3f8687
This diff is collapsed.
Click to expand it.
dlls/wined3d/wined3d_private.h
View file @
8b3f8687
...
...
@@ -148,21 +148,6 @@ void wined3d_rb_free(void *ptr) DECLSPEC_HIDDEN;
#define MAX_ACTIVE_LIGHTS 8
#define MAX_CLIPPLANES WINED3DMAXUSERCLIPPLANES
/* Used for CreateStateBlock */
#define NUM_SAVEDPIXELSTATES_R 35
#define NUM_SAVEDPIXELSTATES_T 17
#define NUM_SAVEDPIXELSTATES_S 12
#define NUM_SAVEDVERTEXSTATES_R 33
#define NUM_SAVEDVERTEXSTATES_T 2
#define NUM_SAVEDVERTEXSTATES_S 1
extern
const
DWORD
SavedPixelStates_R
[
NUM_SAVEDPIXELSTATES_R
]
DECLSPEC_HIDDEN
;
extern
const
DWORD
SavedPixelStates_T
[
NUM_SAVEDPIXELSTATES_T
]
DECLSPEC_HIDDEN
;
extern
const
DWORD
SavedPixelStates_S
[
NUM_SAVEDPIXELSTATES_S
]
DECLSPEC_HIDDEN
;
extern
const
DWORD
SavedVertexStates_R
[
NUM_SAVEDVERTEXSTATES_R
]
DECLSPEC_HIDDEN
;
extern
const
DWORD
SavedVertexStates_T
[
NUM_SAVEDVERTEXSTATES_T
]
DECLSPEC_HIDDEN
;
extern
const
DWORD
SavedVertexStates_S
[
NUM_SAVEDVERTEXSTATES_S
]
DECLSPEC_HIDDEN
;
typedef
enum
_WINELOOKUP
{
WINELOOKUP_WARPPARAM
=
0
,
MAX_LOOKUPS
=
1
...
...
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