obj.passes.push_back(pss);
}
-void PipelineTemplate::Loader::postprocessor(const std::string &slot)
+void PipelineTemplate::Loader::postprocessor(const string &slot)
{
PostProcLoader ldr;
load_sub_with(ldr);
return;
}
- std::vector<GLenum> color_bufs;
+ vector<GLenum> color_bufs;
color_bufs.reserve(attachments.size());
for(unsigned i=0; i<attachments.size(); ++i)
{
init();
}
-Program::Program(const std::string &source)
+Program::Program(const string &source)
{
init();
#endif
}
-Tag::Tag(const std::string &s):
+Tag::Tag(const string &s):
id(s.empty() ? 0 : hash32(s))
{
#ifdef DEBUG
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-void Texture::Loader::load_external_image(Graphics::Image &img, const std::string &fn)
+void Texture::Loader::load_external_image(Graphics::Image &img, const string &fn)
{
RefPtr<IO::Seekable> io = get_collection().open_raw(fn);
if(!io)
namespace GL {
namespace SL {
-std::string DumpTree::apply(Stage &stage)
+string DumpTree::apply(Stage &stage)
{
formatted = format("Stage: %s\n", Stage::get_stage_name(stage.type));
begin_sub();
append(format("Version: %d.%02d", stage.required_features.glsl_version.major, stage.required_features.glsl_version.minor));
- for(std::map<string, TypeDeclaration *>::const_iterator i=stage.types.begin(); i!=stage.types.end(); ++i)
+ for(map<string, TypeDeclaration *>::const_iterator i=stage.types.begin(); i!=stage.types.end(); ++i)
append(format("Type: %%%d %s", get_label(*i->second), i->first));
- for(std::map<string, InterfaceBlock *>::const_iterator i=stage.interface_blocks.begin(); i!=stage.interface_blocks.end(); ++i)
+ for(map<string, InterfaceBlock *>::const_iterator i=stage.interface_blocks.begin(); i!=stage.interface_blocks.end(); ++i)
append(format("Interface block: %%%d %s", get_label(*i->second), i->first));
- for(std::map<string, FunctionDeclaration *>::const_iterator i=stage.functions.begin(); i!=stage.functions.end(); ++i)
+ for(map<string, FunctionDeclaration *>::const_iterator i=stage.functions.begin(); i!=stage.functions.end(); ++i)
append(format("Function: %%%d %s", get_label(*i->second), i->first));
last_branch();
append(block, format("Block %s", (block.use_braces ? "{}" : "(inline)")));
begin_sub();
- for(std::map<string, VariableDeclaration *>::const_iterator i=block.variables.begin(); i!=block.variables.end(); ++i)
+ for(map<string, VariableDeclaration *>::const_iterator i=block.variables.begin(); i!=block.variables.end(); ++i)
append(format("Variable: %%%d %s %s", get_label(*i->second), i->second->type, i->first));
for(NodeList<Statement>::const_iterator i=block.body.begin(); i!=block.body.end(); )
staging_block.parent = &tgt_blk;
staging_block.variables.clear();
- std::vector<RefPtr<VariableDeclaration> > params;
+ vector<RefPtr<VariableDeclaration> > params;
params.reserve(source_func->parameters.size());
for(NodeArray<VariableDeclaration>::iterator i=source_func->parameters.begin(); i!=source_func->parameters.end(); ++i)
{
base_index(0)
{ }
-void SourceMap::set_name(unsigned i, const std::string &n)
+void SourceMap::set_name(unsigned i, const string &n)
{
if(source_names.empty())
base_index = i;
void GlobalInterfaceValidator::check_uniform(const Uniform &uni)
{
- map<std::string, const Uniform *>::const_iterator i = used_names.find(uni.name);
+ map<string, const Uniform *>::const_iterator i = used_names.find(uni.name);
if(i!=used_names.end())
{
if(uni.location>=0 && i->second->location>=0 && i->second->location!=uni.location)
add("sampler", &Loader::sampler);
}
-void Material::Loader::sampler(const std::string &name)
+void Material::Loader::sampler(const string &name)
{
obj.sampler = &get_collection().get<Sampler>(name);
}
InstanceArray::~InstanceArray()
{
- for(std::vector<ObjectInstance *>::iterator i=instances.begin(); i!=instances.end(); ++i)
+ for(vector<ObjectInstance *>::iterator i=instances.begin(); i!=instances.end(); ++i)
delete *i;
delete vtx_setup;
delete instance_data;
lod.mesh = msh;
}
-void Object::LodLoader::technique(const std::string &n)
+void Object::LodLoader::technique(const string &n)
{
obj.set_technique(index, &get_collection().get<Technique>(n));
}
// Update the contents of all dirty blocks.
bool buffered_blocks_updated = false;
- std::vector<ProgramBlock>::iterator j = pu.blocks.begin();
+ vector<ProgramBlock>::iterator j = pu.blocks.begin();
for(vector<Program::UniformBlockInfo>::const_iterator i=prog_blocks.begin(); i!=prog_blocks.end(); ++i, ++j)
{
if(!j->shared || !j->shared->dirty)