Skip to content

Instantly share code, notes, and snippets.

//--------------------------------------------------------------
void ofxFontAnimator::saveWindow()
{
//save window settings
ofWindowSettings AppWindow;
AppWindow.setPosition(glm::vec2(ofGetWindowPositionX(), ofGetWindowPositionY()));
AppWindow.setSize(ofGetWindowSize().x, ofGetWindowSize().y);
AppWindow.windowMode = ofGetCurrentWindow()->getWindowMode();
ofJson j;
@moebiussurfing
moebiussurfing / ofApp.cpp
Created November 13, 2019 18:00
ofDataPath set app path
string filepath = ofToDataPath("");
igl::readOBJ(filepath + "armadillo.obj", V, F);
@moebiussurfing
moebiussurfing / ofxColorManager.cpp
Created July 31, 2019 00:17
ImGui color picker
static ImVec4 color;
color.x = color_backGround.get().r;
color.y = color_backGround.get().g;
color.z = color_backGround.get().b;
color.w = color_backGround.get().a;
// squared box
ImGuiColorEditFlags colorEdiFlags =
ImGuiColorEditFlags_NoSmallPreview |
ImGuiColorEditFlags_NoTooltip |