stuff
This commit is contained in:
parent
5ff8661843
commit
9d9481b87a
|
@ -199,6 +199,7 @@ namespace DanBias
|
||||||
data.networkClient.Disconnect();
|
data.networkClient.Disconnect();
|
||||||
delete data.inputObj;
|
delete data.inputObj;
|
||||||
|
|
||||||
|
Oyster::Event::EventHandler::Instance().Clean();
|
||||||
Oyster::Graphics::API::Clean();
|
Oyster::Graphics::API::Clean();
|
||||||
|
|
||||||
GameServerAPI::ServerStop();
|
GameServerAPI::ServerStop();
|
||||||
|
|
|
@ -48,7 +48,6 @@ bool MainState::Init( NetworkClient* nwClient )
|
||||||
|
|
||||||
// load models
|
// load models
|
||||||
LoadModels(L"UImodels.txt");
|
LoadModels(L"UImodels.txt");
|
||||||
InitCamera( Float3(0.0f, 0.0f, 5.4f) );
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,17 +81,6 @@ bool MainState::LoadModels(std::wstring file)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MainState::InitCamera(Float3 startPos)
|
|
||||||
{
|
|
||||||
privData->proj = ProjectionMatrix_Perspective(pi/2,1024.0f/768.0f,.1f,1000);
|
|
||||||
//privData->proj = ProjectionMatrix_Orthographic(1024, 768, 1, 1000);
|
|
||||||
Oyster::Graphics::API::SetProjection(privData->proj);
|
|
||||||
|
|
||||||
privData->view = OrientationMatrix_LookAtDirection(Float3(0,0,-1),Float3(0,1,0),startPos);
|
|
||||||
privData->view = InverseOrientationMatrix(privData->view);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
GameClientState::ClientState MainState::Update(float deltaTime, InputClass* KeyInput)
|
GameClientState::ClientState MainState::Update(float deltaTime, InputClass* KeyInput)
|
||||||
{
|
{
|
||||||
// picking
|
// picking
|
||||||
|
|
|
@ -19,7 +19,6 @@ namespace DanBias
|
||||||
~MainState(void);
|
~MainState(void);
|
||||||
bool Init( Oyster::Network::NetworkClient* nwClient );
|
bool Init( Oyster::Network::NetworkClient* nwClient );
|
||||||
bool LoadModels(std::wstring file);
|
bool LoadModels(std::wstring file);
|
||||||
bool InitCamera(Oyster::Math::Float3 startPos);
|
|
||||||
ClientState Update(float deltaTime, InputClass* KeyInput);
|
ClientState Update(float deltaTime, InputClass* KeyInput);
|
||||||
|
|
||||||
bool Render();
|
bool Render();
|
||||||
|
|
|
@ -97,7 +97,7 @@
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<ModuleDefinitionFile>
|
<ModuleDefinitionFile>
|
||||||
</ModuleDefinitionFile>
|
</ModuleDefinitionFile>
|
||||||
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>$(SolutionDir)Physics/lib/debug/BulletCollision_Debug.lib;$(SolutionDir)Physics/lib/debug/BulletDynamics_Debug.lib;$(SolutionDir)Physics/lib/debug/LinearMath_Debug.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
|
|
@ -23,7 +23,7 @@ EventHandler::~EventHandler()
|
||||||
for(int i = 0; i < size; i++)
|
for(int i = 0; i < size; i++)
|
||||||
{
|
{
|
||||||
delete collections[i];
|
delete collections[i];
|
||||||
collections[i] = NULL;
|
//collections[i] = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ void EventHandler::Clean()
|
||||||
for(int i = 0; i < size; i++)
|
for(int i = 0; i < size; i++)
|
||||||
{
|
{
|
||||||
delete collections[i];
|
delete collections[i];
|
||||||
collections[i] = NULL;
|
//collections[i] = NULL;
|
||||||
}
|
}
|
||||||
collections.clear();
|
collections.clear();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue