annotate src/win32/Display.h @ 6:458a4f18f3cd

working on lua generation
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:48:33 -0600
parents f9f4f1b99eed
children
rev   line source
rlm@1 1 #ifndef VBA_WIN32_DISASSEMBLE_H
rlm@1 2 #define VBA_WIN32_DISASSEMBLE_H
rlm@1 3
rlm@1 4 #if _MSC_VER > 1000
rlm@1 5 #pragma once
rlm@1 6 #endif // _MSC_VER > 1000
rlm@1 7
rlm@1 8 enum DISPLAY_TYPE
rlm@1 9 {
rlm@1 10 GDI = 0,
rlm@1 11 DIRECT_DRAW = 1,
rlm@1 12 DIRECT_3D = 2,
rlm@1 13 OPENGL = 3
rlm@1 14 };
rlm@1 15
rlm@1 16 class IDisplay
rlm@1 17 {
rlm@1 18 public:
rlm@1 19 IDisplay() {};
rlm@1 20 virtual ~IDisplay() {};
rlm@1 21
rlm@1 22 virtual bool initialize() = 0;
rlm@1 23 virtual void cleanup() = 0;
rlm@1 24 virtual void render() = 0;
rlm@1 25 virtual void checkFullScreen() { };
rlm@1 26 virtual void renderMenu() { };
rlm@1 27 virtual void clear() = 0;
rlm@1 28 virtual bool changeRenderSize(int w, int h) { return true; };
rlm@1 29 virtual void resize(int w, int h) {};
rlm@1 30 virtual void setOption(const char *option, int value) = 0;
rlm@1 31 virtual DISPLAY_TYPE getType() = 0;
rlm@1 32 virtual int selectFullScreenMode(GUID * *) = 0;
rlm@1 33 };
rlm@1 34
rlm@1 35 #endif // VBA_WIN32_DISASSEMBLE_H