~ubuntu-branches/ubuntu/trusty/libavg/trusty-proposed

« back to all changes in this revision

Viewing changes to src/graphics/OGLImagingContext.h

  • Committer: Package Import Robot
  • Author(s): OXullo Intersecans
  • Date: 2011-12-06 22:44:56 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20111206224456-qc7250z3ya1vi8s9
Tags: 1.7.0-0ubuntu1
* New upstream release (LP: #899183)
* Remove patches 0002-libav-0.7.patch, 0003-fglrx-segfault-on-startup.patch
  now merged to upstream
* Remove unnecessary .la files
* Update debian/watch file
* Fix debian/copyright dep-5 compliancy
* Update standards to version 3.9.2
* Add man pages for avg_checktouch, avg_checkvsync, avg_showsvg
* Minor debian/rules enhancement
* Add librsvg2-dev, libgdk-pixbuf2.0-dev to Build-Depends
* Proper transition to dh_python2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//
2
2
//  libavg - Media Playback Engine. 
3
 
//  Copyright (C) 2003-2008 Ulrich von Zadow
 
3
//  Copyright (C) 2003-2011 Ulrich von Zadow
4
4
//
5
5
//  This library is free software; you can redistribute it and/or
6
6
//  modify it under the terms of the GNU Lesser General Public
24
24
#include "../base/Point.h"
25
25
 
26
26
#include "OGLHelper.h"
 
27
#include "GLContext.h"
27
28
 
28
29
#ifdef __APPLE__
29
30
#include <AGL/agl.h>
40
41
 
41
42
namespace avg {
42
43
 
43
 
class AVG_API OGLImagingContext {
 
44
class AVG_API OGLImagingContext: public GLContext {
44
45
public:
45
46
    OGLImagingContext();
46
47
    virtual ~OGLImagingContext();
47
48
 
48
 
    void activate();
49
 
 
50
49
    bool isSupported();
51
50
 
52
51
private:
53
52
    void setStandardState();
54
53
 
55
 
#ifdef __APPLE__
56
 
    AGLContext m_Context;
57
 
#else
58
 
#ifdef linux
59
 
    GLXContext m_Context;
60
 
#else
61
 
#ifdef _WIN32
62
 
    HWND m_hwnd;
63
 
    HDC m_hDC;
64
 
    HBITMAP m_hBitmap;
65
 
    void *m_pBits;
66
 
    HGLRC m_Context;
67
 
#endif
68
 
#endif
69
 
#endif
 
54
 
70
55
};
71
56
}
72
57
#endif