90bac19849
Finally got a 3D cube to be rendered. While doing it, fixed a bug in MeshFactory that caused it to allocate the incorrect amount of memory for each mesh.
29 lines
517 B
C++
29 lines
517 B
C++
#include "stdafx.h"
|
|
|
|
#include <string>
|
|
|
|
#include "Exception.h"
|
|
|
|
#include "MyApplication.h"
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
try
|
|
{
|
|
MyApplication my_app(1280, 720);
|
|
return my_app.run();
|
|
}
|
|
catch (Exception& e)
|
|
{
|
|
OutputDebugString("Caught Exception: [");
|
|
OutputDebugString(e.get_file_name().c_str());
|
|
OutputDebugString(":");
|
|
OutputDebugString(std::to_string(e.get_line()).c_str());
|
|
OutputDebugString("]: ");
|
|
OutputDebugString(e.get_message().c_str());
|
|
OutputDebugString("\n");
|
|
return 1;
|
|
}
|
|
|
|
|
|
} |