Welcome to mirror list, hosted at ThFree Co, Russian Federation.

android_gl_utils.hpp « opengl « mapswithme « com « jni « android - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1e9d4a1a5b4baa18f422263209db9b557e22c0ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once

#include "../../../../../base/src_point.hpp"

#include <EGL/egl.h>
#include <GLES2/gl2.h>

namespace android
{

class ConfigComparator
{
public:
  ConfigComparator(EGLDisplay display);

  bool operator()(EGLConfig const & l, EGLConfig const & r) const;
  int configWeight(EGLConfig const & config) const;
  int configAlphaSize(EGLConfig const & config) const;

private:
  EGLDisplay m_display;
};

void CheckEGL(my::SrcPoint const & src);

#define CHECK_EGL(x) do { (x); CheckEGL(SRC());} while(false);
#define CHECK_EGL_CALL() do { CheckEGL(SRC());} while (false);

}  // namespace android