void LogObjVertex(float x, float y, float z) { InitObjFile(); g_obj << "v " << x << " " << y << " " << z << std::endl; g_objVertexIndex++; }
bool WMINamespaceClass::Init(const wchar_t *path) { HANDLE hFile = InitObjFile(path); if (hFile != INVALID_HANDLE_VALUE) { m_ObjFile = hFile; return true; } return false; }
bool ConsumerParserClass::Init(const wchar_t *path) { HANDLE hFile = InitObjFile(path); if (hFile != INVALID_HANDLE_VALUE) { m_ObjFile = hFile; return true; } return false; }
void LogObjTriangle(int v1, int v2, int v3) { InitObjFile(); v1 += g_objVertexBaseIndex; v2 += g_objVertexBaseIndex; v3 += g_objVertexBaseIndex; g_obj << "f " << v1 << " " << v2 << " " << v3 << std::endl; }
void LogObjObject(int vertLength, int instLength, int bufLength) { InitObjFile(); //if (g_objFrameIndex == 0) //{ // return; //} g_objObjectIndex++; g_objVertexBaseIndex = g_objVertexIndex; g_obj << "g \"obj" << g_objObjectIndex << "\"" << std::endl; g_obj << "#buf " << vertLength << " " << instLength << " " << bufLength << std::endl; }
void LogObjTexture(int handle) { InitObjFile(); g_obj << "usemtl " << handle << std::endl; }