~registry/dolphin-emu/triforce

« back to all changes in this revision

Viewing changes to Source/Core/DolphinWX/Src/GLInterface/GLX.h

  • Committer: Sérgio Benjamim
  • Date: 2015-02-13 05:54:40 UTC
  • Revision ID: sergio_br2@yahoo.com.br-20150213055440-ey2rt3sjpy27km78
Dolphin Triforce branch from code.google, commit b957980 (4.0-315).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (C) 2003 Dolphin Project.
 
2
 
 
3
// This program is free software: you can redistribute it and/or modify
 
4
// it under the terms of the GNU General Public License as published by
 
5
// the Free Software Foundation, version 2.0.
 
6
 
 
7
// This program is distributed in the hope that it will be useful,
 
8
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 
9
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
10
// GNU General Public License 2.0 for more details.
 
11
 
 
12
// A copy of the GPL 2.0 should have been included with the program.
 
13
// If not, see http://www.gnu.org/licenses/
 
14
 
 
15
// Official SVN repository and contact information can be found at
 
16
// http://code.google.com/p/dolphin-emu/
 
17
#ifndef _INTERFACEGLX_H_
 
18
#define _INTERFACEGLX_H_
 
19
 
 
20
#include <GL/glxew.h>
 
21
#include <GL/gl.h>
 
22
#include <X11/Xlib.h>
 
23
#include <X11/keysym.h>
 
24
 
 
25
#include "X11_Util.h"
 
26
#include "InterfaceBase.h"
 
27
 
 
28
class cInterfaceGLX : public cInterfaceBase
 
29
{
 
30
private:
 
31
        cX11Window XWindow;
 
32
public:
 
33
        friend class cX11Window;
 
34
        void SwapInterval(int Interval);
 
35
        void Swap();
 
36
        void UpdateFPSDisplay(const char *Text);
 
37
        bool Create(void *&window_handle);
 
38
        bool MakeCurrent();
 
39
        bool ClearCurrent();
 
40
        void Shutdown(); 
 
41
};
 
42
#endif
 
43