#include<stdio.h>
#include<vector>
#include<GL/gl.h>
#include<math.h>
#include<cctype>
#include <string.h>

struct mesh{
    struct vertex{
        float x, y, z;
    };
    struct normal{
        float x, y, z;
    };
    struct texcoord{
        float u, v;
    };
    struct face{
        std::vector< int > vertices;
        std::vector< int > normals;
        std::vector< int > texcoords;
    };
    std::vector<vertex> verts;
    std::vector<normal> norms;
    std::vector<texcoord> tex;
    std::vector<face> faces;
    bool load_from_bzw( const char* fname );
    void render();
};
