I created a house in Blender and exported it as a .obj file. I then used 3DWin to convert that into a scene.cpp. Im confused as to how I can import this data into my code to render the house though.
I have a mesh array now with my coordinates that looks like the following
static float mesh01_coords[] = {
50, 0.1, 50,
-50, 0.1, 50,
-50, 0.1, -50,
50, 0.1, -50,
...
Do i just loop through each array index setting a vertex at each point? such as:
glVertex3f(50, 0.1, 50);
glVertex3f(-50, 0.1, 50);
glVertex3f(-50, 0.1, -50);
glVertex3f(50, 0.1, -50);