Skip to content

Instantly share code, notes, and snippets.

@lewkoo
Created February 27, 2014 03:19
Show Gist options
  • Save lewkoo/9243741 to your computer and use it in GitHub Desktop.
Save lewkoo/9243741 to your computer and use it in GitHub Desktop.
ofApp.h of a very simple Android shader code
#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