Skip to content

Remove all GLUT specific windowing from examples. #4

Closed

Description

@bakercp

Almost all of the examples name a glut window in their main.cpp file.

For instance:

#include "ofMain.h"
#include "testApp.h"
#include "ofAppGlutWindow.h"

//========================================================================
int main( ){

    ofAppGlutWindow window;
    ofSetupOpenGL(&window, 1024,768, OF_WINDOW);            // <-------- setup the GL context

    // this kicks off the running of my app
    // can be OF_WINDOW or OF_FULLSCREEN
    // pass in width and height too:
    ofRunApp( new testApp());

}

If we migrate all of the source files to look like this:

#include "ofMain.h"
#include "testApp.h"

//========================================================================
int main( ){

    ofSetupOpenGL(1024,768, OF_WINDOW);         // <-------- setup the GL context

    // this kicks off the running of my app
    // can be OF_WINDOW or OF_FULLSCREEN
    // pass in width and height too:
    ofRunApp( new testApp());

}

We can rely on the default windowing scheme in ofAppRunner.cpp (e.g. https://github.com/openFrameworks-RaspberryPi/openFrameworks/blob/master/libs/openFrameworks/app/ofAppRunner.cpp#L29)

This might be best be submitted as a core "issue".

Activity

  1. bakercp commented on Nov 20, 2012

    @bakercp
    MemberAuthor
  2. bakercp commented on Nov 20, 2012

    @bakercp
    MemberAuthor

    By the way, the above link is from @underdoeg's multiwindow glfw branch.

  3. added a commit that references this issue on Nov 24, 2012
  4. bakercp commented on Nov 27, 2012

    @bakercp
    MemberAuthor

    Closed with 44888db

  5. added a commit that references this issue on Dec 7, 2012
  6. added a commit that references this issue on Jun 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions