Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages | Examples

hello.cpp

#include <fastgl/fastgl.h>

int main(int argc, char **argv)
{
    fgl::FGApp MyApp(fgl::G640x480, argc, argv, fgl::CDARK, fgl::APP_ENABLEALTX);
    fgl::FGWindow *okno = new fgl::FGWindow(0, fgl::GetXRes() / 2 - 200, fgl::GetYRes() / 2 - 100, 400, 200, " Your Pretty Window", 0, fgl::CBLACK, fgl::CGRAY2, fgl::WFRAMED | fgl::WTITLED | fgl::WMINIMIZE);

    // icon image will be released automatically on Window destroy ...
    fgl::FGBitmap* bmp = new fgl::FGBitmap("../data/opengl");
    fgl::FGBitmap* texture = new fgl::FGBitmap("../data/texture.bmp");
    okno->WindowAttachIcon(bmp);
    okno->printf(54, 75, "Hello from FastGL world !\n");
    fgl::FGPushButton* button = okno->AddPushButton(275, 120, 80, 26, "Quit", 'Q', texture, fgl::Control::Quit);

    MyApp.Run(0);

    delete okno;
    return 0;
}

Generated on Wed Feb 9 11:31:32 2005 for OpenGUI by  doxygen 1.4.0