Skip to content

Instantly share code, notes, and snippets.

Created November 3, 2014 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/ef048a8dcd7a4213e63a to your computer and use it in GitHub Desktop.
Save anonymous/ef048a8dcd7a4213e63a to your computer and use it in GitHub Desktop.
#pragma once
#include "ofMain.h"
class ofApp : public ofBaseApp{
public:
void setup(){
ofDisableArbTex();
img.loadImage( "1234.jpg" );
img.getTextureReference().setTextureWrap( GL_REPEAT, GL_REPEAT );
img.width = ofGetWidth();
img.height = ofGetHeight();
};
void draw(){
img.draw(0,0);
};
ofImage img;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment