slight refactor
This commit is contained in:
parent
470b831c61
commit
ee47b7649a
7 changed files with 8 additions and 739 deletions
|
@ -88,7 +88,7 @@ start. I hope to capture something essential.)DONE";
|
|||
#else
|
||||
string shaderDir = "data/ofxGPUFont/shaders/GL3";
|
||||
#endif
|
||||
shaderCatalog = std::make_unique <ShaderCatalog>(shaderDir);
|
||||
shaderCatalog = std::make_unique <ofxGPUFont::ShaderCatalog>(shaderDir);
|
||||
//backgroundShader = shaderCatalog->get("background");
|
||||
fontShader = shaderCatalog->get("font");
|
||||
|
||||
|
@ -252,7 +252,7 @@ void ofApp::keyReleased(int key){
|
|||
#else
|
||||
string shaderDir = "data/ofxGPUFont/shaders/GL3";
|
||||
#endif
|
||||
shaderCatalog = std::make_unique <ShaderCatalog>(shaderDir);
|
||||
shaderCatalog = std::make_unique <ofxGPUFont::ShaderCatalog>(shaderDir);
|
||||
//backgroundShader = shaderCatalog->get("background");
|
||||
fontShader = shaderCatalog->get("font");
|
||||
}
|
||||
|
|
|
@ -46,9 +46,9 @@ class ofApp : public ofBaseApp {
|
|||
// because OpenGL still requires a non-zero VAO to be bound for the draw call.
|
||||
GLuint emptyVAO;
|
||||
|
||||
std::unique_ptr <ShaderCatalog> shaderCatalog;
|
||||
std::unique_ptr <ofxGPUFont::ShaderCatalog> shaderCatalog;
|
||||
//std::shared_ptr <ShaderCatalog::Entry> backgroundShader;
|
||||
std::shared_ptr <ShaderCatalog::Entry> fontShader;
|
||||
std::shared_ptr <ofxGPUFont::ShaderCatalog::Entry> fontShader;
|
||||
|
||||
ofxGPUFont::Font::BoundingBox bb;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue