From 105edbd5028399f9cd180ca5674a92edb1fb6efb Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 24 Apr 2005 01:44:48 +0000 Subject: Fixed texture mapping and added generation of materials for lighting --- opengl/generate.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'opengl/generate.h') diff --git a/opengl/generate.h b/opengl/generate.h index c8127a8..8191400 100644 --- a/opengl/generate.h +++ b/opengl/generate.h @@ -26,6 +26,7 @@ #include #include #include +#include class Generate { @@ -41,7 +42,8 @@ public: bool texture, bool info, bool forceCOG, - bool blitzMax); + bool blitzMax, + bool vertex_normals); void MakeFiles(HWND parent); @@ -51,6 +53,7 @@ private: msModel *m_model; std::string m_funcName; std::string m_dir; + bool m_useTexture; bool m_useInfo; bool m_forceCOG; @@ -71,13 +74,28 @@ private: float m_min_z; bool m_blitzMax; + bool m_normals; + + int m_indent; + + std::FILE *m_fp; const char *Space(int len); + void Output(const char *fmt, ...); void CalcModelBounds(); void GenerateC(HWND parent); void GenerateBlitzMax(HWND parent); + + void GenerateCommon(std::string& missing, + const char *term, + const char *start_comment, + const char *end_comment); + + void GenerateMaterial(msMaterial *mat, + std::string& missing, + const char *term); }; #endif // GENERATE_H -- cgit v1.2.3