diff src/win32/Display.h @ 1:f9f4f1b99eed

importing src directory
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:27 -0600
parents
children
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/win32/Display.h	Sat Mar 03 10:31:27 2012 -0600
     1.3 @@ -0,0 +1,35 @@
     1.4 +#ifndef VBA_WIN32_DISASSEMBLE_H
     1.5 +#define VBA_WIN32_DISASSEMBLE_H
     1.6 +
     1.7 +#if _MSC_VER > 1000
     1.8 +#pragma once
     1.9 +#endif // _MSC_VER > 1000
    1.10 +
    1.11 +enum DISPLAY_TYPE
    1.12 +{
    1.13 +	GDI         = 0,
    1.14 +	DIRECT_DRAW = 1,
    1.15 +	DIRECT_3D   = 2,
    1.16 +	OPENGL      = 3
    1.17 +};
    1.18 +
    1.19 +class IDisplay
    1.20 +{
    1.21 +public:
    1.22 +	IDisplay() {};
    1.23 +	virtual ~IDisplay() {};
    1.24 +
    1.25 +	virtual bool initialize() = 0;
    1.26 +	virtual void cleanup()    = 0;
    1.27 +	virtual void render()     = 0;
    1.28 +	virtual void checkFullScreen() { };
    1.29 +	virtual void renderMenu() { };
    1.30 +	virtual void clear() = 0;
    1.31 +	virtual bool changeRenderSize(int w, int h) { return true; };
    1.32 +	virtual void resize(int w, int h) {};
    1.33 +	virtual void setOption(const char *option, int value) = 0;
    1.34 +	virtual DISPLAY_TYPE getType() = 0;
    1.35 +	virtual int selectFullScreenMode(GUID * *) = 0;
    1.36 +};
    1.37 +
    1.38 +#endif // VBA_WIN32_DISASSEMBLE_H