Unix build fixes.

--HG--
branch : gsoc2013-dfighter
hg/feature/gsoc2013-dfighter
dfighter1985 11 years ago
parent dcf3ba2785
commit 1c0d74fc00

@ -18,7 +18,7 @@
#ifndef SHADER_MANAGER_H
#define SHADER_MANAGER_H
#include <unordered_map>
#include <map>
#include <vector>
#include <string>
@ -42,7 +42,7 @@ namespace NL3D
void visitShader( const std::string &name, IShaderVisitor *visitor );
private:
std::tr1::unordered_map< std::string, CShaderProgram* > programs;
std::map< std::string, CShaderProgram* > programs;
};
}

@ -33,7 +33,7 @@ namespace NL3D
void CShaderManager::clear()
{
std::tr1::unordered_map< std::string, CShaderProgram* >::iterator itr = programs.begin();
std::map< std::string, CShaderProgram* >::iterator itr = programs.begin();
while( itr != programs.end() )
{
delete itr->second;
@ -47,7 +47,7 @@ namespace NL3D
v.clear();
std::string n;
std::tr1::unordered_map< std::string, CShaderProgram* >::iterator itr = programs.begin();
std::map< std::string, CShaderProgram* >::iterator itr = programs.begin();
while( itr != programs.end() )
{
itr->second->getName( n );
@ -61,7 +61,7 @@ namespace NL3D
std::string n;
program->getName( n );
std::tr1::unordered_map< std::string, CShaderProgram* >::iterator itr
std::map< std::string, CShaderProgram* >::iterator itr
= programs.find( n );
if( itr != programs.end() )
return false;
@ -72,7 +72,7 @@ namespace NL3D
bool CShaderManager::removeShader( const std::string &name )
{
std::tr1::unordered_map< std::string, CShaderProgram* >::iterator itr
std::map< std::string, CShaderProgram* >::iterator itr
= programs.find( name );
if( itr == programs.end() )
return false;
@ -86,7 +86,7 @@ namespace NL3D
bool CShaderManager::changeShader( const std::string &name, CShaderProgram *program )
{
std::tr1::unordered_map< std::string, CShaderProgram* >::iterator itr
std::map< std::string, CShaderProgram* >::iterator itr
= programs.find( name );
if( itr == programs.end() )
return false;
@ -111,7 +111,7 @@ namespace NL3D
bool CShaderManager::getShader( const std::string &name, CShaderProgram *program )
{
std::tr1::unordered_map< std::string, CShaderProgram* >::iterator itr
std::map< std::string, CShaderProgram* >::iterator itr
= programs.find( name );
if( itr == programs.end() )
return false;
@ -135,7 +135,7 @@ namespace NL3D
void CShaderManager::visitShaders( IShaderVisitor *visitor )
{
std::tr1::unordered_map< std::string, CShaderProgram* >::iterator itr = programs.begin();
std::map< std::string, CShaderProgram* >::iterator itr = programs.begin();
while( itr != programs.end() )
{
visitor->visit( itr->second );
@ -145,7 +145,7 @@ namespace NL3D
void CShaderManager::visitShader( const std::string &name, IShaderVisitor *visitor )
{
std::tr1::unordered_map< std::string, CShaderProgram* >::iterator itr =
std::map< std::string, CShaderProgram* >::iterator itr =
programs.find( name );
if( itr == programs.end() )
return;

@ -286,7 +286,7 @@ namespace NLMISC
case Vector4:
{
std::stringstream ss = s;
std::stringstream ss( s );
for( int i = 0; i < 4; i++ )
{
@ -300,7 +300,7 @@ namespace NLMISC
case Matrix4:
{
std::stringstream ss = s;
std::stringstream ss( s );
for( int i = 0; i < 16; i++ )
{

Loading…
Cancel
Save