diff options
Diffstat (limited to 'opengl/generate.h')
-rw-r--r-- | opengl/generate.h | 20 |
1 files changed, 19 insertions, 1 deletions
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 <windows.h> #include <string> #include <msLib.h> +#include <cstdio> 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 |