diff options
author | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2017-10-06 11:50:27 +0000 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2017-10-06 16:49:51 +0200 |
commit | eee97c048f9cdc1cc05d6a516a3da56a13accd64 (patch) | |
tree | 019e374beaed56be3cbeaff3cf202d41ee427d96 /1.4.0/fx/include/cfxWin.h |
Initial import
Diffstat (limited to '1.4.0/fx/include/cfxWin.h')
-rw-r--r-- | 1.4.0/fx/include/cfxWin.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/1.4.0/fx/include/cfxWin.h b/1.4.0/fx/include/cfxWin.h new file mode 100644 index 0000000..079d20e --- /dev/null +++ b/1.4.0/fx/include/cfxWin.h @@ -0,0 +1,39 @@ +/* +* Copyright 2006 Sony Computer Entertainment Inc. +* +* Licensed under the MIT Open Source License, for details please see license.txt or the website +* http://www.opensource.org/licenses/mit-license.php +* +*/ +#ifndef _CFX_WIN_H_ +#define _CFX_WIN_H_ + +#include <windows.h> +#include <gl/gl.h> +#include <gl/glext.h> +#include <gl/glu.h> +//#include <gl/glaux.h> +//#ifndef _LIB +#include <Cg/cg.h> +#include <Cg/cgGL.h> +//#else +//#include <cfxNoCg.h> +//#endif + +#include <assert.h> + +#define CG_FILE_TYPE CG_SOURCE + +inline void cfxPrint(const char* str, ...) +{ + va_list valist; + char tempStr[4096]; + + va_start(valist, str); // LMessage is the last argument before the varargs + vsprintf(tempStr, str, valist); + va_end(valist); + + OutputDebugString( tempStr ); +} + +#endif |