
#include "cscom/com.h"
#include "cs2d/mac/ISysG2D.h"

#ifndef __XSYSG2D_H__
#define __XSYSG2D_H__

/// csGraphics2DOpenGL's implementation if IOpenGLGraphicsInfo
class IXOpenGLGraphicsInfo : public IMacGraphicsInfo
{
    DECLARE_IUNKNOWN()
    ///
    STDMETHOD(Open)(char* szTitle);
    ///
    STDMETHOD(Close)();
    ///
    STDMETHOD(ActivateWindow)( WindowPtr theWindow, bool active );
    ///
    STDMETHOD(UpdateWindow)( WindowPtr theWindow, bool *updated );
    ///
    STDMETHOD(PointInWindow)( Point *thePoint, bool *inWindow );
    ///
    STDMETHOD(DoesDriverNeedEvent)( bool *isEnabled );
    ///
    STDMETHOD(SetColorPalette)( void );
    ///
    STDMETHOD(WindowChanged)( void );
    ///
    STDMETHOD(HandleEvent)( EventRecord *inEvent, bool *outEventWasProcessed );
};

#endif
