GLES2N64: Added option to strecth the video instead of aspect ration correct
[mupen64plus-pandora.git] / source / gles2n64 / src / Common.h
CommitLineData
34cf4058 1#ifndef __COMMON_H__
2#define __COMMON_H__
3
4//#define PROFILE_GBI
5
6#define LOG_NONE 0
7#define LOG_ERROR 1
8#define LOG_MINIMAL 2
9#define LOG_WARNING 3
10#define LOG_VERBOSE 4
11
12#define LOG_LEVEL LOG_NONE
13
14# ifndef min
15# define min(a,b) ((a) < (b) ? (a) : (b))
16# endif
17# ifndef max
18# define max(a,b) ((a) > (b) ? (a) : (b))
19# endif
20
21
22#if LOG_LEVEL>0
23
24#include <android/log.h>
25
26#define LOG(A, ...) \
27 if (A <= LOG_LEVEL) \
28 { \
29 __android_log_print(ANDROID_LOG_DEBUG, "gles2n64", __VA_ARGS__); \
30 }
31
32#else
33
34#define LOG(A, ...)
35
36#endif
37
38#endif