Tried to add VS2003 support...

This commit is contained in:
Vulpovile
2021-03-18 23:22:37 -07:00
parent 7ea74a3980
commit 239f7b8fa8
12 changed files with 734 additions and 15 deletions

View File

@@ -13,6 +13,7 @@ using namespace std;
using namespace rapidxml;
DataModelInstance::DataModelInstance(void)
{
Instance::Instance();
@@ -518,7 +519,6 @@ bool DataModelInstance::getOpen()
of.lpstrFile[0]='\0';
of.nMaxFile=500;
of.lpstrTitle="Hello";
of.Flags = OFN_FILEMUSTEXIST;
ShowCursor(TRUE);
BOOL file = GetOpenFileName(&of);
if (file)
@@ -526,6 +526,7 @@ bool DataModelInstance::getOpen()
_loadedFileName = of.lpstrFile;
load(of.lpstrFile,true);
}
//else MessageBox(NULL, "Failed to open dialog", "Failure", MB_ICONHAND | MB_OK);
return true;
}
void DataModelInstance::setMessage(std::string msg)

View File

@@ -1,4 +1,3 @@
#define WINVER 0x0400
#include <G3DAll.h>
#include "DataModelV2/Instance.h"

View File

@@ -279,6 +279,7 @@ void PartInstance::render(RenderDevice* rd) {
changed=false;
Vector3 renderSize = size/2;
glNewList(glList, GL_COMPILE);
//glScalef(0.5f,0.5f,0.5f);
renderShape(this->shape, renderSize, color);
renderSurface(TOP, this->top, renderSize, this->controller, color);
renderSurface(FRONT, this->front, renderSize, this->controller, color);