123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- #ifndef CAMERALITYGLRENDERER_H_
- #define CAMERALITYGLRENDERER_H_
- #include <EGL/egl.h>
- #include <GLES/gl.h>
- class CPeriodic;
- class CAlfCompositionSource;
- class CCameralityGLRenderer : public CBase
- {
- public:
- static CCameralityGLRenderer* NewL();
- virtual ~CCameralityGLRenderer();
- public:
- void Start(RWindow& aWindow);
- void Resize(const TSize& aSize);
- void Stop();
- EGLDisplay Display() const;
- private:
- static TInt RenderCallback(TAny* aInstance);
- void SetupScene();
- TInt RenderScene();
- void DrawBox(GLfixed aSizeX, GLfixed aSizeY, GLfixed aSizeZ);
- private:
- CCameralityGLRenderer();
- void ConstructL();
- private:
- enum TState {
- EIdle,
- ERendering
- };
-
- TState iState;
-
- EGLDisplay iEglDisplay;
-
- EGLSurface iEglSurface;
-
- EGLContext iEglContext;
- EGLConfig iConfig;
-
- CPeriodic* iPeriodic;
- CAlfCompositionSource* iCompSource;
- RWindow* iWindow;
- TUint iScreenWidth;
- TUint iScreenHeight;
- TInt iFrame;
- };
- #endif
|