Created
February 27, 2014 03:19
-
-
Save lewkoo/9243741 to your computer and use it in GitHub Desktop.
ofApp.h of a very simple Android shader code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef _TEST_APP | |
#define _TEST_APP | |
#include "ofMain.h" | |
#include "ofxAndroid.h" | |
class ofApp : public ofxAndroidApp{ | |
public: | |
void setup(); | |
void update(); | |
void draw(); | |
void keyPressed(int key); | |
void keyReleased(int key); | |
void windowResized(int w, int h); | |
void touchDown(int x, int y, int id); | |
void touchMoved(int x, int y, int id); | |
void touchUp(int x, int y, int id); | |
void touchDoubleTap(int x, int y, int id); | |
void touchCancelled(int x, int y, int id); | |
void swipe(ofxAndroidSwipeDir swipeDir, int id); | |
void pause(); | |
void stop(); | |
void resume(); | |
void reloadTextures(); | |
bool backPressed(); | |
void okPressed(); | |
void cancelPressed(); | |
ofTrueTypeFont font; | |
ofShader shader; | |
bool doShader; | |
}; | |
#endif | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment