symbian-qemu-0.9.1-12/model-libraries/syborg-graphicswrapper/syborg-graphicswrapper.h
author Gareth Stockwell <gareth.stockwell@accenture.com>
Wed, 22 Sep 2010 20:10:53 +0100
branchgraphics-phase-3
changeset 113 b842c0cb760e
parent 110 52ce3e8fba90
permissions -rw-r--r--
Backed out changeset b6c206049d8a The nvmemmory library depends on a modification to qemu; this change is therefore backed out in order to allow NVM functionality to be merged into graphics-phase-3 by transplanting individual commits.

#ifndef _SYBORG_GRAPHICSWRAPPER_H
#define _SYBORG_GRAPHICSWRAPPER_H

#pragma once
					  
#ifdef WIN32
#ifdef SYBORG_GRAPHICSWRAPPER_EXPORTS
#define SYBORG_GRAPHICSWRAPPER_API __declspec(dllexport)
#else
#define SYBORG_GRAPHICSWRAPPER_API __declspec(dllimport)
#endif
#else
#define SYBORG_GRAPHICSWRAPPER_API
#endif

Psu::PLATFORM_SEMAPHORE_T m_outputBufferSemaphore;
int (*m_pythonCallBack)(int); 
KhronosAPIWrapper* m_wrapper;
														   

// Derived from GraphicsVirtualHW.lisa
static const int VVHW_BUFFER (0x3000000);
static const int VVHW_INPUT_BUFFER (0x1000000);
static const int VVHW_INPUT_BASE(0x0);
static const int VVHW_OUTPUT_BUFFER (0x1000000);
static const int VVHW_OUTPUT_BASE(0x1000000);
static const int VVHW_FRAME_BUFFER (0x1000000);
static const int VVHW_FRAME_BASE(0x2000000);

class SyborgGraphicsWrapper : public MGraphicsVHWCallback
    {
    public:

        SyborgGraphicsWrapper();
        ~SyborgGraphicsWrapper();

        int Reset( uint32_t *aGraphicsMemBase,  uint32_t *aCommandMemBase );

        virtual void LockOutputBuffer();
	    virtual void ReleaseOutputBuffer();
	    virtual void ProcessingDone(int i);

    private:
    };


#endif // _SYBORG_GRAPHICSWRAPPER_H