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
094f6bc9
Commit
094f6bc9
authored
Jun 04, 2003
by
Lionel Ulmer
Committed by
Alexandre Julliard
Jun 04, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactoring of the texture upload code.
parent
934d97b5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
d3dtexture.c
dlls/ddraw/d3dtexture.c
+0
-0
mesa.c
dlls/ddraw/mesa.c
+0
-0
mesa_private.h
dlls/ddraw/mesa_private.h
+9
-0
No files found.
dlls/ddraw/d3dtexture.c
View file @
094f6bc9
This diff is collapsed.
Click to expand it.
dlls/ddraw/mesa.c
View file @
094f6bc9
This diff is collapsed.
Click to expand it.
dlls/ddraw/mesa_private.h
View file @
094f6bc9
...
...
@@ -70,6 +70,9 @@ typedef struct IDirect3DTextureGLImpl
/* Surface optimization */
void
*
surface_ptr
;
/* Used to detect a change in internal format when going from non-CK texture to CK-ed texture */
GLenum
current_internal_format
;
/* This is for now used to override 'standard' surface stuff to be as transparent as possible */
void
(
*
final_release
)(
struct
IDirectDrawSurfaceImpl
*
This
);
...
...
@@ -143,6 +146,12 @@ extern void store_render_state(IDirect3DDeviceImpl *This, D3DRENDERSTATETYPE dwR
extern
void
get_render_state
(
IDirect3DDeviceImpl
*
This
,
D3DRENDERSTATETYPE
dwRenderStateType
,
LPDWORD
lpdwRenderState
,
STATEBLOCK
*
lpStateBlock
);
extern
void
apply_render_state
(
IDirect3DDeviceImpl
*
This
,
STATEBLOCK
*
lpStateBlock
);
/* Memory to texture conversion code. Split in three functions to do some optimizations. */
extern
HRESULT
upload_surface_to_tex_memory_init
(
IDirectDrawSurfaceImpl
*
surface
,
GLuint
level
,
GLenum
*
prev_internal_format
,
BOOLEAN
need_to_alloc
,
BOOLEAN
need_alpha_ck
);
extern
HRESULT
upload_surface_to_tex_memory
(
RECT
*
rect
,
void
**
temp_buffer
);
extern
HRESULT
upload_surface_to_tex_memory_release
(
void
);
/* This structure contains all the function pointers to OpenGL extensions
that are used by Wine */
typedef
struct
{
...
...
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