summaryrefslogtreecommitdiff
path: root/opengl/generate.h
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2005-04-24 01:44:48 +0000
committerIan C <ianc@noddybox.co.uk>2005-04-24 01:44:48 +0000
commit105edbd5028399f9cd180ca5674a92edb1fb6efb (patch)
tree0935e33dde0701684d1a0dd5e29a77803838897a /opengl/generate.h
parent540a3ffe4a9be39c346973e1f958c02398ce3f8a (diff)
Fixed texture mapping and added generation of materials for lighting
Diffstat (limited to 'opengl/generate.h')
-rw-r--r--opengl/generate.h20
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