Isle
Loading...
Searching...
No Matches
mxvideoparam.h
Go to the documentation of this file.
1#ifndef MXVIDEOPARAM_H
2#define MXVIDEOPARAM_H
3
4#include "compat.h"
5#include "mxgeometry.h"
6#include "mxtypes.h"
7#include "mxvideoparamflags.h"
8
9#include <ddraw.h>
10
11class MxPalette;
12
15public:
18
24 __declspec(dllexport)
26
29 MxVideoParam(MxVideoParam& p_videoParam);
30
32 ~MxVideoParam();
33
36 void SetDeviceName(char* p_deviceId);
37
41 MxVideoParam& operator=(const MxVideoParam& p_videoParam);
42
45 MxVideoParamFlags& Flags() { return m_flags; }
46
49 MxRect32& GetRect() { return m_rect; }
50
53 MxPalette* GetPalette() { return m_palette; }
54
57 void SetPalette(MxPalette* p_palette) { m_palette = p_palette; }
58
61 char* GetDeviceName() { return m_deviceId; }
62
64 MxU32 GetBackBuffers() { return m_backBuffers; }
65
69
70private:
71 MxRect32 m_rect;
72 MxPalette* m_palette;
73 MxU32 m_backBuffers;
74 MxVideoParamFlags m_flags;
75 int m_unk0x1c;
76 char* m_deviceId;
77};
78
79#endif // MXVIDEOPARAM_H
[AI] Encapsulates a DirectDraw 8-bit (256 color) palette for use with DirectX rendering.
Definition: mxpalette.h:17
[AI] Rectangle using 32-bit signed integer coordinates.
Definition: mxgeometry.h:706
[AI] Manages video parameter flags, providing an abstraction for various video settings such as fulls...
[AI] Video parameter configuration for display and rendering, encapsulates resolution,...
Definition: mxvideoparam.h:14
__declspec(dllexport) MxVideoParam(MxRect32 &p_rect
[AI] Construct MxVideoParam specifying display rectangle, color palette, number of back buffers,...
void SetBackBuffers(MxU32 p_backBuffers)
[AI] Set the desired number of backbuffers (triple/double buffering).
Definition: mxvideoparam.h:68
MxU32 GetBackBuffers()
[AI] Get the number of backbuffers requested for this display mode.
Definition: mxvideoparam.h:64
MxPalette * p_palette
Definition: mxvideoparam.h:25
void SetDeviceName(char *p_deviceId)
[AI] Set the device name/id for this video parameter (e.g., a specific display adapter),...
MxPalette MxULong MxVideoParamFlags & p_flags
Definition: mxvideoparam.h:25
MxVideoParam()
[AI] Construct MxVideoParam with default screen rectangle (640x480), no palette, zero backbuffers,...
MxPalette MxULong p_backBuffers
Definition: mxvideoparam.h:25
void SetPalette(MxPalette *p_palette)
[AI] Assign the palette pointer (color indexing) for the video mode.
Definition: mxvideoparam.h:57
MxPalette * GetPalette()
[AI] Get the palette used for rendering (may be NULL if not set).
Definition: mxvideoparam.h:53
MxVideoParamFlags & Flags()
[AI] Access the video parameter flags (windowed/fullscreen, rendering mode, etc).
Definition: mxvideoparam.h:45
MxRect32 & GetRect()
[AI] Get the rectangle specifying the display dimensions and screen area.
Definition: mxvideoparam.h:49
char * GetDeviceName()
[AI] Get a pointer to the internal device name string (may be NULL).
Definition: mxvideoparam.h:61
unsigned int MxULong
[AI]
Definition: mxtypes.h:93
unsigned int MxU32
[AI]
Definition: mxtypes.h:32