diff options
author | Ian C <ianc@noddybox.co.uk> | 2005-04-24 01:44:48 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2005-04-24 01:44:48 +0000 |
commit | 105edbd5028399f9cd180ca5674a92edb1fb6efb (patch) | |
tree | 0935e33dde0701684d1a0dd5e29a77803838897a /opengl/generate.h | |
parent | 540a3ffe4a9be39c346973e1f958c02398ce3f8a (diff) |
Fixed texture mapping and added generation of materials for lighting
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 |