add commandline arguments to serialize demo for xml export and Bullet import file name

update AntTweakBar version in CDTestFramework
add btCompoundShape support in BulletXmlWorldImporter (this importer is still premature/work-in-progress)
This commit is contained in:
erwin.coumans
2012-09-26 19:47:18 +00:00
parent 60c1b1918a
commit 4442a826ed
85 changed files with 59310 additions and 18485 deletions

View File

@@ -1,16 +1,14 @@
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
//
// @file TwGraph.h
// @brief ITwGraph pure interface
// @author Philippe Decaudin - http://www.antisphere.com
// @file TwGraph.h
// @brief ITwGraph pure interface
// @author Philippe Decaudin - http://www.antisphere.com
// @license This file is part of the AntTweakBar library.
// Copyright <20> 2005, 2006 Philippe Decaudin.
// For conditions of distribution and use, see License.txt
//
// notes: Private header
// TAB=4
// note: Private header
//
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
#if !defined ANT_TW_GRAPH_INCLUDED
@@ -20,35 +18,41 @@
#include "TwFonts.h"
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
#ifdef DrawText // DirectX redefines 'DrawText' !!
# undef DrawText
#endif // DrawText
#ifdef DrawText // DirectX redefines 'DrawText' !!
# undef DrawText
#endif // DrawText
class ITwGraph
{
public:
virtual int Init() = 0;
virtual int Shut() = 0;
virtual void BeginDraw(int _WndWidth, int _WndHeight) = 0;
virtual void EndDraw() = 0;
virtual bool IsDrawing() = 0;
virtual void Restore() = 0;
virtual void DrawLine(int _X0, int _Y0, int _X1, int _Y1, color32 _Color0, color32 _Color1, bool _AntiAliased=false) = 0;
virtual void DrawLine(int _X0, int _Y0, int _X1, int _Y1, color32 _Color, bool _AntiAliased=false) = 0;
virtual int Init() = 0;
virtual int Shut() = 0;
virtual void BeginDraw(int _WndWidth, int _WndHeight) = 0;
virtual void EndDraw() = 0;
virtual bool IsDrawing() = 0;
virtual void Restore() = 0;
virtual void DrawRect(int _X0, int _Y0, int _X1, int _Y1, color32 _Color00, color32 _Color10, color32 _Color01, color32 _Color11) = 0;
virtual void DrawRect(int _X0, int _Y0, int _X1, int _Y1, color32 _Color) = 0;
virtual void DrawLine(int _X0, int _Y0, int _X1, int _Y1, color32 _Color0, color32 _Color1, bool _AntiAliased=false) = 0;
virtual void DrawLine(int _X0, int _Y0, int _X1, int _Y1, color32 _Color, bool _AntiAliased=false) = 0;
virtual void DrawRect(int _X0, int _Y0, int _X1, int _Y1, color32 _Color00, color32 _Color10, color32 _Color01, color32 _Color11) = 0;
virtual void DrawRect(int _X0, int _Y0, int _X1, int _Y1, color32 _Color) = 0;
enum Cull { CULL_NONE, CULL_CW, CULL_CCW };
virtual void DrawTriangles(int _NumTriangles, int *_Vertices, color32 *_Colors, Cull _CullMode) = 0;
virtual void * NewTextObj() = 0;
virtual void DeleteTextObj(void *_TextObj) = 0;
virtual void BuildText(void *_TextObj, const std::string *_TextLines, color32 *_LineColors, color32 *_LineBgColors, int _NbLines, const CTexFont *_Font, int _Sep, int _BgWidth) = 0;
virtual void DrawText(void *_TextObj, int _X, int _Y, color32 _Color, color32 _BgColor) = 0;
virtual void * NewTextObj() = 0;
virtual void DeleteTextObj(void *_TextObj) = 0;
virtual void BuildText(void *_TextObj, const std::string *_TextLines, color32 *_LineColors, color32 *_LineBgColors, int _NbLines, const CTexFont *_Font, int _Sep, int _BgWidth) = 0;
virtual void DrawText(void *_TextObj, int _X, int _Y, color32 _Color, color32 _BgColor) = 0;
virtual ~ITwGraph() {} // required by gcc
virtual void ChangeViewport(int _X0, int _Y0, int _Width, int _Height, int _OffsetX, int _OffsetY) = 0;
virtual void RestoreViewport() = 0;
virtual void SetScissor(int _X0, int _Y0, int _Width, int _Height) = 0;
virtual ~ITwGraph() {} // required by gcc
};
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
#endif // ANT_TW_GRAPH_INCLUDED
#endif // ANT_TW_GRAPH_INCLUDED