callbacks.h

来自「tracciatore di mani con webcam」· C头文件 代码 · 共 48 行

H
48
字号
#ifndef CALLBACKS_H#define CALLBACKS_H#include "sdlut.h"//#include "util.h"enum { RENDER_MODE, SELECT_MODE };extern int DrawMode;typedef struct{	GLuint		id;	int		iw;  // image width	int		ih;	int		tw;  // texture width (padded!)	int		th;	float		s;   // max s coord	float		t;   // max t coord} texture_info;void makeTexture ( unsigned char *pixels, int width, int height,                    texture_info *tex );extern texture_info videoTex;extern unsigned char *framePixels;void displayFunc();void idleFunc();void keyboardFunc( SDL_KeyboardEvent * );void mouseFunc( SDL_MouseButtonEvent * ); void motionFunc( SDL_MouseMotionEvent * );/*void startMenuFunc( int, int, void * );void windowMenuFunc( int, int, void * );*//*void snappedDisplayFunc();void snappedKeyboardFunc( SDL_KeyboardEvent * );void snappedMouseFunc( int, int, int, int ); void snappedMotionFunc( int, int );*/#endif /* CALLBACKS_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?