1 #ifndef _SYBORG_GRAPHICSWRAPPER_H |
1 #ifndef _SYBORG_GRAPHICSWRAPPER_H |
2 #define _SYBORG_GRAPHICSWRAPPER_H |
2 #define _SYBORG_GRAPHICSWRAPPER_H |
3 |
3 |
4 #pragma once |
4 #pragma once |
5 |
5 |
6 #ifdef WIN32 |
6 #ifdef WIN32 |
7 #ifdef SYBORG_GRAPHICSWRAPPER_EXPORTS |
7 #ifdef SYBORG_GRAPHICSWRAPPER_EXPORTS |
8 #define SYBORG_GRAPHICSWRAPPER_API __declspec(dllexport) |
8 #define SYBORG_GRAPHICSWRAPPER_API __declspec(dllexport) |
9 #else |
9 #else |
10 #define SYBORG_GRAPHICSWRAPPER_API __declspec(dllimport) |
10 #define SYBORG_GRAPHICSWRAPPER_API __declspec(dllimport) |
14 #endif |
14 #endif |
15 |
15 |
16 Psu::PLATFORM_SEMAPHORE_T m_outputBufferSemaphore; |
16 Psu::PLATFORM_SEMAPHORE_T m_outputBufferSemaphore; |
17 int (*m_pythonCallBack)(int); |
17 int (*m_pythonCallBack)(int); |
18 KhronosAPIWrapper* m_wrapper; |
18 KhronosAPIWrapper* m_wrapper; |
19 |
19 |
20 |
20 |
21 // Derived from GraphicsVirtualHW.lisa |
21 // Derived from GraphicsVirtualHW.lisa |
22 static const int VVHW_BUFFER (0x3000000); |
22 static const int VVHW_BUFFER (0x3000000); |
23 static const int VVHW_INPUT_BUFFER (0x1000000); |
23 static const int VVHW_INPUT_BUFFER (0x1000000); |
24 static const int VVHW_INPUT_BASE(0x0); |
24 static const int VVHW_INPUT_BASE(0x0); |
25 static const int VVHW_OUTPUT_BUFFER (0x1000000); |
25 static const int VVHW_OUTPUT_BUFFER (0x1000000); |
26 static const int VVHW_OUTPUT_BASE(0x1000000); |
26 static const int VVHW_OUTPUT_BASE(0x1000000); |
27 static const int VVHW_FRAME_BUFFER (0x1000000); |
27 static const int VVHW_FRAME_BUFFER (0x1000000); |
28 static const int VVHW_FRAME_BASE(0x2000000); |
28 static const int VVHW_FRAME_BASE(0x2000000); |
29 |
29 |
30 class SyborgGraphicsWrapper : public protocol_MGraphicsVHWCallback |
30 class SyborgGraphicsWrapper : public MGraphicsVHWCallback |
31 { |
31 { |
32 public: |
32 public: |
33 |
33 |
34 SyborgGraphicsWrapper(); |
34 SyborgGraphicsWrapper(); |
35 ~SyborgGraphicsWrapper(); |
35 ~SyborgGraphicsWrapper(); |
36 |
36 |
37 int Reset( uint32_t *aGraphicsMemBase, uint32_t *aCommandMemBase ); |
37 int Reset( uint32_t *aGraphicsMemBase, uint32_t *aCommandMemBase ); |
38 |
38 |
39 virtual void LockOutputBuffer(); |
39 virtual void LockOutputBuffer(); |
40 virtual void ReleaseOutputBuffer(); |
40 virtual void ReleaseOutputBuffer(); |
41 virtual void ProsessingDone(int i); |
41 virtual void ProcessingDone(int i); |
42 |
42 |
43 private: |
43 private: |
44 }; |
44 }; |
45 |
45 |
46 |
46 |