Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Output
Winx64
Build
PublishedApi
Mstn
MdlApi
global.h
Go to the documentation of this file.
1
/*--------------------------------------------------------------------------------------+
2
|
3
| Supplied under applicable software license agreement.
4
|
5
| Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
6
|
7
+---------------------------------------------------------------------------------------*/
8
#pragma once
9
10
#include <
Mstn\MstnDefs.h
>
11
#include "
mstypes.h
"
12
#include <
Mstn\MdlApi\msinputq.h
>
13
14
typedef
struct
msDisplayDescr
15
{
16
int
id
;
/* card identity */
17
int
xResolution
;
/* x resolution (pixels) */
18
int
yResolution
;
/* y resolution (pixels) */
19
int
screenWidth
;
/* physical size of screen used, x */
20
int
screenHeight
;
/* physical size of screen used, y */
21
double
aspect
;
/* aspect ratio of screen */
22
int
charHeight
;
/* character height (pixels) */
23
int
charWidth
;
/* width of characters (pixels) */
24
int
cursorWidth
;
/* 1/2 of graphics cursor width */
25
int
cursorHeight
;
/* 1/2 of graphics cursor height */
26
byte
gammaTable
[256];
/* gamma correction table */
27
double
gammaCorrection
;
/* Gamma Correction (for dithering) */
28
BSIRect
screenRect
;
/* coord's of device (truly global on Mac) */
29
}
MSDisplayDescr
;
30
31
/*----------------------------------------------------------------------+
32
| |
33
| Graphics Configuration |
34
| |
35
+----------------------------------------------------------------------*/
36
typedef
struct
msGraphConfig
37
{
38
short
numScreens
;
/* number of physical screens */
39
short
currentScreen
;
/* displayed screen */
40
short
windowBorderStyle
;
/* 0 normal, 1-9 = wide, 128 = none */
41
MSDisplayDescr
*
displayDescrP
[
MAX_PHYSSCREEN
];
42
short
needUpdateOnSwap
;
/* true if we need update on a swap */
43
BSIRect
swapUpdateRect
;
/* Rectangle we need update for */
44
void
*
updateHereBack
;
/* frontmost wind that needs update */
45
int
initialized
;
/* graphics initialized? */
46
}
MSGraphConfig
;
47
msGraphConfig::displayDescrP
MSDisplayDescr * displayDescrP[MAX_PHYSSCREEN]
Definition:
global.h:41
msDisplayDescr::screenHeight
int screenHeight
Definition:
global.h:20
msGraphConfig::needUpdateOnSwap
short needUpdateOnSwap
Definition:
global.h:42
msGraphConfig::swapUpdateRect
BSIRect swapUpdateRect
Definition:
global.h:43
msDisplayDescr::cursorHeight
int cursorHeight
Definition:
global.h:25
MSGraphConfig
struct msGraphConfig MSGraphConfig
MAX_PHYSSCREEN
Definition:
MstnDefs.h:24
msDisplayDescr::gammaTable
byte gammaTable[256]
Definition:
global.h:26
msGraphConfig::initialized
int initialized
Definition:
global.h:45
msDisplayDescr::screenWidth
int screenWidth
Definition:
global.h:19
msGraphConfig::numScreens
short numScreens
Definition:
global.h:38
msGraphConfig::currentScreen
short currentScreen
Definition:
global.h:39
MSDisplayDescr
struct msDisplayDescr MSDisplayDescr
msGraphConfig
Definition:
global.h:36
msinputq.h
mstypes.h
MstnDefs.h
byte
unsigned char byte
Definition:
Bentley.r.h:144
msDisplayDescr::charWidth
int charWidth
Definition:
global.h:23
msDisplayDescr::cursorWidth
int cursorWidth
Definition:
global.h:24
msDisplayDescr::gammaCorrection
double gammaCorrection
Definition:
global.h:27
msDisplayDescr::charHeight
int charHeight
Definition:
global.h:22
msDisplayDescr::yResolution
int yResolution
Definition:
global.h:18
msDisplayDescr::aspect
double aspect
Definition:
global.h:21
msDisplayDescr::xResolution
int xResolution
Definition:
global.h:17
msGraphConfig::windowBorderStyle
short windowBorderStyle
Definition:
global.h:40
msDisplayDescr::screenRect
BSIRect screenRect
Definition:
global.h:28
msDisplayDescr
Definition:
global.h:14
msDisplayDescr::id
int id
Definition:
global.h:16
msGraphConfig::updateHereBack
void * updateHereBack
Definition:
global.h:44
Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.