well i am currently trying to learn to use the morfit 3d game engine, so that i can actually make a few games with it then work on my own engine. anyway i tried to compile one of the sample programs and this what i get
--------------------Configuration: mf - Win32 Debug--------------------
Compiling...
main.cpp
C:\Program Files\DevStudio\MyProjects\mf\main.cpp(53) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.
mf.exe - 1 error(s), 0 warning(s)
here is the source code:
#include "..\\..\\..\\Engine\\Include\\mrft_api.h"
#include <iostream.h>
void main(void)
{
void Move_camera(DWORD camera);
int rc = Morfit_engine_load_world ( "firstworld.wld", ".", "Bitmaps", USER_DEFINED_BEHAVIOR);
if(rc==VR_ERROR) {
cout << "Failed to load world, aborting\n";
cout << "look at error.log to see why\n";
return;
}
Morfit_engine_set_default_rendering_window_title("To move the camera, use arrow keys, ''f'', ''b'' - Exit");
Morfit_engine_maximize_default_rendering_window();
ShowCursor(FALSE); // Hide the cursor
DWORD camera=Morfit_camera_get_default_camera();
Morfit_camera_set_chase_type(camera,NO_CHASE);
while( (GetAsyncKeyState(VK_ESCAPE)==0 ) {
Move_camera(camera);
Morfit_engine_render(NULL,camera);
}
}
void Move_camera(DWORD camera)
{
double x,y,z;
//Gets camera''s location coordinates
Morfit_camera_get_location(camera, &x,&y,&z);
if(GetAsyncKeyState(VK_UP) < 0) // move camera up
z +=25;
if(GetAsyncKeyState(VK_DOWN) < 0) // move camera down
z -=25;
if(GetAsyncKeyState(VK_RIGHT) < 0) // move camera right
y +=25;
if(GetAsyncKeyState(VK_LEFT) < 0) // move camera left
y -=25;
if(GetAsyncKeyState(''B'') < 0) // move camera back
x +=25;
if(GetAsyncKeyState(''F'') < 0) // move camera forward
x -=25;
Morfit_camera_set_location(camera, x, y, z);
return;
}
help would be appreciated!