Skip to content

Commit

Permalink
Merge pull request #20 from bakercp/gsoc
Browse files Browse the repository at this point in the history
Continuous Integration
  • Loading branch information
brannondorsey committed Jun 5, 2014
2 parents 0f2ab1f + d924c87 commit a70585c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
Binary file added ofSketchApp/bin/data/media/openFrameworks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 16 additions & 1 deletion ofSketchApp/src/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ App::App():
_loggerChannel = WebSocketLoggerChannel::makeShared();
_loggerChannel->setWebSocketRoute(server->getWebSocketRoute());
ofSetLoggerChannel(_loggerChannel);

_logo.loadImage("media/openFrameworks.png");
_font.loadFont(OF_TTF_SANS, 20);
}


Expand Down Expand Up @@ -163,9 +166,21 @@ void App::update()

void App::draw()
{
ofBackground(0);
ofBackground(255);

_logo.draw(10, 0);

ofSetColor(80);
_font.drawString("Launch", 70, 30);
}


void App::mousePressed(int x, int y, int button)
{
ofLaunchBrowser(server->getURL());
}


void App::loadProject(const void* pSender, JSONRPC::MethodArgs& args)
{
if (args.params.isMember("projectName")) {
Expand Down
5 changes: 5 additions & 0 deletions ofSketchApp/src/App.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ class App: public ofBaseApp
void update();
void draw();

void mousePressed(int x, int y, int button);

void loadProject(const void* pSender, JSONRPC::MethodArgs& args);
void loadTemplateProject(const void* pSender, JSONRPC::MethodArgs& args);
void saveProject(const void* pSender, JSONRPC::MethodArgs& args);
Expand Down Expand Up @@ -116,6 +118,9 @@ class App: public ofBaseApp
ProjectManager _projectManager;
AddonManager _addonManager;

ofImage _logo;
ofTrueTypeFont _font;

};


Expand Down
2 changes: 1 addition & 1 deletion ofSketchApp/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@

int main()
{
ofSetupOpenGL(100, 100, OF_WINDOW);
ofSetupOpenGL(200, 40, OF_WINDOW);
ofRunApp(new of::Sketch::App());
}

0 comments on commit a70585c

Please sign in to comment.