All pastes #591971 Raw Edit

Unnamed

public text v1 · immutable
#591971 ·published 2007-06-27 14:45 UTC
rendered paste body
extern "C"
{

#include "common.h"
#include "machine.h"
#include "vmath.h"
#include "raytrace.h"

}

#include <iostream>

using namespace std;

// BRL application
struct application ap;

int main(int argc, char *argv[])
{
    // rt_dirbuild return this struct
    static struct rt_i *rtip;

    // title
    char idbuf[132];

    // load the database
    rtip = rt_dirbuild("test.g", idbuf, sizeof(idbuf));

    cout << idbuf << endl;

}