Isle
Loading...
Searching...
No Matches
legodxinfo.h
Go to the documentation of this file.
1#ifndef LEGODXINFO_H
2#define LEGODXINFO_H
3
4#include "mxdirectxinfo.h"
5
6// VTABLE: CONFIG 0x4060e4
7// VTABLE: LEGO1 0x100d9cc8
8// VTABLE: BETA10 0x101befb4
9// SIZE 0x14
10
25public:
31 int ParseDeviceName(const char* p_deviceId);
32
39 int ProcessDeviceBytes(int p_deviceNum, GUID& p_guid);
40
48 int GetDevice(int p_deviceNum, MxDriver*& p_driver, Direct3DDeviceInfo*& p_device);
49
57 int FormatDeviceName(char* p_buffer, const MxDriver* p_ddInfo, const Direct3DDeviceInfo* p_d3dInfo) const;
58
65 int BETA_1011cc65(int p_idx, char* p_buffer);
66
71 int FUN_1009d0d0();
72
78 static int SupportsMMX();
79
85 static int SupportsCPUID();
86
91 int FUN_1009d210();
92
98 unsigned char DriverSupportsRequiredDisplayMode(MxDriver& p_driver);
99
105 unsigned char FUN_1009d3d0(Direct3DDeviceInfo& p_device);
106
107 // SYNTHETIC: BETA10 0x100d8d10
108 // LegoDeviceEnumerate::LegoDeviceEnumerate
109
110 // SYNTHETIC: LEGO1 0x1007b590
111 // SYNTHETIC: BETA10 0x100d8da0
112 // LegoDeviceEnumerate::~LegoDeviceEnumerate
113};
114
115#endif // LEGODXINFO_H
[AI] Enumerates and manages Direct3D devices and drivers for the LEGO Island engine.
Definition: legodxinfo.h:24
static int SupportsCPUID()
[AI] Checks if the CPU supports CPUID instruction.
Definition: legodxinfo.cpp:249
unsigned char DriverSupportsRequiredDisplayMode(MxDriver &p_driver)
[AI] Checks if a driver supports a 640x480 display mode in 8bpp or 16bpp (needed by LEGO Island).
Definition: legodxinfo.cpp:335
int GetDevice(int p_deviceNum, MxDriver *&p_driver, Direct3DDeviceInfo *&p_device)
[AI] Outputs pointers to the MxDriver and Direct3DDeviceInfo for the given device index.
Definition: legodxinfo.cpp:85
static int SupportsMMX()
[AI] Checks if the CPU supports MMX instructions.
Definition: legodxinfo.cpp:202
unsigned char FUN_1009d3d0(Direct3DDeviceInfo &p_device)
[AI] Checks if a device supports required rendering features (Z-buffer, perspective,...
Definition: legodxinfo.cpp:352
int FUN_1009d0d0()
[AI] Finds and returns the preferred device index that supports required features.
Definition: legodxinfo.cpp:161
int ParseDeviceName(const char *p_deviceId)
[AI] Parses a device string identifier and locates the matching device entry.
Definition: legodxinfo.cpp:11
int FormatDeviceName(char *p_buffer, const MxDriver *p_ddInfo, const Direct3DDeviceInfo *p_d3dInfo) const
[AI] Formats and serializes a device identification string for a given driver/device.
Definition: legodxinfo.cpp:111
int ProcessDeviceBytes(int p_deviceNum, GUID &p_guid)
[AI] Returns the index of the device matching the given GUID and driver number.
Definition: legodxinfo.cpp:44
int FUN_1009d210()
[AI] Prunes the enumeration to only include devices/drivers that support the required display mode an...
Definition: legodxinfo.cpp:294
int BETA_1011cc65(int p_idx, char *p_buffer)
[AI] Formats device identification string for the device at a specific global index (Beta10-specific)...
Definition: legodxinfo.cpp:131
[AI] Enumerates DirectDraw/Direct3D drivers, devices, and display modes on the system.
[AI] Encapsulates Direct3D device enumeration information and capability structures.
[AI] Holds data about a DirectDraw driver including devices and supported display modes.