a8c4b05d2f
This commit gets creates the ObjectOriented scene and gets it working. The current test program swaps a triangle from small to large with the 1 and 2 keys on the keyboard. (1 for small and 2 for large). The small triangle is rendered by the simple scene and the large one is rendered by the object oriented one.
25 lines
487 B
C++
25 lines
487 B
C++
#include "stdafx.h"
|
|
|
|
#include <string>
|
|
|
|
#include "Exception.h"
|
|
|
|
#include "MyApplication.h"
|
|
|
|
int WINAPI WinMain(HINSTANCE h_instance, HINSTANCE h_prev_instance, LPSTR cmd_line, int n_cmd_show)
|
|
{
|
|
try
|
|
{
|
|
MyApplication my_app;
|
|
return my_app.run();
|
|
}
|
|
catch (Exception& e)
|
|
{
|
|
OutputDebugString("Caught Exception: [");
|
|
OutputDebugString(e.get_class_name().c_str());
|
|
OutputDebugString("]: ");
|
|
OutputDebugString(e.get_message().c_str());
|
|
OutputDebugString("\n");
|
|
return 1;
|
|
}
|
|
} |