Skip to content

Allow user to specify contents of main.cpp manually. #139

@mileshiroo

Description

@mileshiroo

Hello,

I'm trying to use run shaders with the ofShader object, which requires this call before ofSetupOpenGL(1024, 768, OF_WINDOW) in main():

ofSetCurrentRenderer(ofGLProgrammableRenderer::TYPE);

Is there any way to do this in ofSketch, that is, is there a way to modify what goes in main()? Running the line in setup() creates a second window. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions