Initial rodecomp source snapshot
This commit is contained in:
commit
d456e8f64a
916 changed files with 156023 additions and 0 deletions
35
Source/Contents/GraphicsConfiguration.h
Normal file
35
Source/Contents/GraphicsConfiguration.h
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
#ifndef RAGNAROK_SOURCE_CONTENTS_GRAPHICSCONFIGURATION_H
|
||||
#define RAGNAROK_SOURCE_CONTENTS_GRAPHICSCONFIGURATION_H
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
class LuaScript;
|
||||
struct ScriptOptions;
|
||||
struct AdapterConfiguration;
|
||||
struct OptionWriter;
|
||||
|
||||
// Recovered shared graphics configuration globals, grouped by their owner.
|
||||
// Legacy GUID selection is populated by separate setup paths and retained by Load.
|
||||
struct GraphicsConfiguration {
|
||||
GUID drawGuid;
|
||||
GUID renderGuid;
|
||||
int fullscreen;
|
||||
int width;
|
||||
int height;
|
||||
int bitsPerPixel;
|
||||
int oldWidth;
|
||||
int oldHeight;
|
||||
int reset;
|
||||
int backend;
|
||||
GUID deviceGuid;
|
||||
char deviceName[32];
|
||||
|
||||
// Source helper for graphics publication within the larger startup loader.
|
||||
// Not a separate original entry point.
|
||||
void Load(LuaScript& script, ScriptOptions& options, int& screenWidth, int& screenHeight);
|
||||
AdapterConfiguration Adapter() const;
|
||||
// Graphics portion of the larger option save routine.
|
||||
void Save(OptionWriter& output) const;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue