mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +00:00
update bullet so it actually works
Moved the addSourceDirectory for physics/Bullet into the Engine/Source/CMakeLists.txt file that way it can actually appear where we expect it to in the solution explorer.
This commit is contained in:
parent
c7be48130a
commit
13fa178cf6
5986 changed files with 1811270 additions and 453803 deletions
|
|
@ -4,15 +4,14 @@
|
|||
See license in Gwen.h
|
||||
*/
|
||||
|
||||
|
||||
#include "Gwen/Gwen.h"
|
||||
#include <math.h>
|
||||
|
||||
namespace Gwen
|
||||
{
|
||||
namespace Skin
|
||||
{
|
||||
/*
|
||||
namespace Skin
|
||||
{
|
||||
/*
|
||||
|
||||
Here we're drawing a few symbols such as the directional arrows and the checkbox check
|
||||
|
||||
|
|
@ -22,64 +21,64 @@ namespace Gwen
|
|||
|
||||
*/
|
||||
|
||||
void Base::DrawArrowDown( Gwen::Rect rect )
|
||||
{
|
||||
float x = (rect.w / 5.0f);
|
||||
float y = (rect.h / 5.0f);
|
||||
void Base::DrawArrowDown(Gwen::Rect rect)
|
||||
{
|
||||
float x = (rect.w / 5.0f);
|
||||
float y = (rect.h / 5.0f);
|
||||
|
||||
m_Render->DrawFilledRect( Gwen::Rect( rect.x + x*0.0f, rect.y + y*1.0f, x, y*1.0f ) );
|
||||
m_Render->DrawFilledRect( Gwen::Rect( rect.x + x*1.0f, rect.y + y*1.0f, x, y*2.0f ) );
|
||||
m_Render->DrawFilledRect( Gwen::Rect( rect.x + x*2.0f, rect.y + y*1.0f, x, y*3.0f ) );
|
||||
m_Render->DrawFilledRect( Gwen::Rect( rect.x + x*3.0f, rect.y + y*1.0f, x, y*2.0f ) );
|
||||
m_Render->DrawFilledRect( Gwen::Rect( rect.x + x*4.0f, rect.y + y*1.0f, x, y*1.0f ) );
|
||||
}
|
||||
|
||||
void Base::DrawArrowUp( Gwen::Rect rect )
|
||||
{
|
||||
float x = (rect.w / 5.0f);
|
||||
float y = (rect.h / 5.0f);
|
||||
|
||||
m_Render->DrawFilledRect( Gwen::Rect( rect.x + x*0.0f, rect.y + y*3.0f, x, y*1.0f ) );
|
||||
m_Render->DrawFilledRect( Gwen::Rect( rect.x + x*1.0f, rect.y + y*2.0f, x, y*2.0f ) );
|
||||
m_Render->DrawFilledRect( Gwen::Rect( rect.x + x*2.0f, rect.y + y*1.0f, x, y*3.0f ) );
|
||||
m_Render->DrawFilledRect( Gwen::Rect( rect.x + x*3.0f, rect.y + y*2.0f, x, y*2.0f ) );
|
||||
m_Render->DrawFilledRect( Gwen::Rect( rect.x + x*4.0f, rect.y + y*3.0f, x, y*1.0f ) );
|
||||
}
|
||||
|
||||
void Base::DrawArrowLeft( Gwen::Rect rect )
|
||||
{
|
||||
float x = (rect.w / 5.0f);
|
||||
float y = (rect.h / 5.0f);
|
||||
|
||||
m_Render->DrawFilledRect( Gwen::Rect( rect.x + x*3.0f, rect.y + y*0.0f, x*1.0f, y ) );
|
||||
m_Render->DrawFilledRect( Gwen::Rect( rect.x + x*2.0f, rect.y + y*1.0f, x*2.0f, y ) );
|
||||
m_Render->DrawFilledRect( Gwen::Rect( rect.x + x*1.0f, rect.y + y*2.0f, x*3.0f, y ) );
|
||||
m_Render->DrawFilledRect( Gwen::Rect( rect.x + x*2.0f, rect.y + y*3.0f, x*2.0f, y ) );
|
||||
m_Render->DrawFilledRect( Gwen::Rect( rect.x + x*3.0f, rect.y + y*4.0f, x*1.0f, y ) );
|
||||
}
|
||||
|
||||
void Base::DrawArrowRight( Gwen::Rect rect )
|
||||
{
|
||||
float x = (rect.w / 5.0f);
|
||||
float y = (rect.h / 5.0f);
|
||||
|
||||
m_Render->DrawFilledRect( Gwen::Rect( rect.x + x*1.0f, rect.y + y*0.0f, x*1.0f, y ) );
|
||||
m_Render->DrawFilledRect( Gwen::Rect( rect.x + x*1.0f, rect.y + y*1.0f, x*2.0f, y ) );
|
||||
m_Render->DrawFilledRect( Gwen::Rect( rect.x + x*1.0f, rect.y + y*2.0f, x*3.0f, y ) );
|
||||
m_Render->DrawFilledRect( Gwen::Rect( rect.x + x*1.0f, rect.y + y*3.0f, x*2.0f, y ) );
|
||||
m_Render->DrawFilledRect( Gwen::Rect( rect.x + x*1.0f, rect.y + y*4.0f, x*1.0f, y ) );
|
||||
}
|
||||
|
||||
void Base::DrawCheck( Gwen::Rect rect )
|
||||
{
|
||||
float x = (rect.w / 5.0f);
|
||||
float y = (rect.h / 5.0f);
|
||||
|
||||
m_Render->DrawFilledRect( Gwen::Rect( rect.x + x*0.0f, rect.y + y*3.0f, x*2, y*2 ) );
|
||||
m_Render->DrawFilledRect( Gwen::Rect( rect.x + x*1.0f, rect.y + y*4.0f, x*2, y*2 ) );
|
||||
m_Render->DrawFilledRect( Gwen::Rect( rect.x + x*2.0f, rect.y + y*3.0f, x*2, y*2 ) );
|
||||
m_Render->DrawFilledRect( Gwen::Rect( rect.x + x*3.0f, rect.y + y*1.0f, x*2, y*2 ) );
|
||||
m_Render->DrawFilledRect( Gwen::Rect( rect.x + x*4.0f, rect.y + y*0.0f, x*2, y*2 ) );
|
||||
}
|
||||
}
|
||||
m_Render->DrawFilledRect(Gwen::Rect(rect.x + x * 0.0f, rect.y + y * 1.0f, x, y * 1.0f));
|
||||
m_Render->DrawFilledRect(Gwen::Rect(rect.x + x * 1.0f, rect.y + y * 1.0f, x, y * 2.0f));
|
||||
m_Render->DrawFilledRect(Gwen::Rect(rect.x + x * 2.0f, rect.y + y * 1.0f, x, y * 3.0f));
|
||||
m_Render->DrawFilledRect(Gwen::Rect(rect.x + x * 3.0f, rect.y + y * 1.0f, x, y * 2.0f));
|
||||
m_Render->DrawFilledRect(Gwen::Rect(rect.x + x * 4.0f, rect.y + y * 1.0f, x, y * 1.0f));
|
||||
}
|
||||
|
||||
void Base::DrawArrowUp(Gwen::Rect rect)
|
||||
{
|
||||
float x = (rect.w / 5.0f);
|
||||
float y = (rect.h / 5.0f);
|
||||
|
||||
m_Render->DrawFilledRect(Gwen::Rect(rect.x + x * 0.0f, rect.y + y * 3.0f, x, y * 1.0f));
|
||||
m_Render->DrawFilledRect(Gwen::Rect(rect.x + x * 1.0f, rect.y + y * 2.0f, x, y * 2.0f));
|
||||
m_Render->DrawFilledRect(Gwen::Rect(rect.x + x * 2.0f, rect.y + y * 1.0f, x, y * 3.0f));
|
||||
m_Render->DrawFilledRect(Gwen::Rect(rect.x + x * 3.0f, rect.y + y * 2.0f, x, y * 2.0f));
|
||||
m_Render->DrawFilledRect(Gwen::Rect(rect.x + x * 4.0f, rect.y + y * 3.0f, x, y * 1.0f));
|
||||
}
|
||||
|
||||
void Base::DrawArrowLeft(Gwen::Rect rect)
|
||||
{
|
||||
float x = (rect.w / 5.0f);
|
||||
float y = (rect.h / 5.0f);
|
||||
|
||||
m_Render->DrawFilledRect(Gwen::Rect(rect.x + x * 3.0f, rect.y + y * 0.0f, x * 1.0f, y));
|
||||
m_Render->DrawFilledRect(Gwen::Rect(rect.x + x * 2.0f, rect.y + y * 1.0f, x * 2.0f, y));
|
||||
m_Render->DrawFilledRect(Gwen::Rect(rect.x + x * 1.0f, rect.y + y * 2.0f, x * 3.0f, y));
|
||||
m_Render->DrawFilledRect(Gwen::Rect(rect.x + x * 2.0f, rect.y + y * 3.0f, x * 2.0f, y));
|
||||
m_Render->DrawFilledRect(Gwen::Rect(rect.x + x * 3.0f, rect.y + y * 4.0f, x * 1.0f, y));
|
||||
}
|
||||
|
||||
void Base::DrawArrowRight(Gwen::Rect rect)
|
||||
{
|
||||
float x = (rect.w / 5.0f);
|
||||
float y = (rect.h / 5.0f);
|
||||
|
||||
m_Render->DrawFilledRect(Gwen::Rect(rect.x + x * 1.0f, rect.y + y * 0.0f, x * 1.0f, y));
|
||||
m_Render->DrawFilledRect(Gwen::Rect(rect.x + x * 1.0f, rect.y + y * 1.0f, x * 2.0f, y));
|
||||
m_Render->DrawFilledRect(Gwen::Rect(rect.x + x * 1.0f, rect.y + y * 2.0f, x * 3.0f, y));
|
||||
m_Render->DrawFilledRect(Gwen::Rect(rect.x + x * 1.0f, rect.y + y * 3.0f, x * 2.0f, y));
|
||||
m_Render->DrawFilledRect(Gwen::Rect(rect.x + x * 1.0f, rect.y + y * 4.0f, x * 1.0f, y));
|
||||
}
|
||||
|
||||
void Base::DrawCheck(Gwen::Rect rect)
|
||||
{
|
||||
float x = (rect.w / 5.0f);
|
||||
float y = (rect.h / 5.0f);
|
||||
|
||||
m_Render->DrawFilledRect(Gwen::Rect(rect.x + x * 0.0f, rect.y + y * 3.0f, x * 2, y * 2));
|
||||
m_Render->DrawFilledRect(Gwen::Rect(rect.x + x * 1.0f, rect.y + y * 4.0f, x * 2, y * 2));
|
||||
m_Render->DrawFilledRect(Gwen::Rect(rect.x + x * 2.0f, rect.y + y * 3.0f, x * 2, y * 2));
|
||||
m_Render->DrawFilledRect(Gwen::Rect(rect.x + x * 3.0f, rect.y + y * 1.0f, x * 2, y * 2));
|
||||
m_Render->DrawFilledRect(Gwen::Rect(rect.x + x * 4.0f, rect.y + y * 0.0f, x * 2, y * 2));
|
||||
}
|
||||
} // namespace Skin
|
||||
} // namespace Gwen
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue