3dphotoshoot

view src/camera.h @ 10:c71c477521ca

converting to GLES2 and C++
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 31 May 2015 00:40:26 +0300
parents 9fc7d52f578d
children 4ca4e3c5a754
line source
1 #ifndef CAMERA_H_
2 #define CAMERA_H_
4 #ifdef __ANDROID__
5 #include <jni.h>
7 struct cam_android_platform_data {
8 JavaVM *vm;
9 JNIEnv *jni;
10 jclass activity_class;
11 };
12 #endif
14 int cam_init(void *platform_data);
15 void cam_shutdown(void);
17 unsigned int cam_texture(void);
18 const float *cam_texture_matrix(void);
20 int cam_start_video(void);
21 int cam_stop_video(void);
22 int cam_update(void);
23 int cam_is_capturing(void);
25 int cam_video_size(int *xsz, int *ysz);
27 int cam_take_picture(void);
29 #endif /* CAMERA_H_ */