mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-21 10:55:33 +03:00
License statement text corrected; compiler warnings caused by Bison 2.41 disabled for MSVC; a few other compiler warnings on 54-bit Windows eliminated by appropriate type cast Wrong license statements corrected in several files. Copyright and license statements added in XSD and GLSL files. Copyright year updated in some files. Obsolete documentation files removed from DrawResources.
94 lines
3.4 KiB
C++
94 lines
3.4 KiB
C++
// Copyright (c) 1999-2014 OPEN CASCADE SAS
|
|
//
|
|
// This file is part of Open CASCADE Technology software library.
|
|
//
|
|
// This library is free software; you can redistribute it and/or modify it under
|
|
// the terms of the GNU Lesser General Public License version 2.1 as published
|
|
// by the Free Software Foundation, with special exception defined in the file
|
|
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
// distribution for complete text of the license and disclaimer of any warranty.
|
|
//
|
|
// Alternatively, this file may be used under the terms of Open CASCADE
|
|
// commercial license or contractual agreement.
|
|
|
|
#ifndef __Aspect_WNTXWD_HXX
|
|
# define __Aspect_WNTXWD_HXX
|
|
|
|
#if !defined(_WIN32) && !defined(__WIN32__) && (!defined(__APPLE__) || defined(MACOSX_USE_GLX))
|
|
# include <X11/XWDFile.h>
|
|
# else
|
|
|
|
# ifdef WORD64
|
|
# define B32 :32
|
|
# else
|
|
# define B32
|
|
# endif /* WORD64 */
|
|
|
|
# define XWD_FILE_VERSION 7
|
|
|
|
# define XYBitmap 0
|
|
# define XYPixmap 1
|
|
# define ZPixmap 2
|
|
|
|
# define LSBFirst 0
|
|
# define MSBFirst 1
|
|
|
|
# define DoRed ( 1 << 0 )
|
|
# define DoGreen ( 1 << 1 )
|
|
# define DoBlue ( 1 << 2 )
|
|
|
|
# define StaticGray 0
|
|
# define GrayScale 1
|
|
# define StaticColor 2
|
|
# define PseudoColor 3
|
|
# define TrueColor 4
|
|
# define DirectColor 5
|
|
|
|
typedef unsigned int CARD32;
|
|
|
|
typedef struct _xwd_file_header {
|
|
|
|
CARD32 header_size B32;
|
|
CARD32 file_version B32;
|
|
CARD32 pixmap_format B32;
|
|
CARD32 pixmap_depth B32;
|
|
CARD32 pixmap_width B32;
|
|
CARD32 pixmap_height B32;
|
|
CARD32 xoffset B32;
|
|
CARD32 byte_order B32;
|
|
CARD32 bitmap_unit B32;
|
|
CARD32 bitmap_bit_order B32;
|
|
CARD32 bitmap_pad B32;
|
|
CARD32 bits_per_pixel B32;
|
|
CARD32 bytes_per_line B32;
|
|
CARD32 visual_class B32;
|
|
CARD32 red_mask B32;
|
|
CARD32 green_mask B32;
|
|
CARD32 blue_mask B32;
|
|
CARD32 bits_per_rgb B32;
|
|
CARD32 colormap_entries B32;
|
|
CARD32 ncolors B32;
|
|
CARD32 window_width B32;
|
|
CARD32 window_height B32;
|
|
CARD32 window_x B32;
|
|
CARD32 window_y B32;
|
|
CARD32 window_bdrwidth B32;
|
|
# ifdef WORD64
|
|
CARD32 header_end B32;
|
|
# endif /* WORD64 */
|
|
} XWDFileHeader;
|
|
|
|
typedef struct _xcolor {
|
|
|
|
unsigned long pixel;
|
|
unsigned short red;
|
|
unsigned short green;
|
|
unsigned short blue;
|
|
char flags;
|
|
char pad;
|
|
|
|
} XColor;
|
|
|
|
# endif /* WNT */
|
|
#endif /* __Aspect_WNTXWD_HXX */
|