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
5d91a63a
Commit
5d91a63a
authored
Aug 16, 2004
by
Andreas Mohr
Committed by
Alexandre Julliard
Aug 16, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move some OpenGL defines from the private wgl.h header to where they
belong.
parent
b10996c5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
45 deletions
+43
-45
wgl.c
dlls/opengl32/wgl.c
+1
-1
wgl.h
dlls/opengl32/wgl.h
+0
-44
windef.h
include/windef.h
+1
-0
wingdi.h
include/wingdi.h
+41
-0
No files found.
dlls/opengl32/wgl.c
View file @
5d91a63a
...
...
@@ -258,7 +258,7 @@ HGLRC WINAPI wglGetCurrentContext(void) {
TRACE
(
" returning %p (GL context %p)
\n
"
,
ret
,
gl_ctx
);
return
ret
;
return
(
HGLRC
)
ret
;
}
/***********************************************************************
...
...
dlls/opengl32/wgl.h
View file @
5d91a63a
...
...
@@ -22,50 +22,6 @@
#include "wingdi.h"
typedef
void
*
HGLRC
;
typedef
struct
{
WORD
nSize
;
WORD
nVersion
;
DWORD
dwFlags
;
BYTE
iPixelType
;
BYTE
cColorBits
;
BYTE
cRedBits
;
BYTE
cRedShift
;
BYTE
cGreenBits
;
BYTE
cGreenShift
;
BYTE
cBlueBits
;
BYTE
cBlueShift
;
BYTE
cAlphaBits
;
BYTE
cAlphaShift
;
BYTE
cAccumBits
;
BYTE
cAccumRedBits
;
BYTE
cAccumGreenBits
;
BYTE
cAccumBlueBits
;
BYTE
cAccumAlphaBits
;
BYTE
cDepthBits
;
BYTE
cStencilBits
;
BYTE
cAuxBuffers
;
BYTE
iLayerPlane
;
BYTE
bReserved
;
COLORREF
crTransparent
;
}
LAYERPLANEDESCRIPTOR
;
typedef
LAYERPLANEDESCRIPTOR
*
LPLAYERPLANEDESCRIPTOR
;
typedef
struct
{
FLOAT
x
;
FLOAT
y
;
}
POINTFLOAT
;
typedef
struct
{
FLOAT
gmfBlackBoxX
;
FLOAT
gmfBlackBoxY
;
POINTFLOAT
gmfptGlyphOrigin
;
FLOAT
gmfCellIncX
;
FLOAT
gmfCellIncY
;
}
GLYPHMETRICSFLOAT
;
typedef
GLYPHMETRICSFLOAT
*
LPGLYPHMETRICSFLOAT
;
HGLRC
WINAPI
wglCreateContext
(
HDC
hdc
)
;
HGLRC
WINAPI
wglCreateLayerContext
(
HDC
hdc
,
int
iLayerPlane
)
;
...
...
include/windef.h
View file @
5d91a63a
...
...
@@ -225,6 +225,7 @@ DECLARE_HANDLE(HDC);
DECLARE_HANDLE
(
HDESK
);
DECLARE_HANDLE
(
HENHMETAFILE
);
DECLARE_HANDLE
(
HFONT
);
DECLARE_HANDLE
(
HGLRC
);
DECLARE_HANDLE
(
HHOOK
);
DECLARE_HANDLE
(
HICON
);
DECLARE_HANDLE
(
HINSTANCE
);
...
...
include/wingdi.h
View file @
5d91a63a
...
...
@@ -1407,6 +1407,47 @@ typedef struct
#define TT_PRIM_CSPLINE 3
#define TT_POLYGON_TYPE 24
/* OpenGL defines */
typedef
struct
{
FLOAT
x
;
FLOAT
y
;
}
POINTFLOAT
,
*
PPOINTFLOAT
;
typedef
struct
{
FLOAT
gmfBlackBoxX
;
FLOAT
gmfBlackBoxY
;
POINTFLOAT
gmfptGlyphOrigin
;
FLOAT
gmfCellIncX
;
FLOAT
gmfCellIncY
;
}
GLYPHMETRICSFLOAT
,
*
PGLYPHMETRICSFLOAT
,
*
LPGLYPHMETRICSFLOAT
;
typedef
struct
{
WORD
nSize
;
WORD
nVersion
;
DWORD
dwFlags
;
BYTE
iPixelType
;
BYTE
cColorBits
;
BYTE
cRedBits
;
BYTE
cRedShift
;
BYTE
cGreenBits
;
BYTE
cGreenShift
;
BYTE
cBlueBits
;
BYTE
cBlueShift
;
BYTE
cAlphaBits
;
BYTE
cAlphaShift
;
BYTE
cAccumBits
;
BYTE
cAccumRedBits
;
BYTE
cAccumGreenBits
;
BYTE
cAccumBlueBits
;
BYTE
cAccumAlphaBits
;
BYTE
cDepthBits
;
BYTE
cStencilBits
;
BYTE
cAuxBuffers
;
BYTE
iLayerPlane
;
BYTE
bReserved
;
COLORREF
crTransparent
;
}
LAYERPLANEDESCRIPTOR
,
*
PLAYERPLANEDESCRIPTOR
,
*
LPLAYERPLANEDESCRIPTOR
;
/* Get/SetSystemPaletteUse() values */
#define SYSPAL_ERROR 0
#define SYSPAL_STATIC 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