0023948: Wrong intersection between a surface of revolution and a plane.
[occt.git] / src / InterfaceGraphic / InterfaceGraphic_WNT.hxx
CommitLineData
b311480e 1// Copyright (c) 1991-1999 Matra Datavision
973c2be1 2// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 3//
973c2be1 4// This file is part of Open CASCADE Technology software library.
b311480e 5//
d5f74e42 6// This library is free software; you can redistribute it and/or modify it under
7// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 8// by the Free Software Foundation, with special exception defined in the file
9// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10// distribution for complete text of the license and disclaimer of any warranty.
b311480e 11//
973c2be1 12// Alternatively, this file may be used under the terms of Open CASCADE
13// commercial license or contractual agreement.
b311480e 14
7fd59977 15#ifndef __INTERFACE_GRAPHIC_WNT_HXX
16# define __INTERFACE_GRAPHIC_WNT_HXX
17
18#ifdef WNT
19# include <windows.h>
20# ifdef DrawText
21# undef DrawText
22# endif /* DrawText */
23
24
25//for common type naming
26# define DISPLAY char
27# define WINDOW HWND
28# define GLCONTEXT HGLRC
29# define GLDRAWABLE HDC
30
31# define GET_GL_CONTEXT() wglGetCurrentContext ()
32# define GET_GLDEV_CONTEXT() wglGetCurrentDC()
33# define GL_MAKE_CURRENT(a,b,c) wglMakeCurrent(b,c)
34
35#ifdef DrawText
36# undef DrawText
37#endif /* DrawText */
38
39#define WDF_NOERASEBKGRND 0x00000001
40#define WDF_FOREIGN 0x00000002
41
42typedef struct window_data {
43
44 void* WNT_Window_Ptr; // pointer to WNT_Window
45 void* WNT_WDriver_Ptr; // pointer to WNT_WDriver or Visual3d_View
46 void* WNT_VMgr; // pointer to Visual3d_ViewManager
47 HPALETTE hPal; // palette handle or NULL
48 HBITMAP hBmp; // double buffer bitmap handle or NULL
49 DWORD dwFlags; // additional information
50
51} WINDOW_DATA;
52
53#define faUnderlined 0x00000001
54#define faItalic 0x00000002
55#define faStrikeOut 0x00000004
56#define faBold 0x00000008
57#define faHeight 0x00000010
58#define faAngle 0x00000020
59#define faWidth 0x00000040
60#define faSlant 0x00000080
61
62typedef struct font_data {
63
64 BOOL fdUnderlined;
65 BOOL fdItalic;
66 BOOL fdStrikeOut;
67 LONG fdBold;
68 LONG fdHeight;
69 LONG fdOrientation;
70 LONG fdWidth;
71 LONG fdSlant;
72
73} FONT_DATA;
74
7fd59977 75#endif //WNT
76
77#endif /* __INTERFACE_GRAPHIC_WNT_HXX */