source: Main/src/fake_app_server/main.cpp @ 14

Revision 14, 1.2 KB checked in by duggan, 18 months ago (diff)

Accidentally had it set up to compile with gcc4, now compiles with gcc2. Also a little more work on reading the topology data.

Line 
1/*
2 * Copyright 2011 Dewey Taylor (james.dewey.taylor@gmail.com)
3 * All rights reserved. Distributed under the terms of the MIT license.
4 */
5
6#include <iostream>
7#include <string>
8
9#include "Drafter.h"
10#include "App.h"
11
12using namespace std;
13
14int main()
15{
16        App* app = new App();
17        app->Run();
18/*
19// TODO: PUT THIS IN ANOTHER THREAD (probably from within App)
20        bool running = true;
21        bool quitting = false;
22        // TODO: load device/head data
23        // TODO: set up framebuffers
24
25        // TODO: Before the loop: start threads
26        // what threads to start?
27        //              one thread per portal to draw at regular intervals
28        //              BWindow object per head to handle input, display framebuffer, etc
29        // so this is starting to look an awful lot like a regular BeAPI program...
30        // and that's fine
31
32        // TODO: In the loop, get commands from the console
33
34        // TODO: each head needs a BMessageRunner to refresh the screen
35        while (running)
36        {
37                if (!quitting)
38                {
39                        // draw prompt
40                        cout<<"> ";
41                        string in;
42                        cin>>in;
43                        if (in == "quit")
44                        {
45                                quitting = true;
46                                // TODO: tell threads to shut down
47                        }
48                        else
49                        {
50                        }
51                }
52                else
53                {
54                        // TODO: wait for threads to shut down
55                        running = false;
56                }
57                //uint32 a = CreateContext();
58                //cout<<"Created context: "<< a << endl<<endl;
59        }
60*/
61        return 0;
62}
Note: See TracBrowser for help on using the repository browser.